Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Medium

Spring Boot Elasticsearch auto-configuration TLS hostname verification disablement

IdentifiersCVE-2026-40970CWE-297

CVE-2026-40970 is a TLS certificate validation flaw in Spring Boot’s Elasticsearch auto-configuration. When an application is configured to use an SSL bundle for Elasticsearch connections, the auto-configuration does not perform TLS hostname verification when connecting to the Elasticsearch server. As a result, the client may accept a certificate that is otherwise trusted but whose subject/SAN does not match the intended Elasticsearch hostname. The issue affects Spring Boot 4.0.0 through 4.0.5 and was fixed in Spring Boot 4.0.6.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

The primary impact is loss of server identity verification for TLS-protected Elasticsearch connections. An attacker positioned to intercept or redirect traffic could impersonate the Elasticsearch server using a certificate chaining to a trusted CA or otherwise accepted by the client, enabling man-in-the-middle interception or modification of application-to-Elasticsearch traffic. Depending on what the application sends to and receives from Elasticsearch, this could expose indexed data, credentials or tokens present in requests, search results, and operational metadata, and could undermine the integrity and confidentiality guarantees expected from TLS.

Mitigation

If you can’t patch tonight, do this now.

If immediate upgrade is not possible, avoid the vulnerable auto-configuration path by using a configuration approach that explicitly enforces TLS hostname verification for Elasticsearch connections. Reduce exposure by preventing attacker-controlled network paths between the application and Elasticsearch, restricting Elasticsearch connectivity to trusted internal networks, and using certificates tightly scoped to the correct hostnames. These are compensating controls only; the authoritative fix is upgrading to Spring Boot 4.0.6 or later.

Remediation

Patch, then assume compromise.

Upgrade Spring Boot to 4.0.6 or later, as indicated by the vendor advisory. The fixed release restores proper hostname verification behavior for Elasticsearch auto-configuration when SSL bundles are used. Validate that deployed applications are rebuilt and redeployed against the patched Spring Boot version and confirm Elasticsearch TLS settings enforce normal certificate and hostname checks.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
BroadcomSpring Bootapplication
BroadcomSpring-Boot-Elasticsearchapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity1

Community discussion across Reddit, Mastodon, and other social sources.