GHSA-x2wq-9x2f-fhj7

Spring Security Core has a TOCTOU race condition when One-Time Token login with JdbcOneTimeTokenService is configured

At a glance

Published
Updated
CVE
CVE-2026-22751
CVSS_V3
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

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.

Affected packages

PackageVersions
Maven · org.springframework.security:spring-security-coreintroduced 6.5.0, fixed 6.5.10
Maven · org.springframework.security:spring-security-coreintroduced 7.0.3, fixed 7.0.5
Maven · org.springframework.security:spring-security-coreintroduced 6.4.0, last affected 6.4.13

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database