Skip to main content

Spring Security EUVDEUVD-2026-24227

| CVE-2026-22751 MEDIUM
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-04-21 vmware GHSA-x2wq-9x2f-fhj7
4.8
CVSS 3.1 · Vendor: vmware
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid one-time token
  2. Delivery
    Submit concurrent authentication requests with token
  3. Exploit
    Trigger TOCTOU race condition in token validation
  4. Execution
    Bypass token single-use check
  5. Impact
    Gain 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Spring Security 6.5.0 ≤6.5.9
Spring Security 6.4.0 ≤6.4.15
Spring Security 7.0.0 ≤7.0.4

Affected Packages

maven org.springframework.security:spring-security-core fix: 6.5.10, 7.0.5
euvd spring_security no fix

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

Vendor (vmware) PRIMARY 4.8 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Red Hat 4.8 MEDIUM

Primary rating from Vendor (vmware).

CVSS VectorVendor: vmware

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1,209 maven packages depend on org.springframework.security:spring-security-core (474 direct, 735 indirect)

Ecosystem-wide dependent count for version 6.5.0.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Spring

View all
CVE-2025-70982 CRITICAL POC
9.9 Jan 26

Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat

CVE-2026-22739 HIGH POC
8.6 Mar 24

Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u

CVE-2025-41242 MEDIUM POC
5.9 Aug 18

Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant

CVE-2025-70983 CRITICAL
9.9 Jan 23

SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t

CVE-2026-41699 CRITICAL
9.8 Jun 11

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

CVE-2026-59313 CRITICAL
9.8 Aug 27

Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across

CVE-2026-22738 CRITICAL
9.8 Mar 27

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

CVE-2026-41855 CRITICAL
9.8 Jun 09

Unsafe JSON deserialization in Spring Framework's JMS message converters (MappingJackson2MessageConverter and JacksonJso

CVE-2025-41232 CRITICAL
9.1 May 21

Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity

CVE-2026-59283 CRITICAL
9.1 Aug 27

Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca

CVE-2026-40982 CRITICAL
9.1 May 07

Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files

CVE-2026-22732 CRITICAL POC
9.1 Mar 19

Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy