CVE Vulnerabilities

CVE-2026-22751

Time-of-check Time-of-use (TOCTOU) Race Condition

Published: Apr 21, 2026 | Modified: May 01, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
4.8 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

Vulnerability in Spring Spring Security. Applications that explicitly configure One-Time Token login with JdbcOneTimeTokenService are vulnerable to a Time-of-check Time-of-use (TOCTOU) race condition. This issue affects Spring Security: from 6.4.0 through 6.4.15, from 6.5.0 through 6.5.9, from 7.0.0 through 7.0.4.

Weakness

The product checks the state of a resource before using that resource, but the resource’s state can change between the check and the use in a way that invalidates the results of the check.

Affected Software

NameVendorStart VersionEnd Version
Spring_securityVmware6.4.0 (including)6.4.16 (excluding)
Spring_securityVmware6.5.0 (including)6.5.10 (excluding)
Spring_securityVmware7.0.0 (including)7.0.5 (excluding)

Potential Mitigations

References