Multiple authenticated sessions via unchecked token deletion
Published Apr 21, 2026 · Updated Apr 21, 2026
A TOCTOU race in Spring Security 6.4.0 through 6.4.15, 6.5.0 through 6.5.9, and 7.0.0 through 7.0.4 allows attackers to reuse tokens. JdbcOneTimeTokenService selects a token and then deletes it without checking whether a concurrent request already deleted the same database row, so both callers return the selected token. Exploitation requires a valid one-time token and concurrent authentication requests; successful races establish multiple authenticated sessions.
Summary
What happened
A TOCTOU race in Spring Security 6.4.0 through 6.4.15, 6.5.0 through 6.5.9, and 7.0.0 through 7.0.4 allows attackers to reuse tokens. JdbcOneTimeTokenService selects a token and then deletes it without checking whether a concurrent request already deleted the same database row, so both callers return the selected token. Exploitation requires a valid one-time token and concurrent authentication requests; successful races establish multiple authenticated sessions.
The record
- CVE
- CVE-2026-22751
- Published
- Apr 21, 2026
- Updated
- Apr 21, 2026
- Vendor
- Spring
- Product
- Spring Security
- Classifications
- CWE-367, T1078
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 21, 2026CVE publishedPublication date reported by the CVE source.
- Apr 21, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=6.4.0 <=6.4.15
- Affected versionversion=6.5.0 <=6.5.9
- Affected versionversion=7.0.0 <=7.0.4
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo