Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid one-time token
-
DeliverySubmit concurrent authentication requests with token
-
ExploitTrigger TOCTOU race condition in token validation
-
ExecutionBypass token single-use check
-
ImpactGain unauthorized access
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Exploitation Conditions | Exploitation requires three specific conditions: (1) the target application must explicitly configure Spring Security with JdbcOneTimeTokenService for One-Time Token login - default Spring Security configurations do not use this service; (2) the attacker must obtain a valid one-time token (via social engineering, token interception, or insider knowledge); (3) the attacker must submit concurrent requests within the validation-to-invalidation window (typically milliseconds), making reliable exploitation difficult without precise timing or automated tooling. Applications using alternative token services, session-based authentication, or OAuth2 are not affected. The vulnerability does not affect applications without explicit JdbcOneTimeTokenService configuration. |
| Impact | Despite a CVSS score of 4.8 (low-to-medium), this vulnerability presents LIMITED real-world risk due to several mitigating factors. The attack vector is network-accessible (AV:N), but attack complexity is HIGH (AC:H), indicating the race condition window is narrow and difficult to exploit reliably. Unauthenticated access is possible (PR:N), but the impact is confined to limited information disclosure and integrity compromise (C:L/I:L/A:N) - no availability impact. The vulnerability requires explicit configuration of JdbcOneTimeTokenService, meaning applications using default authentication mechanisms or alternative token services are unaffected. EPSS data is not provided, but the combination of high AC, limited impact scope, and configuration prerequisite suggests this is a lower-priority vulnerability than the CVSS score alone indicates. No KEV status or POC availability is reported, further reducing demonstrated exploitability. |
| Exploit ScenarioDerived | An attacker intercepts or obtains a valid one-time token intended for a legitimate user. The attacker rapidly submits multiple concurrent authentication requests using the same token before the token service marks it as consumed. Due to the race condition window, one or more requests may be validated and succeed, granting unauthorized access to the application. This is most practical in scenarios where token distribution is via email or SMS and the attacker has network-level access to observe token issuance. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 21, 2026
Time-of-check Time-of-use (TOCTOU) race condition in Spring Security's JdbcOneTimeTokenService allows unauthenticated remote attackers to bypass one-time token validation and gain unauthorized access. Affected versions include 6.4.0-6.4.15, 6.5.0-6.5.9, and 7.0.0-7.0.4. The vulnerability requires explicit configuration of One-Time Token login and involves high attack complexity, limiting real-world exploitation despite network accessibility.
RemediationAI
Upgrade Spring Security to version 6.4.16 or later (6.4.x branch), 6.5.10 or later (6.5.x branch), or 7.0.5 or later (7.0.x branch). If immediate upgrade is not possible, disable JdbcOneTimeTokenService and switch to alternative authentication mechanisms (e.g., session-based authentication, OAuth2 with refresh tokens, or hardware tokens) until patching is feasible. As a temporary mitigation, implement database-level constraints to enforce token single-use semantics (unique constraint on consumed timestamp or consumed_at field) and configure connection pooling with transaction isolation level set to SERIALIZABLE for token validation operations; note that SERIALIZABLE isolation may impact performance under high concurrency. Review Spring Security advisory at https://spring.io/security/cve-2026-22751 for confirmation and additional guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Spring Security's JdbcOneTimeTokenService implements one-time token (OTT) authentication by validating tokens stored in a relational database before marking them as consumed. The TOCTOU race condition occurs in the window between token validation (time-of-check) and token invalidation (time-of-use), allowing an attacker to exploit concurrent requests to reuse the same token multiple times. This is rooted in CWE-367 (Improper Restriction of Rendered UI Layers in a Multi-tier Architecture), indicating insufficient synchronization or atomic operations during the validate-then-consume sequence. The vulnerability affects applications using Spring Security's JDBC-backed token storage mechanism for passwordless authentication flows.
Know when Spring gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Primary rating from Vendor (vmware).
CVSS VectorVendor: vmware
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat
Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u
Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant
SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t
Remote code execution in Spring for GraphQL versions 1.3.0-1.3.8, 1.4.0-1.4.5, and 2.0.0-2.0.3 allows unauthenticated at
Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across
Spring AI versions 1.0.0 through 1.0.4 and 1.1.0 through 1.1.3 allow unauthenticated remote code execution through Sprin
Unsafe JSON deserialization in Spring Framework's JMS message converters (MappingJackson2MessageConverter and JacksonJso
Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity
Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca
Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files
Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.
EUVD-2026-24227
GHSA-x2wq-9x2f-fhj7
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB