Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 75%

CVE-2026-40974: CWE-295: Improper Certificate Validation in Spring Spring Boot

0
Medium
VulnerabilityCVE-2026-40974cvecve-2026-40974cwe-295
Published: Mon Apr 27 2026 (04/27/2026, 23:31:40 UTC)
Source: CVE Database V5
Vendor/Project: Spring
Product: 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

Attack Vector
Adjacent Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

Affected software

Affected versions
=4.0.0=3.5.0=3.4.0=3.3.0=2.7.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/05/2026, 07:38:30 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses