CVE-2026-40995

X.509 authentication bypasses Spring Security account checks

MEDIUM
5.4
CVSS Score
Published: June 11, 2026 at 05:04 AM UTC
Updated: September 4, 2026 at 05:26 PM UTC
2 products affected across 2 vendorsSpring Web ServicesSpring Web Services

Using Spring Web Services by Spring?

Get instant alerts when new vulnerabilities affect Spring Web Services - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.4
Exploit prediction
EPSS 0.1%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 3.1.94.0.0 ≤ v < 4.0.194.1.0 ≤ v < 4.1.3.15.0.0 ≤ v < 5.0.1.1
Affected range stops below 3.1.9, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.0.19, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.1.3.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.0.1.1, so it looks safe — our inference, not a vendor statement
3.1.0 ≤ v < 3.1.94.0.0 ≤ v < 4.0.194.1.0 ≤ v < 4.1.3.15.0.0 ≤ v < 5.0.1.13.1.04.0.04.1.05.0.0
Affected range stops below 3.1.9, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.0.19, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.1.3.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.0.1.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

Patch and advisory references

References (1)

Vendor Advisory
Source: cverecord
https://spring.io/security/cve-2026-40995

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.4MEDIUMvmware
Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-287

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card