# CVE-2026-40995: X.509 authentication bypasses Spring Security account checks

- Severity: Medium 5.4 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-06-11T05:04:01.695Z
- Modified: 2026-09-04T17:10:23.133Z
- Also known as: GHSA-6mfm-98wv-32wm
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: vmware

## 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.

(As written by CVE List.)

## Affected

- Spring Spring Web Services: from 5.0.0 before 5.0.1.1; from 4.1.0 before 4.1.3.1; from 4.0.0 before 4.0.19; from 3.1.0 before 3.1.9
- org.springframework.ws:spring-ws-security (Maven): from 5.0.0 before 5.0.2; from 4.1.0 before 4.1.4; from 4.0.0 up to 4.0.18; from 3.1.0 up to 3.1.8
- broadcom spring_web_services: before 3.1.9; from 4.0.0 before 4.0.19; from 4.1.0 before 4.1.3.1; from 5.0.0 before 5.0.1.1

## Every score

- vmware: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://spring.io/security/cve-2026-40995> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40995> (advisory)
- <https://github.com/spring-projects/spring-ws/commit/e5dc311359e14f5b25bcb33f20d43cc3513e9d10> (web)
- <https://github.com/spring-projects/spring-ws> (package)

## Sources

- CVE List: [CVE-2026-40995](https://www.cve.org/CVERecord?id=CVE-2026-40995), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-6mfm-98wv-32wm](https://github.com/advisories/GHSA-6mfm-98wv-32wm), CC-BY-4.0, modified 2026-08-21
- NVD: [CVE-2026-40995](https://nvd.nist.gov/vuln/detail/CVE-2026-40995), Public domain, modified 2026-09-04

---

Page: https://cve.day/CVE-2026-40995 · Whole record: https://cve.day/CVE-2026-40995.json · Rebuilt by cve.day 2026-11-25T22:59:24.410Z
