GHSA-vxf7-qj7q-83fh

Spring Security Vulnerable to User Attribute Enumeration when Using DaoAuthenticationProvider

At a glance

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

Description

Vulnerability in Spring Spring Security. If an application is using the UserDetails#isEnabled, #isAccountNonExpired, or #isAccountNonLocked user attributes, to enable, expire, or lock users, then DaoAuthenticationProvider's timing attack defense can be bypassed for users who are disabled, expired, or locked. This issue affects Spring Security: from 5.7.0 through 5.7.22, from 5.8.0 through 5.8.24, from 6.3.0 through 6.3.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 5.7.0, last affected 5.7.22
Maven · org.springframework.security:spring-security-coreintroduced 5.8.0, last affected 5.8.24
Maven · org.springframework.security:spring-security-coreintroduced 6.3.0, last affected 6.3.15
Maven · org.springframework.security:spring-security-coreintroduced 6.4.0, last affected 6.4.15
Maven · org.springframework.security:spring-security-coreintroduced 6.5.0, fixed 6.5.10
Maven · org.springframework.security:spring-security-coreintroduced 7.0.0, fixed 7.0.5

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database