Skip to main content

Spring Boot CVE-2026-40974

CRITICAL
Improper Certificate Validation (CWE-295)
2026-04-28 security@vmware.com
Critical
Disputed · 9.8 NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Position on local network segment
  2. Delivery
    Forge or obtain valid CA-signed SSL certificate
  3. Exploit
    Intercept Cassandra connection via ARP/DNS spoofing
  4. Install
    Present valid certificate to Spring Boot
  5. C2
    Skip hostname verification
  6. Execute
    Decrypt and log database credentials
  7. Impact
    Exfiltrate 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

maven org.springframework.boot:spring-boot-cassandra fix: 3.5.14, 4.0.6

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)
NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat 6.4 MEDIUM

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Severity Changed
Jul 24, 2026 - 21:22 NVD
MEDIUM CRITICAL
CVSS changed
Jul 24, 2026 - 21:22 NVD
5.0 (MEDIUM) 9.8 (CRITICAL)
CVE Published
Apr 28, 2026 - 00:16 nvd
MEDIUM 5.0

DescriptionNVD

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

EPSS Score
0.0%
Top 97% exploitable
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment Vendor CIRCL VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:vmware:spring_boot:*:*:*:*:*:*:*:*
cpe:2.3:a:vmware:spring_boot:*:*:*:*:*:*:*:*
cpe:2.3:a:vmware:spring_boot:*:*:*:*:*:*:*:*
cpe:2.3:a:vmware:spring_boot:*:*:*:*:*:*:*:*
cpe:2.3:a:vmware:spring_boot:*:*:*:*:*:*:*:*
CVE-2017-8046 CRITICAL POC
9.8 Jan 04

Malicious PATCH requests submitted to servers using Spring Data REST versions prior to 2.6.9 (Ingalls SR9), versions pri

CVE-2022-27772 HIGH POC
7.8 Mar 30

spring-boot versions prior to version v2.2.11.RELEASE was vulnerable to temporary directory hijacking. Rated high severi

CVE-2023-20873 CRITICAL
9.8 Apr 20

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

CVE-2021-26987 CRITICAL
9.8 Mar 15

Element Plug-in for vCenter Server incorporates SpringBoot Framework. Rated critical severity (CVSS 9.8), this vulnerabi

CVE-2026-96882 MEDIUM POC
5.5 Sep 24

Unauthorized read access to book records in TaleLin lin-cms-spring-boot 0.2.1 and earlier is possible through the search

CVE-2026-96881 MEDIUM POC
5.5 Sep 24

Improper authorization in TaleLin lin-cms-spring-boot through 0.2.1 lets unauthenticated remote attackers read book reco

CVE-2026-96880 MEDIUM POC
5.5 Sep 24

Improper authorization in TaleLin lin-cms-spring-boot 0.2.1 and earlier lets remote unauthenticated attackers read book

CVE-2026-40971 CRITICAL
9.1 Apr 27

Spring Boot's RabbitMQ auto-configuration omits TLS hostname verification when an SSL bundle is configured, enabling a m

CVE-2026-22733 HIGH
8.2 Mar 20

This is an authentication bypass vulnerability in Spring Boot applications using Spring Security with Actuator endpoints

CVE-2026-22731 HIGH
8.2 Mar 19

Spring Boot Actuator endpoints can be bypassed for authentication when application endpoints are configured under Health

CVE-2026-40972 HIGH
7.5 Apr 27

Timing attack against Spring Boot DevTools remote secret comparison allows adjacent network attackers to recover the sha

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy