CVE-2026-40974: CWE-295: Improper Certificate Validation in Spring Spring Boot
CVE-2026-40974 is a medium severity vulnerability in Spring Boot's Cassandra SSL auto-configuration where hostname verification is not performed during SSL connections to Cassandra. This affects multiple Spring Boot versions from 2.7.0 through 4.0.5, with fixes available in later patch versions. The lack of hostname verification can lead to improper certificate validation, potentially allowing man-in-the-middle attacks that compromise confidentiality, integrity, and availability. No known exploits are reported in the wild at this time.
AI Analysis
Technical Summary
Spring Boot versions 2.7.0 to 4.0.5 contain a vulnerability (CWE-295) in the Cassandra SSL auto-configuration component where hostname verification is not enforced when establishing SSL connections. This improper certificate validation undermines the security guarantees of SSL/TLS by allowing connections to Cassandra servers without verifying that the server's hostname matches the certificate. Affected versions include 2.7.0–2.7.32, 3.3.0–3.3.18, 3.4.0–3.4.15, 3.5.0–3.5.13, and 4.0.0–4.0.5. Fixed versions are 2.7.33, 3.3.19, 3.4.16, 3.5.14, and 4.0.6 respectively. The CVSS 3.1 base score is 5.0 (medium), reflecting the attack vector as adjacent network with high attack complexity and no privileges required.
Potential Impact
The vulnerability allows an attacker with access to the network path between the Spring Boot application and the Cassandra server to potentially perform man-in-the-middle attacks due to missing hostname verification in SSL connections. This can lead to partial confidentiality, integrity, and availability impacts as indicated by the CVSS vector (C:L/I:L/A:L). There are no known exploits in the wild currently.
Mitigation Recommendations
Fixed versions of Spring Boot have been released that address this vulnerability by adding proper hostname verification in Cassandra SSL auto-configuration. Users should upgrade to the fixed versions: 2.7.33, 3.3.19, 3.4.16, 3.5.14, or 4.0.6 depending on their current version. Patch status is not explicitly confirmed in the provided data, but the vendor advisory indicates fixes in these versions. No other mitigation guidance is provided. Check the official Spring Boot release notes and advisories for the latest remediation instructions.
CVE-2026-40974: CWE-295: Improper Certificate Validation in Spring Spring Boot
Description
CVE-2026-40974 is a medium severity vulnerability in Spring Boot's Cassandra SSL auto-configuration where hostname verification is not performed during SSL connections to Cassandra. This affects multiple Spring Boot versions from 2.7.0 through 4.0.5, with fixes available in later patch versions. The lack of hostname verification can lead to improper certificate validation, potentially allowing man-in-the-middle attacks that compromise confidentiality, integrity, and availability. No known exploits are reported in the wild at this time.
CVSS v3.1
Score 5.0medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Spring Boot versions 2.7.0 to 4.0.5 contain a vulnerability (CWE-295) in the Cassandra SSL auto-configuration component where hostname verification is not enforced when establishing SSL connections. This improper certificate validation undermines the security guarantees of SSL/TLS by allowing connections to Cassandra servers without verifying that the server's hostname matches the certificate. Affected versions include 2.7.0–2.7.32, 3.3.0–3.3.18, 3.4.0–3.4.15, 3.5.0–3.5.13, and 4.0.0–4.0.5. Fixed versions are 2.7.33, 3.3.19, 3.4.16, 3.5.14, and 4.0.6 respectively. The CVSS 3.1 base score is 5.0 (medium), reflecting the attack vector as adjacent network with high attack complexity and no privileges required.
Potential Impact
The vulnerability allows an attacker with access to the network path between the Spring Boot application and the Cassandra server to potentially perform man-in-the-middle attacks due to missing hostname verification in SSL connections. This can lead to partial confidentiality, integrity, and availability impacts as indicated by the CVSS vector (C:L/I:L/A:L). There are no known exploits in the wild currently.
Mitigation Recommendations
Fixed versions of Spring Boot have been released that address this vulnerability by adding proper hostname verification in Cassandra SSL auto-configuration. Users should upgrade to the fixed versions: 2.7.33, 3.3.19, 3.4.16, 3.5.14, or 4.0.6 depending on their current version. Patch status is not explicitly confirmed in the provided data, but the vendor advisory indicates fixes in these versions. No other mitigation guidance is provided. Check the official Spring Boot release notes and advisories for the latest remediation instructions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- vmware
- Date Reserved
- 2026-04-16T02:19:04.615Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69f0134ecbff5d861057a5cb
Added to database: 4/28/2026, 1:54:22 AM
Last enriched: 5/5/2026, 7:38:30 AM
Last updated: 6/12/2026, 5:18:20 AM
Views: 124
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.