CVE-2026-40995: CWE-287: Improper Authentication in Spring Spring Web Services
X509AuthenticationProvider could issue a fully authenticated X509AuthenticationToken when a presented certificate mapped to UserDetails, without applying Spring Security's standard account lifecycle checks (disabled, locked, expired, or credentials-expired accounts). Affected versions: Spring Web Services 5.0.0 through 5.0.1; 4.1.0 through 4.1.3; 4.0.0 through 4.0.18; 3.1.0 through 3.1.8.
AI Analysis
Technical Summary
The vulnerability CVE-2026-40995 in Spring Web Services arises from the X509AuthenticationProvider component, which may issue a fully authenticated X509AuthenticationToken if a presented certificate maps to UserDetails, but fails to apply Spring Security's standard account lifecycle checks (including disabled, locked, expired, or credentials-expired states). This improper authentication weakness (CWE-287) affects multiple versions of Spring Web Services: 3.1.0 through 3.1.8, 4.0.0 through 4.0.18, 4.1.0 through 4.1.3, and 5.0.0 through 5.0.1. The CVSS v3.1 base score is 5.4 (medium severity), reflecting network attack vector, low attack complexity, requiring low privileges, no user interaction, and limited confidentiality and integrity impact. No official remediation or patch is currently documented.
Potential Impact
An attacker presenting a certificate mapped to a user could receive a fully authenticated token without the system verifying if the user account is disabled, locked, expired, or has expired credentials. This could lead to unauthorized access to resources protected by Spring Web Services, potentially compromising confidentiality and integrity of data accessible through the affected service. However, the impact is limited to the scope of authentication bypass and does not affect availability. No known active exploitation has been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider additional compensating controls around certificate validation and account lifecycle enforcement outside of the vulnerable component. Monitoring for unusual authentication activity may help detect exploitation attempts. Avoid relying solely on X509AuthenticationProvider for authentication in affected versions.
CVE-2026-40995: CWE-287: Improper Authentication in Spring Spring Web Services
Description
X509AuthenticationProvider could issue a fully authenticated X509AuthenticationToken when a presented certificate mapped to UserDetails, without applying Spring Security's standard account lifecycle checks (disabled, locked, expired, or credentials-expired accounts). Affected versions: Spring Web Services 5.0.0 through 5.0.1; 4.1.0 through 4.1.3; 4.0.0 through 4.0.18; 3.1.0 through 3.1.8.
CVSS v3.1
Score 5.4medium
Affected software
pkg:maven/org.springframework.ws/spring-ws-coreRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-40995 in Spring Web Services arises from the X509AuthenticationProvider component, which may issue a fully authenticated X509AuthenticationToken if a presented certificate maps to UserDetails, but fails to apply Spring Security's standard account lifecycle checks (including disabled, locked, expired, or credentials-expired states). This improper authentication weakness (CWE-287) affects multiple versions of Spring Web Services: 3.1.0 through 3.1.8, 4.0.0 through 4.0.18, 4.1.0 through 4.1.3, and 5.0.0 through 5.0.1. The CVSS v3.1 base score is 5.4 (medium severity), reflecting network attack vector, low attack complexity, requiring low privileges, no user interaction, and limited confidentiality and integrity impact. No official remediation or patch is currently documented.
Potential Impact
An attacker presenting a certificate mapped to a user could receive a fully authenticated token without the system verifying if the user account is disabled, locked, expired, or has expired credentials. This could lead to unauthorized access to resources protected by Spring Web Services, potentially compromising confidentiality and integrity of data accessible through the affected service. However, the impact is limited to the scope of authentication bypass and does not affect availability. No known active exploitation has been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider additional compensating controls around certificate validation and account lifecycle enforcement outside of the vulnerable component. Monitoring for unusual authentication activity may help detect exploitation attempts. Avoid relying solely on X509AuthenticationProvider for authentication in affected versions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- vmware
- Date Reserved
- 2026-04-16T02:19:12.969Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2a59ba318757064921d3b0
Added to database: 6/11/2026, 6:46:18 AM
Last enriched: 6/11/2026, 7:02:19 AM
Last updated: 6/11/2026, 10:38:15 AM
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.