medium4.8
CVE-2026-22751
Spring Security Core has a TOCTOU race condition when One-Time Token login with JdbcOneTimeTokenService is configured
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| maven | org.springframework.security:spring-security-core | >= 6.5.0, < 6.5.10 | 6.5.10 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Vmware | Spring Security | from 6.4.0 before 6.4.16 from 6.5.0 before 6.5.10 from 7.0.0 before 7.0.5 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-x2wq-9x2f-fhj7
- https://nvd.nist.gov/vuln/detail/CVE-2026-22751
- https://spring.io/security/cve-2026-22751
- https://github.com/spring-projects/spring-security/commit/163772775036c4146815a5266874278c6f45f047
- https://github.com/spring-projects/spring-security/commit/4187af38b251fc97fdf9949f7869618111e6e261
- https://jinyeong.seol.pro/blogs/cve-2026-22751/en