Spring Boot
CVE-2026-40974
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconPosition on local network segment
-
DeliveryForge or obtain valid CA-signed SSL certificate
-
ExploitIntercept Cassandra connection via ARP/DNS spoofing
-
InstallPresent valid certificate to Spring Boot
-
C2Skip hostname verification
-
ExecuteDecrypt and log database credentials
-
ImpactExfiltrate or manipulate data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
|
| Exploitation Conditions | Exploitation requires four specific conditions: (1) Spring Boot application with Cassandra auto-configuration explicitly enabled (org.springframework.boot:spring-boot-starter-data-cassandra or manual @EnableCassandraRepositories), (2) Cassandra cluster configured to require or prefer SSL/TLS connections, (3) network positioning on the same local/adjacent network segment as the application and Cassandra server (AV:A - not internet-routable), and (4) ability to present a valid SSL certificate signed by a certificate authority trusted by the application (e.g., a public CA or internal PKI). The vulnerability does NOT require authentication to the Cassandra cluster itself (PR:N) or user interaction (UI:N) - once the attacker intercepts the connection with a valid certificate, the auto-configuration automatically accepts it. Deployments using hostname verification in custom Cassandra configurations, or applications not using Cassandra auto-configuration, are NOT affected. Additionally, environments with mutual TLS (mTLS) requiring client certificate authentication, or those using pinning (certificate pinning) in the application, may provide additional protection but do not fully mitigate this vulnerability if hostname verification is absent. |
| Impact | CVSS vector AV:A/AC:H/PR:N/UI:N indicates local/adjacent network access with high attack complexity, suggesting a real-world threat only in specific network topologies. The CVSS base score of 5.0 (medium) reflects the combination of moderate impact (confidentiality and integrity breaches for Cassandra credentials and queries) but limited attack surface (adjacent network only, not internet-routable). The AV:A designation is the primary constraint-this is not remotely exploitable from the internet, reducing widespread risk. However, in internal network environments where Spring Boot applications connect to Cassandra over TLS, this is a practical man-in-the-middle vulnerability: an attacker on the LAN segment can intercept database credentials and sensitive data without user interaction (UI:N). The AC:H (high attack complexity) likely reflects the need to position oneself on the network path and obtain or generate a valid certificate (though a valid CA-signed cert for any domain suffices if no hostname verification occurs). The confidentiality and integrity impacts (C:L/I:L) are accurately scoped-attackers gain access to database traffic but not necessarily full system compromise. No EPSS score provided, but exploitation requires both network proximity AND a valid certificate, making this a targeted rather than mass-exploitation risk. Real-world severity depends heavily on deployment: internal corporate networks with Cassandra clusters are at higher risk than internet-facing SaaS deployments. |
| Exploit ScenarioDerived | An attacker on a corporate network segment hosting both a Spring Boot application and its Cassandra database obtains or generates a valid SSL certificate (e.g., via a compromised internal CA or by leveraging a domain registrar). The attacker then performs ARP spoofing or DNS poisoning to intercept traffic between the Spring Boot application and the Cassandra server. When the application reconnects with the patched certificate, Spring Boot's Cassandra auto-configuration accepts the certificate (it is valid and signed by a trusted CA) but does not verify the hostname, completing the TLS handshake. The attacker decrypts and logs all Cassandra credentials and queries, exfiltrating sensitive data or injecting malicious commands into the database session. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 28, 2026
Spring Boot's Cassandra auto-configuration fails to verify hostnames during SSL/TLS connection establishment to Cassandra servers, enabling man-in-the-middle attackers on the local network to intercept credentials and data by presenting a valid certificate for any domain. Affects Spring Boot 2.7.0-4.0.5; vendor-released patches available for all supported versions (4.0.6, 3.5.14, 3.4.16, 3.3.19, 2.7.33). No public exploit code identified at time of analysis.
RemediationAI
Upgrade Spring Boot immediately to the patched versions: 2.7.33, 3.3.19, 3.4.16, 3.5.14, or 4.0.6 or later, depending on your current branch. These releases enable hostname verification by default in the Cassandra SSL auto-configuration. For organizations unable to upgrade immediately, disable Cassandra SSL/TLS auto-configuration and manually configure the Cassandra driver with explicit hostname verification enabled (e.g., via the Cassandra Java driver's SSLContext with proper HostnameVerifier implementation). This workaround requires custom Spring configuration and should be validated with your Cassandra operations team to ensure compatibility. Alternatively, restrict network access to Cassandra servers using firewall rules and network segmentation to limit the attack surface to trusted, authenticated network segments; this does not fix the underlying vulnerability but reduces the likelihood of successful man-in-the-middle attacks in locked-down environments. All mitigations should be tested in a staging environment before production deployment. Full advisory and patch details: https://spring.io/security/cve-2026-40974.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in maven
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Spring Boot provides auto-configuration for Cassandra database connections, including SSL/TLS setup. The vulnerability resides in the Cassandra auto-configuration module's SSL context initialization, which accepts valid SSL certificates but does not enforce hostname verification-a critical validation step that ensures the certificate's Subject Alternative Name (SAN) or Common Name (CN) matches the target hostname. This is a violation of CWE-295 (Improper Certificate Validation) and allows attackers positioned on the network path (e.g., corporate LAN, compromised router, or shared cloud infrastructure) to substitute a legitimate CA-signed certificate for any hostname and successfully complete the TLS handshake. The affected versions span Spring Boot 2.7.x through 4.0.x release lines, impacting both active and unsupported versions per vendor guidance.
Know when Spring Boot gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
Sources disagree (Medium–Critical)AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
Spring Boot's Cassandra auto-configuration does not perform hostname verification when establishing an SSL connection to Cassandra.
Affected: Spring Boot 4.0.0-4.0.5 (fix 4.0.6), 3.5.0-3.5.13 (fix 3.5.14), 3.4.0-3.4.15 (fix 3.4.16), 3.3.0-3.3.18 (fix 3.3.19), 2.7.0-2.7.32 (fix 2.7.33); Cassandra SSL auto-configuration. Versions that are no longer supported are also affected per vendor advisory.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)NVD
Related Vulnerabilities in Spring Boot Configuration Security Issues
View all 5More in Spring Boot
View allMalicious PATCH requests submitted to servers using Spring Data REST versions prior to 2.6.9 (Ingalls SR9), versions pri
spring-boot versions prior to version v2.2.11.RELEASE was vulnerable to temporary directory hijacking. Rated high severi
In Spring Boot versions 3.0.0 - 3.0.5, 2.7.0 - 2.7.10, and older unsupported versions, an application that is deployed t
Element Plug-in for vCenter Server incorporates SpringBoot Framework. Rated critical severity (CVSS 9.8), this vulnerabi
Unauthorized read access to book records in TaleLin lin-cms-spring-boot 0.2.1 and earlier is possible through the search
Improper authorization in TaleLin lin-cms-spring-boot through 0.2.1 lets unauthenticated remote attackers read book reco
Improper authorization in TaleLin lin-cms-spring-boot 0.2.1 and earlier lets remote unauthenticated attackers read book
Spring Boot's RabbitMQ auto-configuration omits TLS hostname verification when an SSL bundle is configured, enabling a m
This is an authentication bypass vulnerability in Spring Boot applications using Spring Security with Actuator endpoints
Spring Boot Actuator endpoints can be bypassed for authentication when application endpoints are configured under Health
Timing attack against Spring Boot DevTools remote secret comparison allows adjacent network attackers to recover the sha
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB