Skip to main content
CVE-2026-50631VulnerabilityPublished Updated

Org.apache.cxf:cxf rt rs security oauth2: Apache CXF OAuth2 TOCTOU Race Condition in Refresh Token Processing

Affects org.apache.cxf:cxf-rt-rs-security-oauth2Source GCVE Database

0
Authoritative record:CVE-2026-50631· High 7.4

Not known to be exploited · CVSS 7.4 High : upgrade to 4.2.2 soon.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 3.1 base score
7.4High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 21% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.2.2, 4.1.7
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade org.apache.cxf:cxf-rt-rs-security-oauth2 to 4.2.2; org.apache.cxf:cxf-rt-rs-security-oauth2 to 4.1.7.

Affected software

ProductAffectedFixed in
Mavenorg.apache.cxf:cxf-rt-rs-security-oauth2Affected
  • >=4.2.0 <4.2.2
Fixed in
  • 4.2.2
Mavenorg.apache.cxf:cxf-rt-rs-security-oauth2Affected
  • <4.1.7
Fixed in
  • 4.1.7

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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, which fixes this issue.

References

Community reviews

Loading reviews…