VDB
KO
HIGH 7.4

GHSA-83r6-96m8-r52p

Apache CXF OAuth2 TOCTOU Race Condition in Refresh Token Processing

Quick fix

GHSA-83r6-96m8-r52p — org.apache.cxf:cxf-rt-rs-security-oauth2: upgrade to the fixed version with the command below.

# pom.xml: bump <version>4.2.2</version> for org.apache.cxf:cxf-rt-rs-security-oauth2

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven / org.apache.cxf:cxf-rt-rs-security-oauth2
Introduced in: 4.2.0 Fixed in: 4.2.2
Fix # pom.xml: bump <version>4.2.2</version> for org.apache.cxf:cxf-rt-rs-security-oauth2
Maven / org.apache.cxf:cxf-rt-rs-security-oauth2
Introduced in: 0 Fixed in: 4.1.7
Fix # pom.xml: bump <version>4.1.7</version> for org.apache.cxf:cxf-rt-rs-security-oauth2

References