~ / search / GHSA-83r6-96m8-r52p

GHSA-83r6-96m8-r52p

Apache CXF OAuth2 TOCTOU Race Condition in Refresh Token Processing

Source: GitHub Advisory Database (reviewed) High CVE-2026-50631

Packages

EcosystemPackageAffectedFixed in
Maven org.apache.cxf:cxf-rt-rs-security-oauth2 >= 4.2.0, < 4.2.2 4.2.2
Maven org.apache.cxf:cxf-rt-rs-security-oauth2 < 4.1.7 4.1.7

Details

As written in the advisory (Markdown source, shown as plain 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, which fixes this issue.

References

External links from the advisory. They lead to third-party sites.