CVE-2015-1830: Activemq client Improper Limitation Of A Pathname Vulnerability
MODERATECVE-2015-1830 is a MODERATE improper limitation of a pathname vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Activemq client libraries in the Maven ecosystem. The issue involves improper limitation of a pathname to a restricted directory in apache activemq. Remediation is available by upgrading affected packages to version 5.11.2.
CVE-2015-1830 at a Glance
How to Fix CVE-2015-1830
To remediate this vulnerability, upgrade all affected Activemq client 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>org.apache.activemq</groupId>
<artifactId>activemq-client</artifactId>
<version>5.11.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=org.apache.activemq
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2015-1830, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.activemq
Analyze the terminal output to locate any version of Activemq client in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.11.2), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.activemq 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Activemq client, 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-2015-1830 Affected Activemq client Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.activemq:activemq-client
|
Maven |
≥ 5.0.0
< 5.11.2
|
5.11.2
|
References
Frequently Asked Questions
What is CVE-2015-1830?
Which Activemq client versions are affected?
What version fixes CVE-2015-1830?
Is activemq-client affected?
What CWE is associated with CVE-2015-1830?
How can I check Maven dependencies for CVE-2015-1830?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3v63-f83x-37x4",
"modified" : "2023-12-20T20:07:29Z",
"published" : "2022-05-14T01:14:51Z",
"aliases" : [ "CVE-2015-1830" ],
"summary" : "Improper Limitation of a Pathname to a Restricted Directory in Apache ActiveMQ",
"details" : "Directory traversal vulnerability in the fileserver upload/download functionality for blob messages in Apache ActiveMQ 5.x before 5.11.2 for Windows allows remote attackers to create JSP files in arbitrary directories via unspecified vectors.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.activemq:activemq-client"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0"
}, {
"fixed" : "5.11.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.11.1"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-1830"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/activemq/commit/729c4731574ffffaf58ebefdbaeb3bd19ed1c7b7"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/activemq/commit/9fd5cb7dfe0fcc431f99d5e14206e0090e72f36b"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/activemq"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/AMQ-5754"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/a859563f05fbe7c31916b3178c2697165bd9bbf5a65d1cf62aef27d2%40%3Ccommits.activemq.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/a859563f05fbe7c31916b3178c2697165bd9bbf5a65d1cf62aef27d2@%3Ccommits.activemq.apache.org%3E"
}, {
"type" : "WEB",
"url" : "http://activemq.apache.org/security-advisories.data/CVE-2015-1830-announcement.txt"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/156643/Apache-ActiveMQ-5.11.1-Directory-Traversal-Shell-Upload.html"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/76452"
}, {
"type" : "WEB",
"url" : "http://www.securitytracker.com/id/1033315"
}, {
"type" : "WEB",
"url" : "http://www.zerodayinitiative.com/advisories/ZDI-15-407"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-06T20:23:30Z",
"nvd_published_at" : "2015-08-19T15:59:00Z"
}
}