Time-of-check Time-of-use (TOCTOU) Race Condition in Spring Security - CVE-2026-22751
Published: April 27, 2026
Spring Security
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.