Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-73179 Overview
CVE-2026-73179 is a race condition vulnerability in the Apache CXF Java Persistence API (JPA) OAuth2 authorization code grant provider. The flaw stems from a non-atomic find-then-delete operation against a shared relational database running under READ_COMMITTED isolation. A remote attacker can submit concurrent token exchange requests using a single authorization code and receive multiple valid access tokens in response. This breaks the single-use semantics required by the OAuth2 specification. The vulnerability is tracked under [CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition]. Apache has released fixed versions 4.2.4, 4.1.9, and 3.6.13.
Critical Impact
Attackers who intercept a single authorization code can mint multiple access tokens, enabling parallel session hijacking and bypassing OAuth2 replay protections.
Affected Products
- Apache CXF versions prior to 4.2.4 (4.2.x branch)
- Apache CXF versions prior to 4.1.9 (4.1.x branch)
- Apache CXF versions prior to 3.6.13 (3.6.x branch)
Discovery Timeline
- 2026-10-09 - CVE-2026-73179 published to NVD
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2026-73179
Vulnerability Analysis
The OAuth2 authorization code grant flow requires that an authorization code be redeemable exactly once. Apache CXF enforces this constraint in the JPA-backed provider by first querying the database for the code, then issuing a delete to invalidate it. These two operations run as separate statements rather than as an atomic transaction.
Under the READ_COMMITTED isolation level used by common relational databases, two concurrent transactions can both observe the authorization code as valid before either deletion commits. Each transaction then issues an access token tied to the same code. The attacker receives multiple valid bearer tokens from a single interception event.
The vulnerability affects confidentiality, integrity, and availability of resources protected by the OAuth2 authorization server. Attack complexity is elevated because the attacker must race requests against the server, but no privileges or user interaction are required.
Root Cause
The root cause is improper enforcement of single-use semantics in the JPA authorization code grant provider. The find-then-delete sequence is not wrapped in a serializable transaction or implemented as a conditional delete that returns an affected-row count. This classifies as a TOCTOU race condition under [CWE-367].
Attack Vector
An attacker who obtains an authorization code through interception, logging exposure, or redirect URI manipulation sends two or more concurrent POST requests to the /token endpoint. Each request carries the same authorization code and matching client credentials. The server processes the requests in parallel threads that each read the code before any deletion commits. Both threads issue tokens, granting the attacker multiple independent sessions bound to the victim account.
See the Apache Thread Discussion and the Openwall OSS Security Update for additional technical context.
Detection Methods for CVE-2026-73179
Indicators of Compromise
- Multiple successful token issuance responses from the /token endpoint referencing the same authorization code within a short time window.
- Concurrent HTTP requests from the same client IP or client identifier arriving at the token endpoint within milliseconds of each other.
- Access token audit logs showing two or more distinct jti claims tied to the same code or auth_time value.
Detection Strategies
- Enable debug logging on the Apache CXF OAuth2 provider and alert on duplicate authorization code lookups within the same session.
- Correlate database transaction logs for the authorization code table to identify overlapping SELECT and DELETE operations against the same primary key.
- Deploy web application firewall rules that flag or rate-limit duplicate token exchange requests sharing identical code parameters.
Monitoring Recommendations
- Instrument the authorization server with metrics counting tokens issued per authorization code and alert when the ratio exceeds one.
- Forward OAuth2 server access logs and database query traces to a centralized logging platform for correlation and retention.
- Monitor downstream resource servers for simultaneous active sessions from a single user that originate from differing client fingerprints.
How to Mitigate CVE-2026-73179
Immediate Actions Required
- Upgrade Apache CXF to version 4.2.4, 4.1.9, or 3.6.13 depending on your deployment branch.
- Audit recent token issuance logs for duplicate authorization code redemptions and revoke affected tokens.
- Rotate client secrets for OAuth2 clients that may have been targeted by concurrent token exchange attempts.
Patch Information
Apache has released fixed builds in versions 4.2.4, 4.1.9, and 3.6.13. The fix enforces atomic invalidation of authorization codes so that only one concurrent request can successfully redeem a given code. Upgrade instructions and release notes are available via the Apache Thread Discussion.
Workarounds
- Raise the database transaction isolation level for the authorization code table to SERIALIZABLE where supported by the backing database.
- Introduce an application-layer mutex keyed on the authorization code value to serialize token exchange handlers.
- Apply strict rate limiting at the reverse proxy to allow only one in-flight request per authorization code value.
# Configuration example - verify installed Apache CXF version
mvn dependency:tree | grep cxf-rt-rs-security-oauth2
# Expected output after patch:
# org.apache.cxf:cxf-rt-rs-security-oauth2:jar:4.2.4
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

