CVE-2026-50631
HIGH 7.4CVSS 3.1Apache CXF OAuth2 TOCTOU Race Condition in Refresh Token Processing
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.
- Published
- 12 Jun 2026
- Last modified
- 5 Nov 2026
- Assigned by
- security@apache.org
- NVD status
- Analyzed
- Weakness
- CWE-367
- Also known as
- GHSA-83r6-96m8-r52p
- Sources
- NVDJSONOSV GHSA-83r6-96m8-r52pJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | cxfcpe:2.3:a:apache:cxf:*:*:*:*:*:*:*:* |
< 3.6.12 | 3.6.12 |
| NVD | apache | cxfcpe:2.3:a:apache:cxf:*:*:*:*:*:*:*:* |
>= 4.0.0, < 4.1.7 | 4.1.7 |
| NVD | apache | cxfcpe:2.3:a:apache:cxf:*:*:*:*:*:*:*:* |
>= 4.2.0, < 4.2.2 | 4.2.2 |
| OSV | Maven | org.apache.cxf:cxf-rt-rs-security-oauth2 | >= 4.2.0, < 4.2.2 | 4.2.2 |
| OSV | Maven | org.apache.cxf:cxf-rt-rs-security-oauth2 | < 4.1.7 | 4.1.7 |
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
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 12 Jun 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 12 Jun 2026)