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.
Problem types
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Product status
4.2.0 (semver) before 4.2.2
Any version before 4.1.7
Credits
Guanping Zhang reported this vulnerability.
References
www.openwall.com/lists/oss-security/2026/06/11/8
lists.apache.org/thread/s83t3x4r626o9h8rt0ryr1w7w53l1vv8