CVE-2026-22746
Spring Security Vulnerable to User Attribute Enumeration when Using DaoAuthenticationProvider
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.security » spring-security-core | >= 5.7.0, <= 5.7.22>= 5.8.0, <= 5.8.24>= 6.3.0, <= 6.3.15>= 6.4.0, <= 6.4.15>= 6.5.0, < 6.5.10>= 7.0.0, < 7.0.5 | 6.5.10, 7.0.5 |
Blast radius
52% of the dependent artifacts (3,401) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 52,313 |
| 2 hops | 191,705 |
| 3 hops | 128,634 |
| 4 hops | 39,138 |
| 5 hops | 18,136 |
| 6 hops | 2,214 |
Most used dependents
- org.springframework.boot » spring-boot-starter-security3,606 usages
- org.springframework.security » spring-security-web2,133 usages
- org.springframework.security » spring-security-config2,063 usages
- org.springframework.security » spring-security-test1,308 usages
- org.jenkins-ci.main » jenkins-core1,191 usages
- com.atlassian.confluence » confluence724 usages
- com.vaadin » vaadin-maven-plugin600 usages
- com.atlassian.jira » jira-core554 usages
- org.springframework.security » spring-security-cas550 usages
- org.springframework.security » spring-security-oauth2-jose508 usages
- org.apereo.cas » cas-server-core-util-api492 usages
- org.springframework.security » spring-security-oauth2-client481 usages
- org.springframework.boot » spring-boot-security479 usages
- org.springframework.boot » spring-boot-starter-oauth2-resource-server463 usages
- org.springframework.security » spring-security-ldap457 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
