Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain adjacent network position
-
DeliveryIntercept SMTP TCP connection via ARP/BGP spoofing
-
ExploitPresent rogue TLS certificate for SMTP host
-
ExecutionJavaMail client accepts cert (no hostname check)
-
ImpactRead or modify SMTP session content
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
|
| Exploitation Conditions | Exploitation requires three concurrent conditions: (1) the target application uses Spring Boot's Mail auto-configuration with SMTP over TLS or SSL (i.e., spring.mail.properties.mail.smtp.ssl.enable=true or SMTPS on port 465); (2) the application has NOT set spring.mail.properties.mail.smtp.ssl.checkserveridentity=true, meaning it relies on the insecure framework default; and (3) the attacker has achieved adjacent-network positioning sufficient to intercept TCP connections to the configured SMTP host, such as via ARP poisoning, BGP hijacking on a shared segment, or rogue infrastructure in a cloud tenant environment. Exploitation is prevented entirely if the checkserveridentity property is set to true, if SMTP is not used, if the connection does not use TLS/SSL, or if the application is isolated on a dedicated network with no plausible MitM path. |
| Impact | The NVD-assigned CVSS 5.0 (AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L) is broadly consistent with the threat model: AV:A correctly reflects that the attacker must occupy the same broadcast domain or be otherwise positioned as a network intermediary, and AC:H acknowledges the complexity of establishing a credible MitM position in practice. The combined CIA impact of Low/Low/Low is appropriate because the attacker can inspect and tamper with SMTP session content but cannot directly pivot to the application host. EPSS data is not provided in the source intelligence, and the vulnerability is not listed in CISA KEV, suggesting no confirmed active exploitation at this time. No public exploit code has been identified. The real-world priority is moderate: cloud-hosted applications sharing infrastructure (e.g., container clusters, shared VPCs) face greater exposure than isolated on-premises deployments, since AV:A is more easily satisfied in multi-tenant environments. The availability dimension (A:L in the provided vector) is the least certain signal - a passive MitM would not typically cause service disruption, though an active attacker could drop SMTP connections. |
| Exploit ScenarioDerived | An attacker positioned on the same network segment as the Spring Boot application - for example, a co-tenant in a shared Kubernetes cluster or cloud VPC with ARP spoofing capability - intercepts the outbound SMTP connection and presents a TLS certificate for an unrelated domain. Because hostname verification is disabled by default, the JavaMail client accepts the certificate, allowing the attacker to read email bodies and headers (including credentials transmitted in AUTH commands) or silently modify message content in transit. No public exploit code is required; standard MitM tooling (e.g., mitmproxy) is sufficient once network positioning is achieved. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 11, 2026
Spring Boot's Mail auto-configuration omits hostname verification for SMTP over TLS/SSL, leaving applications exposed to man-in-the-middle interception of outbound email traffic on adjacent network segments. Three active release lines are affected - 3.4.x through 3.4.16, 3.5.x through 3.5.14, and 4.0.x through 4.0.6 - unless the deploying application has explicitly set the JavaMail property spring.mail.properties.mail.smtp.ssl.checkserveridentity=true to override the insecure default. No public exploit has been identified at time of analysis, but the flaw is present by default in any Spring Boot application that uses the built-in Mail auto-configuration with TLS/SSL and has not applied the corrective property.
RemediationAI
The immediate workaround - which is also fully protective - is to add spring.mail.properties.mail.smtp.ssl.checkserveridentity=true to application.properties or application.yml in all affected deployments; this explicitly re-enables hostname verification and is noted by the vendor as sufficient to prevent exploitation with no functional side effects on compliant mail servers. For a permanent fix, upgrade to a patched Spring Boot release; exact fixed versions are not confirmed in the provided input data and must be obtained from the vendor advisory at https://spring.io/security/cve-2026-40992 before applying. Organizations that cannot upgrade or add the property immediately should restrict outbound SMTP to trusted relay hosts via network egress controls, reducing the opportunity for network-level MitM, though this does not eliminate the underlying misconfiguration.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Spring Boot's auto-configuration layer (org.springframework.boot.autoconfigure.mail) provisions JavaMail Session beans without enabling the smtp.ssl.checkserveridentity property, which is the JavaMail mechanism that instructs the JSSE layer to validate that the server certificate's subject name matches the target hostname. CWE-295 (Improper Certificate Validation) is the root cause class: the TLS handshake succeeds and the certificate chain may be valid, but without hostname binding an attacker can present any certificate from a trusted CA for an unrelated domain. The affected CPE is cpe:2.3:a:spring:spring_boot:*:*:*:*:*:*:*:*, covering the Spring Boot artifact as distributed by VMware (Broadcom). The vulnerability surfaces only on SMTP connections that traverse a TLS session; plaintext SMTP (port 25 without STARTTLS or SSL) is unaffected by this control but carries its own risks.
Know when Spring 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
AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Adjacent network MitM required (AV:A/AC:H); no privileges needed; confidentiality and integrity at risk but availability impact unsupported by the interception-only threat model.
Primary rating from Vendor (vmware).
CVSS VectorVendor: vmware
Lifecycle Timeline
1DescriptionCVE.org
Spring Boot's Mail auto-configuration does not enable hostname verification. Applications that set the relevant JavaMail property, such as spring.mail.properties.mail.smtp.ssl.checkserveridentity=true, are not affected.
Affected versions: Spring Boot 4.0.0 through 4.0.6; 3.5.0 through 3.5.14; 3.4.0 through 3.4.16.
Blast Radius
ecosystem impact- 20 maven packages depend on org.springframework.boot:spring-boot-starter-mail (7 direct, 13 indirect)
Ecosystem-wide dependent count for version 4.0.0.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat
Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u
Document ID injection in Spring AI's TypesenseVectorStore delete path lets a remote unauthenticated caller who controls
Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant
SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t
Remote code execution in Spring for GraphQL versions 1.3.0-1.3.8, 1.4.0-1.4.5, and 2.0.0-2.0.3 allows unauthenticated at
Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across
Spring AI versions 1.0.0 through 1.0.4 and 1.1.0 through 1.1.3 allow unauthenticated remote code execution through Sprin
Unsafe JSON deserialization in Spring Framework's JMS message converters (MappingJackson2MessageConverter and JacksonJso
Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity
Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca
Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files
EUVD-2026-36203
GHSA-9wxp-w4px-32vh
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB