Moderate severity vulnerability that affects com.rabbitmq:amqp-client and org.springframework.amqp:spring-amqpGHSA-w4g2-9hj6-5472
MEDIUMGHSA-w4g2-9hj6-5472 is a medium-severity (CVSS 5.9) CWE-295 vulnerability in org.springframework.amqp:spring-amqp. A fix is available for org.springframework.amqp:spring-amqp — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.springframework.amqp:spring-amqp☕org.springframework.amqp:spring-amqp☕com.rabbitmq:amqp-client☕com.rabbitmq:amqp-clientReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Pivotal Spring AMQP, 1.x versions prior to 1.7.10 and 2.x versions prior to 2.0.6, expose a man-in-the-middle vulnerability due to lack of hostname validation. A malicious user that has the ability to intercept traffic would be able to view data in transit.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.springframework.amqp:spring-amqp | ≥ 2.0.0&&< 2.0.6 | 2.0.6org.springframework.amqp:spring-amqp:2.0.6 |
| ☕Maven | org.springframework.amqp:spring-amqp | all versions | 1.7.10org.springframework.amqp:spring-amqp:1.7.10 |
| ☕Maven | com.rabbitmq:amqp-client | all versions | 4.8.0com.rabbitmq:amqp-client:4.8.0 |
| ☕Maven | com.rabbitmq:amqp-client | ≥ 5.0.0&&< 5.4.0 | 5.4.0com.rabbitmq:amqp-client:5.4.0 |
Affected Products
spring advanced message queuing protocolpivotal_softwarerabbitmq java clientvmwareDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.springframework.amqp:spring-amqp, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.springframework.amqp:spring-amqp to 2.0.6 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-w4g2-9hj6-5472 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-w4g2-9hj6-5472 in your dependencies?
Find it across Maven, including transitive dependencies.