Spring Boot
CVE-2026-40971
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain adjacent network position
-
DeliveryIntercept outbound TLS connection to RabbitMQ broker
-
ExploitPresent certificate with mismatched hostname
-
ExecutionExploit absent hostname verification to complete handshake
-
ImpactProxy 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 |
| 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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)AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
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.
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
Lifecycle Timeline
3DescriptionNVD
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
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.
Affected Products (CPE)NVD
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
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
Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB