GHSA-x2wq-9x2f-fhj7MediumCVSS 4.8

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

Published
April 21, 2026
Last Modified
July 17, 2026

🔗 CVE IDs covered (1)

📋 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 products3

  • maven/org.springframework.security:spring-security-core:>= 6.5.0, < 6.5.10
  • maven/org.springframework.security:spring-security-core:>= 7.0.3, < 7.0.5
  • maven/org.springframework.security:spring-security-core:>= 6.4.0, <= 6.4.13

🔗 References (6)