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

- Severity: High 7.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-06-12T08:59:40.200Z
- Modified: 2026-11-05T15:55:53.110Z
- Also known as: GHSA-83r6-96m8-r52p
- Weaknesses: CWE-367
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- 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
- org.apache.cxf:cxf-rt-rs-security-oauth2 (Maven): from 4.2.0 before 4.2.2; before 4.1.7
- apache cxf: before 3.6.12; from 4.0.0 before 4.1.7; from 4.2.0 before 4.2.2

## Every score

- CISA-ADP: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`

## 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

- CVE List: [CVE-2026-50631](https://www.cve.org/CVERecord?id=CVE-2026-50631), CVE Terms of Use, modified 2026-08-07
- GitHub Advisory Database: [GHSA-83r6-96m8-r52p](https://github.com/advisories/GHSA-83r6-96m8-r52p), CC-BY-4.0, modified 2026-08-20
- NVD: [CVE-2026-50631](https://nvd.nist.gov/vuln/detail/CVE-2026-50631), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2026-50631 · Whole record: https://cve.day/CVE-2026-50631.json · Rebuilt by cve.day 2026-11-25T22:59:24.497Z
