CVE-2026-40974
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedSpring 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceSpring Boot's Cassandra auto-configuration skips hostname verification during SSL/TLS handshakes, allowing attackers to perform man-in-the-middle attacks by presenting fraudulent certificates. This occurs because the auto-configured CqlSessionBuilder does not enable hostname verification, even when SSL is explicitly configured.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 2.7.0, < 2.7.33>= 3.3.0, < 3.3.19>= 3.4.0, < 3.4.16>= 3.5.0, < 3.5.14>= 4.0.0, < 4.0.6CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Spring Boot versionInspect your project's pom.xml (look for <spring-boot.version> or parent pom) or build.gradle (springBootVersion variable). Also check the spring-boot-dependencies pom if used as a BOM.Affected if The version falls outside these safe ranges: 2.7.33+, 3.3.19+, 3.4.16+, 3.5.14+, or 4.0.6+.
-
Confirm Cassandra with SSL is in useCheck application.properties or application.yml for spring.data.cassandra.ssl=true, or inspect any @EnableCassandraRepositories configuration with SSL settings.Affected if Cassandra SSL is enabled (spring.data.cassandra.ssl is true or a custom CqlSessionBuilderCustomizer enables SSL).
-
Inspect SSL hostname verification settingLook in application.properties/yml for any hostname verification property under the Cassandra SSL configuration (commonly spring.data.cassandra.ssl-config.hostname-verify or similar driver setting), or in any custom CqlSessionConfigurer bean that configures the SSL options.Affected if No explicit hostname verification is configured, OR it is explicitly set to disabled/false (leaving the default vulnerable behavior).
You are affected if your Spring Boot version is vulnerable AND you use Cassandra with SSL enabled AND hostname verification is not explicitly configured to enabled.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped2.7.333.3.193.4.16
Upgrade Spring Boot to the fixed version (4.0.6, 3.5.14, 3.4.16, 3.3.19, or 2.7.33) or explicitly configure hostname verification in the Cassandra SSL configuration if upgrade is not immediately feasible.
Spring Boot 2.7.33, 3.3.19, 3.4.16, 3.5.14, or 4.0.6 (depending on your current major version)
- 1. Identify the current Spring Boot version in use by checking pom.xml or build.gradle for the spring-boot-starter-parent or spring-boot.version property.
- 2. If using Spring Boot 2.7.x, upgrade to version 2.7.33 or later.
- 3. If using Spring Boot 3.3.x, upgrade to version 3.3.19 or later.
- 4. If using Spring Boot 3.4.x, upgrade to version 3.4.16 or later.
- 5. If using Spring Boot 3.5.x, upgrade to version 3.5.14 or later.
- 6. If using Spring Boot 4.0.x, upgrade to version 4.0.6 or later.
- 7. Rebuild and redeploy the application.
- 8. Verify that SSL connections to Cassandra are working correctly with hostname verification enabled.
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing6.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,808.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-40974 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-40974 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data