Time-of-check Time-of-use (TOCTOU) Race Condition Affecting org.springframework.security:spring-security-core package, versions [6.4.0,6.5.10)[7.0.0-M1,7.0.5)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.12% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Time-of-check Time-of-use (TOCTOU) Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKSECURITY-16120313
  • published22 Apr 2026
  • disclosed21 Apr 2026
  • creditJinyeong Seol

Introduced: 21 Apr 2026

CVE-2026-22751  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade org.springframework.security:spring-security-core to version 6.5.10, 7.0.5 or higher.

Overview

org.springframework.security:spring-security-core is a package that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition in the JdbcOneTimeTokenService component. An attacker can gain unauthorized access to multiple sessions by reusing a single one-time token during authentication.

Note:

This is only exploitable if the application is explicitly configured to use One-Time Token login with JdbcOneTimeTokenService.

CVSS Base Scores

version 4.0
version 3.1