Skip to main content

Spring Boot CVE-2026-40971

CRITICAL
Improper Certificate Validation (CWE-295)
2026-04-27 vmware
Critical
Disputed · 9.1 NVD
View

Attack ChainAIDerived

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

  1. Access
    Gain adjacent network position
  2. Delivery
    Intercept outbound TLS connection to RabbitMQ broker
  3. Exploit
    Present certificate with mismatched hostname
  4. Execution
    Exploit absent hostname verification to complete handshake
  5. Impact
    Proxy and read or inject AMQP messages

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
Exploitation Conditions

Exploitation is contingent on two specific conditions both being true: (1) the Spring Boot application must be configured to use an SSL bundle for RabbitMQ - specifically, the auto-configuration path triggered by the SSL bundle feature introduced in Spring Boot 3.1+ must be active, meaning a spring.ssl.bundle.* definition is referenced by the RabbitMQ configuration; applications using raw truststore properties or no TLS are not affected. (2) The attacker must occupy an adjacent network position - same broadcast domain, VLAN, or routed segment - from which they can intercept the TCP connection to the RabbitMQ broker before it reaches its destination. Limiting factors: the adjacent-network requirement eliminates remote internet threat actors; high attack complexity means opportunistic or automated exploitation is not viable; no authentication credential is required on the attacker side, but network positioning is mandatory. Applications not using SSL bundles for RabbitMQ are entirely unaffected regardless of Spring Boot version.

Impact

The CVSS 3.1 vector AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L produces a score of 5.0, reflecting moderate concern tempered by meaningful constraints. The adjacent-network attack vector (AV:A) requires the attacker to be on the same broadcast domain or routed segment as the Spring Boot application, ruling out remote internet exploitation. High attack complexity (AC:H) further requires the adversary to be correctly positioned to intercept a TLS handshake at the right moment. All three impact dimensions are Low, consistent with partial read and inject capabilities over the RabbitMQ channel rather than full system compromise. Corroborating signals: EPSS at 0.01% places this in the 3rd percentile of exploitation likelihood; SSVC marks exploitation as none and automatable as no, meaning mass exploitation tooling does not exist. The net assessment is that this is a real but low-urgency vulnerability - important to patch in environments where RabbitMQ carries sensitive business messages, but not an emergency given the required network proximity and configuration prerequisite. No data conflicts exist between CVSS, EPSS, and SSVC signals in this case.

Exploit ScenarioDerived

An attacker with a foothold on the same network segment - for example, a compromised container in the same Kubernetes namespace or a rogue host on the same VLAN - intercepts the outbound TLS connection from the Spring Boot application to the RabbitMQ broker. Because hostname verification is absent, the attacker presents a self-signed or stolen certificate with a mismatched hostname, completes the handshake, and proxies traffic to a real broker. This gives the attacker the ability to read AMQP messages in transit and potentially inject fabricated messages into the queue. No public proof-of-concept code has been identified at time of analysis.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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 – Jul 24, 2026

Spring Boot's RabbitMQ auto-configuration omits TLS hostname verification when an SSL bundle is configured, enabling a man-in-the-middle attack on the message broker connection. Affected are Spring Boot 4.0.0-4.0.5 and 3.5.0-3.5.13; fixed in 4.0.6 and 3.5.14 respectively per the vendor advisory at spring.io. No active exploitation has been confirmed - CISA KEV status is absent, EPSS is 0.01% (3rd percentile), and SSVC classifies exploitation as none - making this a medium-priority patch for deployments that use SSL bundles with RabbitMQ.

RemediationAI

The primary fix is to upgrade to Spring Boot 4.0.6 (for 4.0.x users) or 3.5.14 (for 3.5.x users), as confirmed by the vendor advisory at https://spring.io/security/cve-2026-40971. If an immediate upgrade is not feasible, operators can mitigate by moving to a manually configured RabbitMQ connection factory that explicitly sets a hostname verifier - this bypasses the flawed auto-configuration path but requires code changes and re-testing. A network-level compensating control is to enforce strict network segmentation so that no untrusted host can reach the path between the Spring Boot application and its RabbitMQ broker; this limits the adjacent-network exploitation window but does not eliminate the underlying flaw. Disabling SSL bundles in favour of direct truststore configuration is another workaround, though this loses the ergonomic benefits of the bundle mechanism. No version-number outside of 4.0.6 and 3.5.14 should be inferred as patched.

Affected Packages

maven org.springframework.boot:spring-boot-rabbitmq fix: 3.5.14, 4.0.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in maven

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-295 (Improper Certificate Validation) describes cases where TLS is established but the certificate's Subject Alternative Names or Common Name are never matched against the intended server hostname, leaving the channel open to impersonation. Spring Boot's auto-configuration for RabbitMQ (cpe:2.3:a:spring:spring_boot) wires connection-factory beans automatically when spring.rabbitmq.* properties are present. When the SSL bundle mechanism - a Spring Boot 3.1+ feature that centralises keystore/truststore configuration - is used, the auto-configured connection factory does not set a hostname verifier, bypassing a control that is normally enforced by default in standard Java TLS. The flaw is scoped to the auto-configuration path; manually constructed connection factories are not affected unless they replicate the same omission.

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

Sources disagree (Medium–Critical)
NVD PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 5.0 MEDIUM

Adjacent vector and high complexity reflect mandatory network interception positioning; all impacts are Low as attacker reaches only the RabbitMQ channel, not the host itself.

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

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorNVD

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

Lifecycle Timeline

3
Severity Changed
Jul 24, 2026 - 21:22 NVD
MEDIUM CRITICAL
CVSS changed
Jul 24, 2026 - 21:22 NVD
5.0 (MEDIUM) 9.1 (CRITICAL)
CVE Published
Apr 27, 2026 - 22:45 nvd
MEDIUM 5.0

DescriptionNVD

When configured to use an SSL bundle, Spring Boot's RabbitMQ auto-configuration does not perform hostname verification when connecting to the RabbitMQ broker.

Affected: Spring Boot 4.0.0-4.0.5 (fix 4.0.6), 3.5.0-3.5.13 (fix 3.5.14) per vendor advisory.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Prevalence
High
dominant Java application framework in enterprise microservice deployments
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment Vendor CIRCL VulDB

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
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.

Affected Products (CPE)NVD

cpe:2.3:a:spring:spring_boot:*:*:*:*:*:*:*:*

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

CVE-2026-22732 CRITICAL POC
9.1 Mar 19

Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.

Vendor StatusVendor

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