PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-40995 Spring CVE debrief

CVE-2026-40995 is a vulnerability in Spring Web Services that affects versions 5.0.0 through 5.0.1, 4.1.0 through 4.1.3, 4.0.0 through 4.0.18, and 3.1.0 through 3.1.8. The vulnerability is caused by the X509AuthenticationProvider issuing a fully authenticated X509AuthenticationToken when a presented certificate maps to UserDetails, without applying Spring Security's standard account lifecycle checks. This could allow an attacker to bypass authentication for disabled, locked, expired, or credentials-expired accounts.

Vendor
Spring
Product
Spring Web Services
CVSS
MEDIUM 5.4
CISA KEV
Not listed in stored evidence
Original CVE published
2026-06-11
Original CVE updated
2026-09-04
Advisory published
2026-06-11
Advisory updated
2026-09-04

Who should care

Users of affected Spring Web Services versions should be aware of this vulnerability and take steps to mitigate it.

Technical summary

The X509AuthenticationProvider in Spring Web Services does not properly enforce account lifecycle checks, allowing for authentication bypass.

Defensive priority

Medium

Recommended defensive actions

  • Upgrade to a non-affected version of Spring Web Services.
  • Apply patches or updates provided by the vendor.
  • Review and adjust authentication configurations to ensure proper account lifecycle checks are in place.

Evidence notes

The CVE-2026-40995 vulnerability was published on June 11, 2026, and has a CVSS score of 5.4. The vulnerability is categorized under CWE-287.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-40995 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-40995

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-40995 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-40995

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.