Skip to main content

Spring Boot EUVDEUVD-2026-36203

| CVE-2026-40992 MEDIUM
Improper Certificate Validation (CWE-295)
2026-06-11 vmware GHSA-9wxp-w4px-32vh
5.0
CVSS 3.1 · Vendor: vmware
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain adjacent network position
  2. Delivery
    Intercept SMTP TCP connection via ARP/BGP spoofing
  3. Exploit
    Present rogue TLS certificate for SMTP host
  4. Execution
    JavaMail client accepts cert (no hostname check)
  5. Impact
    Read 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Spring Boot 3.4.0 <3.4.17
Spring Boot 4.0.0 <4.0.7
Spring Boot 3.5.0 <3.5.15

Affected Packages

maven org.springframework.boot:spring-boot-starter-mail fix: 3.5.15, 4.0.7
euvd spring_boot fix: 3.4.17, 3.5.15, 4.0.7

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

Vendor (vmware) PRIMARY 5.0 MEDIUM
AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
vuln.today AI 4.2 MEDIUM

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.

3.1 AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:A/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (vmware).

CVSS VectorVendor: vmware

Attack Vector
Adjacent
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

Lifecycle Timeline

1
Patch available
Jun 11, 2026 - 08:01 EUVD

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 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

EPSS Score
0.0%
Top 97% exploitable
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Controlled
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

25
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +25
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Spring

View all
CVE-2025-70982 CRITICAL POC
9.9 Jan 26

Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat

CVE-2026-22739 HIGH POC
8.6 Mar 24

Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u

CVE-2026-59415 CRITICAL
10.0 Nov 24

Document ID injection in Spring AI's TypesenseVectorStore delete path lets a remote unauthenticated caller who controls

CVE-2025-41242 MEDIUM POC
5.9 Aug 18

Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant

CVE-2025-70983 CRITICAL
9.9 Jan 23

SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t

CVE-2026-41699 CRITICAL
9.8 Jun 11

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

CVE-2026-59313 CRITICAL
9.8 Aug 27

Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across

CVE-2026-22738 CRITICAL
9.8 Mar 27

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

CVE-2026-41855 CRITICAL
9.8 Jun 09

Unsafe JSON deserialization in Spring Framework's JMS message converters (MappingJackson2MessageConverter and JacksonJso

CVE-2025-41232 CRITICAL
9.1 May 21

Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity

CVE-2026-59283 CRITICAL
9.1 Aug 27

Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca

CVE-2026-40982 CRITICAL
9.1 May 07

Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy