Skip to main content
VulnerabilityPublished

CVE-2026-40974: Spring Boot · Improper Certificate Validation

Affects Spring BootSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.0 Medium · fixed in 4.0.6 : update Spring Boot when convenient.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 3.1 base score
5.0Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 7% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.0.6, 3.5.14, 3.4.16 +2
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
SpringSpring BootAffected
  • >=4.0.0 <4.0.6
Fixed in
  • 4.0.6
SpringSpring BootAffected
  • >=3.5.0 <3.5.14
Fixed in
  • 3.5.14
SpringSpring BootAffected
  • >=3.4.0 <3.4.16
Fixed in
  • 3.4.16
SpringSpring BootAffected
  • >=3.3.0 <3.3.19
Fixed in
  • 3.3.19
SpringSpring BootAffected
  • >=2.7.0 <2.7.33
Fixed in
  • 2.7.33
Mavenorg.springframework.boot/spring-bootpkg:maven/org.springframework.boot/spring-bootOther threatsAffected
  • 2.7.0 – 4.0.0
5 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

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.

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.

References

Community reviews

Loading reviews…