Improper Authentication in Spring Web Services - CVE-2026-40995

 

Improper Authentication in Spring Web Services - CVE-2026-40995

Published: August 28, 2026


Vulnerability identifier: #VU146186
CSH Severity: Low
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-40995
CWE-ID: CWE-287
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to bypass account lifecycle checks and authenticate with a disabled, locked, expired, or credentials-expired account.

The vulnerability exists due to improper authentication in X509AuthenticationProvider when processing certificate-based authentication. A remote user can present a certificate that maps to UserDetails to bypass account lifecycle checks and authenticate with a disabled, locked, expired, or credentials-expired account.

The issue affects users resolved from X509AuthoritiesPopulator and cached entries, and requires Spring WS X.509 integration with Spring Security.


Affected software

Spring Web Services

How to mitigate CVE-2026-40995

Install security update from vendor's website.

Spring Web Services - addressed in versions 3.1.9, 4.0.19, 4.1.3.1, 4.1.4, 5.0.1.1, 5.0.2

External References

Related Security Bulletins