CVE-2018-11087: Man-in-the-Middle Vulnerability in com.rabbitmq:amqp-client and org.springframework.amqp:spring-amqp
Summary
CVE-2018-11087: 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. Affects org.springframework.amqp:spring-amqp across 2 version ranges.
< 1.7.10
>= 2.0.0, < 2.0.6
Fixed in 1.7.10 or 2.0.6, depending on the release line you run. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The com.rabbitmq:amqp-client and org.springframework.amqp:spring-amqp packages are widely used in applications that implement the Advanced Message Queuing Protocol (AMQP). These packages provide functionality for sending and receiving messages between different components of an application. However, versions prior to 1.7.10 for org.springframework.amqp:spring-amqp and versions prior to 4.8.0 for com.rabbitmq:amqp-client are vulnerable to a man-in-the-middle attack due to a lack of hostname validation. This means that an attacker with the ability to intercept network traffic can view the data being transmitted.
Vulnerability Detail
The vulnerability arises from the failure to validate the hostname during the establishment of a connection. This allows an attacker to impersonate a legitimate server and intercept the communication between the client and the server. As a result, the attacker can view sensitive information transmitted over the network, potentially leading to unauthorized access or data leakage. The vulnerability has a CVSS score of 5.9, indicating a moderate severity level.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
< 1.7.101.7.10 -
>= 2.0.0, < 2.0.62.0.6
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to update to the fixed versions of the packages to address the issue.
Conclusion
In conclusion, the com.rabbitmq:amqp-client and org.springframework.amqp:spring-amqp packages are vulnerable to a man-in-the-middle attack due to a lack of hostname validation. This can result in unauthorized access or data leakage. To mitigate the risk, it is crucial to update to the fixed versions of the packages. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.springframework.amqp:spring-amqp →
FAQ
The vulnerability allows an attacker to intercept network traffic and view sensitive information transmitted between the client and the server. This can lead to unauthorized access or data leakage.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply provide your pom.xml file, and Vulert will analyze it for any open-source vulnerabilities, including this one.
There are no known public exploits for this vulnerability at the time of writing. However, it is crucial to update to the fixed versions to prevent potential attacks.
No, updating to the fixed versions is the recommended approach to mitigate the risk. There are no known workarounds for this vulnerability.
You can find more information about this vulnerability in the GitHub Advisory Database. Please refer to the provided source links in the 'affected' section of this report.
References
Related vulnerabilities
Recent vulnerabilities recorded for org.springframework.amqp:spring-amqp.