# CVE-2026-59395: Spring AMQP Publisher-Controlled Headers Overwrite Framework-Derived amqp\_\* Headers

- **Severity:** MEDIUM 4.2
- **CVSS:** 4.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.31% (percentile 25, 2026-12-03)
- **Published:** 2026-12-02T07:11:15.679Z
- **Modified:** 2026-12-02T19:26:40.093Z

## Who should check

- Anyone running Spring AMQP \>= 4.1.0, \< 4.1.2.1; \>= 4.0.0, \< 4.0.6.1; \>= 3.2.0, \< 3.2.14; \< 2.4.20; \>= 4.1.0, \< 4.1.3; \>= 4.0.0, \< 4.0.7

## Description

SimpleAmqpHeaderMapper.toHeaders() first populates the Spring Messaging headers with framework-derived values from the received MessageProperties (such as amqp\_receivedUserId , amqp\_consumerQueue , amqp\_deliveryTag and amqp\_redelivered ) and then copies the raw AMQP message headers, which are fully controlled by the publisher. As a result, a publisher can supply custom headers whose names collide with the amqp\_\* constants and silently replace the trusted values that downstream @RabbitListener handlers see via @Header or MessageHeaders .

 Applications are affected if an attacker is able to publish messages routed to a listener and the application relies on an amqp\_\* framework header, for example AmqpHeaders.RECEIVED\_USER\_ID (broker-validated identity) or AmqpHeaders.CONSUMER\_QUEUE , for authorization or routing decisions.

## Affected and fixed versions

- Spring AMQP: \>= 4.1.0, \< 4.1.2.1; \>= 4.0.0, \< 4.0.6.1; \>= 3.2.0, \< 3.2.14; \< 2.4.20; \>= 4.1.0, \< 4.1.3; \>= 4.0.0, \< 4.0.7 (cvelist)

## Mitigation

- Upgrade Spring AMQP to 4.0.7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-59395. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-59395.md
Affected: Spring AMQP >= 4.1.0, < 4.1.2.1; >= 4.0.0, < 4.0.6.1; >= 3.2.0, < 3.2.14; < 2.4.20; >= 4.1.0, < 4.1.3; >= 4.0.0, < 4.0.7
Fixed in: Spring AMQP 4.1.2.1, Spring AMQP 4.0.6.1, Spring AMQP 3.2.14, Spring AMQP 2.4.20, Spring AMQP 4.1.3, Spring AMQP 4.0.7

Steps:
1. Search this machine and project for Spring AMQP: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-59395 being exploited?

There is no confirmed exploitation: CVE-2026-59395 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-12-03).

### How serious is CVE-2026-59395?

Medium: CVSS 4.2 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-59395?

Spring AMQP \>= 4.1.0, \< 4.1.2.1; \>= 4.0.0, \< 4.0.6.1; \>= 3.2.0, \< 3.2.14; \< 2.4.20; \>= 4.1.0, \< 4.1.3; \>= 4.0.0, \< 4.0.7.

### Is there a fix for CVE-2026-59395?

Yes. Fixed in Spring AMQP 4.1.2.1, Spring AMQP 4.0.6.1, Spring AMQP 3.2.14, Spring AMQP 2.4.20, Spring AMQP 4.1.3, Spring AMQP 4.0.7. Upgrade Spring AMQP to 4.0.7 or later.

### How do I check if I'm affected by CVE-2026-59395?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://spring.io/security/cve-2026-59395>
- other: <https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N&version=3.1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-59395>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-59395> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-59395>
