# CVE-2026-50631: Apache CXF: OAuth2: TOCTOU Race Condition in Refresh Token Processing

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.4 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-06-12 · Modified: 2026-08-07
- Aliases: GHSA-83r6-96m8-r52p
- Record: https://cvemate.com/vulnerability/CVE-2026-50631 · JSON: https://cvemate.com/vulnerability/CVE-2026-50631/json

## Description

```text
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.
```

## Signals

- CVSS: 7.4 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.273%, percentile 21.045%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache cxf: ≥ 4.2.0, \< 4.2.2 \| ≥ 4.0.0, \< 4.1.7 \| \< 3.6.12
- apache cxf: \< 4.1.7 \| \< 3.6.12 \| ≥ 4.0.0, \< 4.1.7 \| ≥ 4.2.0, \< 4.2.2
- org.apache.cxf cxf-rt-rs-security-oauth2 (Maven): ≥ 4.2.0, \< 4.2.2 \| \< 4.1.7

## References

- <https://lists.apache.org/thread/s83t3x4r626o9h8rt0ryr1w7w53l1vv8>
- <http://www.openwall.com/lists/oss-security/2026/06/11/8>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-50631>
- <https://github.com/apache/cxf>

---

Data as of 2026-12-05T07:37:55.456Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
