Skip to content
Low 3.7

Spring Security Reactive Authentication Timing Attack Enables Username Enumeration

CVE-2026-59329 First seen on SecPulse

Summary

Spring Security's reactive authentication support, AbstractUserDetailsReactiveAuthenticationManager and UserDetailsRepositoryReactiveAuthenticationManager , do not invoke the configured PasswordEncoder when a submitted username cannot be found, unlike its blocking counterpart DaoAuthenticationProvid...

Affected packages

PackageAffected → Fixed
SpringSpring Security
≥ 7.1.0, < 7.1.2.1→ 7.1.2.1
≥ 7.0.0, < 7.0.8.1→ 7.0.8.1
≥ 6.5.0, < 6.5.13→ 6.5.13
≥ 6.4.0, < 6.4.20→ 6.4.20
≥ 5.8.0, < 5.8.29→ 5.8.29
≥ 5.7.0, < 5.7.27→ 5.7.27
≥ 7.1.0, < 7.1.3→ 7.1.3
≥ 7.0.0, < 7.0.9→ 7.0.9
Original description The description as published by the source.

Spring Security's reactive authentication support, AbstractUserDetailsReactiveAuthenticationManager and UserDetailsRepositoryReactiveAuthenticationManager , do not invoke the configured PasswordEncoder when a submitted username cannot be found, unlike its blocking counterpart DaoAuthenticationProvider .

Because password encoding is deliberately CPU-intensive, the response time for a nonexistent username is measurably shorter than for a valid username with an incorrect password.

Preconditions :

The application authenticates using AbstractUserDetailsReactiveAuthenticationManager or a subclass, such as UserDetailsRepositoryReactiveAuthenticationManager (used by reactive .formLogin()).
The authentication endpoint is reachable by the attacker.

An unauthenticated attacker who can measure authentication response times can use this difference to enumerate valid usernames.

Source: CVE.org (CVE Program・cvelistV5) NVD

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details