Okta Java SDK, Race Condition Vulnerability (High Severity)

Listen to this Post

The vulnerability (CVE-2025-XXXXX/GHSA-XXXX) in the Okta Java SDK stems from a race condition within the shared `ApiClient` instance when handling concurrent HTTP requests. The `ApiClient` class, typically configured as a singleton or shared bean in frameworks like Spring, uses mutable fields to store state related to the current API call, such as HTTP status codes and response headers. When multiple threads execute requests simultaneously using the same client instance, they inadvertently share and overwrite the same internal state variables. This occurs because the client’s execution method lacks proper synchronization or thread-local isolation for per-request response data. Consequently, a rapid sequence of concurrent API calls can cause the status code or headers from one thread’s response to be incorrectly attached to the response object of another, unrelated thread. This cross-contamination of response metadata can lead to application logic errors, such as misinterpreting authentication results or processing data based on another user’s request context.

dailycve form:

Platform: Okta Java SDK
Version: >=11.0.0,<=20.0.0
Vulnerability: Race Condition
Severity: High
date: Dec 10, 2025

Prediction: Patch released 2025-12-10

What Undercode Say:

mvn dependency:tree | grep okta-sdk-java
<dependency>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-java</artifactId>
<version>20.0.1</version>
</dependency>
// Vulnerable shared client
ApiClient sharedClient = new ApiClient();
// Concurrent calls risk state corruption
CompletableFuture.allOf(
CompletableFuture.runAsync(() -> sharedClient.callApi(...)),
CompletableFuture.runAsync(() -> sharedClient.callApi(...))
).join();

How Exploit:

Concurrent API requests causing cross-response contamination.

Protection from this CVE

Upgrade to >=21.0.0.

Impact:

Incorrect authorization, data leakage.

🎯Let’s Practice Exploiting & Learn Patching For Free:

Sources:

Reported By: github.com
Extra Source Hub:
Undercode

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow DailyCVE & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin Featured Image

Scroll to Top