Time-of-check Time-of-use (TOCTOU) Race Condition in Spring Security - CVE-2026-22751

 

Time-of-check Time-of-use (TOCTOU) Race Condition in Spring Security - CVE-2026-22751

Published: April 27, 2026


Vulnerability identifier: #VU128222
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-22751
CWE-ID: CWE-367
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: VMware, Inc
Affected software:
Spring Security

Detailed vulnerability description

The vulnerability allows a remote attacker to establish multiple authenticated sessions with a one-time token.

The vulnerability exists due to a time-of-check time-of-use race condition in JdbcOneTimeTokenService when handling concurrent requests to the authentication endpoint. A remote attacker can send concurrent authentication requests using a valid one-time token to establish multiple authenticated sessions with a one-time token.

Only applications that explicitly configure one-time token login with JdbcOneTimeTokenService are vulnerable. The default InMemoryOneTimeTokenService is not affected.


How to mitigate CVE-2026-22751

Install security update from vendor's website.

Sources