Spring Boot CVE-2026-40974
MEDIUMSeverity by source
AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Primary rating from NVD.
CVSS VectorNVD
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Lifecycle Timeline
3Blast Radius
ecosystem impact- 16 maven packages depend on org.springframework.boot:spring-boot-cassandra (5 direct, 11 indirect)
Ecosystem-wide dependent count for version 4.0.0.
DescriptionCVE.org
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.
AnalysisAI
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.
Technical ContextAI
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.
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.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
Same weakness CWE-295 – Improper Certificate Validation
View allSame technique Information Disclosure
View allVendor StatusVendor
Share
External POC / Exploit Code
Leaving vuln.today