7.4high
Apache CXF: OAuth2: TOCTOU Race Condition in Refresh Token Processing
- Severity
- 7.4high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.27% (higher than 21% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-83r6-96m8-r52p
Description
A race condition in AbstractOAuthDataProvider allows concurrent requests using the same Refresh Token to bypass single-use semantics and generate multiple valid Access Tokens, when 'recycleRefreshTokens' is set to false. A leaked refresh token can be replayed concurrently by multiple attackers or threads. Users are recommended to upgrade to versions 4.2.2 or 4.1.7 or 3.6.12, which fixes this issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| org.apache.cxf:cxf-rt-rs-security-oauth2 | from 4.2.0 before 4.2.2, from 4.0.0 before 4.1.7, before 3.6.12 | CVE List |
| org.apache.cxf:cxf-rt-rs-security-oauth2 (Maven) | from 4.2.0 before 4.2.2, before 4.1.7 | GitHub Advisory Database |
| apache cxf | before 3.6.12, from 4.0.0 before 4.1.7, from 4.2.0 before 4.2.2 | NVD |
All scores
| CISA-ADP | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
A race condition in AbstractOAuthDataProvider allows concurrent requests using the same Refresh Token to bypass single-use semantics and generate multiple valid Access Tokens, when 'recycleRefreshTokens' is set to false. A leaked refresh token can be replayed concurrently by multiple attackers or threads. Users are recommended to upgrade to versions 4.2.2 or 4.1.7 or 3.6.12, which fixes this issue.
GitHub Advisory Database
A race condition in AbstractOAuthDataProvider allows concurrent requests using the same Refresh Token to bypass single-use semantics and generate multiple valid Access Tokens, when 'recycleRefreshTokens' is set to false. A leaked refresh token can be replayed concurrently by multiple attackers or threads. Users are recommended to upgrade to versions 4.2.2 or 4.1.7, which fixes this issue.
NVD (es)
Una condición de carrera en AbstractOAuthDataProvider permite que solicitudes concurrentes que utilizan el mismo Refresh Token eludan la semántica de un solo uso y generen múltiples Access Tokens válidos, cuando ’recycleRefreshTokens’ está configurado como falso. Un Refresh Token filtrado puede ser reproducido concurrentemente por múltiples atacantes o hilos. Se recomienda a los usuarios actualizar a las versiones 4.2.2 o 4.1.7, que corrige este problema.
References
| https://lists.apache.org/thread/s83t3x4r626o9h8rt0ryr1w7w53l1vv8 | vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2026/06/11/8 | mailing-list, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-50631 | advisory | |
| https://github.com/apache/cxf | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-50631 changed 2026-08-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-83r6-96m8-r52p changed 2026-08-20 | CC-BY-4.0 |
| NVD | CVE-2026-50631 changed 2026-11-05 | Public domain |