GitHub Advisoryadvisory · Maven
GHSA-x2wq-9x2f-fhj7 Spring Security Core has a TOCTOU race condition when One-Time Token login with JdbcOneTimeTokenService is configured
MEDIUM
Official page ↗
- Aliases
- CVE-2026-22751
- Ecosystem
- Maven
- Packages
- org.springframework.security:spring-security-core
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- Weaknesses
- CWE-367
- Reviewed
- 2026-04-25
Affected packages
• Maven org.springframework.security:spring-security-core: >= 6.5.0, < 6.5.10 → fixed in 6.5.10
• Maven org.springframework.security:spring-security-core: >= 7.0.3, < 7.0.5 → fixed in 7.0.5
• Maven org.springframework.security:spring-security-core: >= 6.4.0, <= 6.4.13 (no fix yet)
Description
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.
Related
Alias · CVE (1)
- CVE-2026-22751 Vulnerability in Spring Spring Security. vulnerability
Weakness · CWE (1)
- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-22751 advisory
- https://github.com/spring-projects/spring-security/commit/163772775036c4146815a5266874278c6f45f047 web
- https://github.com/spring-projects/spring-security/commit/4187af38b251fc97fdf9949f7869618111e6e261 web
- https://github.com/spring-projects/spring-security package
- https://jinyeong.seol.pro/blogs/cve-2026-22751/en web
- https://spring.io/security/cve-2026-22751 web