Vulnerabilities in pkg:maven/com.rabbitmq.jms/rabbitmq-jms
PACKAGECVE-2020-36282 is a HIGH unsafe deserialization that can result vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Rabbitmq jms libraries in the Maven ecosystem. The issue involves unsafe deserialization that can result in code execution. Remediation is available by upgrading affected packages to version 2.2.0, 1.15.2.
pkg:maven/com.rabbitmq.jms/rabbitmq-jms
Vulnerability advisories affecting package pkg:maven/com.rabbitmq.jms/rabbitmq-jms. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-v525-c3g5-cg9p | CVE-2020-36282 | HIGH | Unsafe Deserialization that can Result in Code Execution |
CVE-2020-36282 at a Glance
How to Fix CVE-2020-36282
To remediate this vulnerability, upgrade all affected Rabbitmq jms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.rabbitmq.jms</groupId>
<artifactId>rabbitmq-jms</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>com.rabbitmq.jms</groupId>
<artifactId>rabbitmq-jms</artifactId>
<version>1.15.2</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.rabbitmq.jms
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2020-36282, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.rabbitmq.jms
Analyze the terminal output to locate any version of Rabbitmq jms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.rabbitmq.jms command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Rabbitmq jms, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-36282 Affected Rabbitmq jms Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.rabbitmq.jms:rabbitmq-jms
|
Maven |
≥ 2.0
< 2.2.0
|
2.2.0
|
|
com.rabbitmq.jms:rabbitmq-jms
|
Maven |
≥ 1.0
< 1.15.2
|
1.15.2
|
References
Frequently Asked Questions
What is CVE-2020-36282?
Which Rabbitmq jms versions are affected?
What version fixes CVE-2020-36282?
Is rabbitmq-jms affected?
What CWE is associated with CVE-2020-36282?
How can I check Maven dependencies for CVE-2020-36282?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v525-c3g5-cg9p",
"modified" : "2021-03-15T23:45:19Z",
"published" : "2021-12-10T17:15:49Z",
"aliases" : [ "CVE-2020-36282" ],
"summary" : "Unsafe Deserialization that can Result in Code Execution",
"details" : "JMS Client for RabbitMQ 1.x before 1.15.2 and 2.x before 2.2.0 is vulnerable to unsafe deserialization that can result in code execution via crafted StreamMessage data.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.rabbitmq.jms:rabbitmq-jms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0"
}, {
"fixed" : "2.2.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.rabbitmq.jms:rabbitmq-jms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0"
}, {
"fixed" : "1.15.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-36282"
}, {
"type" : "WEB",
"url" : "https://github.com/rabbitmq/rabbitmq-jms-client/issues/135"
}, {
"type" : "WEB",
"url" : "https://github.com/rabbitmq/rabbitmq-jms-client/pull/136/commits/f647e5dbfe055a2ca8cbb16dd70f9d50d888b638"
}, {
"type" : "WEB",
"url" : "https://github.com/rabbitmq/rabbitmq-jms-client/releases/tag/v1.15.2"
}, {
"type" : "WEB",
"url" : "https://github.com/rabbitmq/rabbitmq-jms-client/releases/tag/v2.2.0"
}, {
"type" : "WEB",
"url" : "https://medium.com/@ramon93i7/a99645d0448b"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-03-15T23:45:19Z",
"nvd_published_at" : "2021-03-12T01:15:00Z"
}
}