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
CVSSv4.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
Vulnerable software:
Spring Security
Software vendor:
VMware, Inc

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.


Remediation

Install security update from vendor's website.

External links