CVE-2012-5784: Axis Man-in-the-middle Attack Vulnerability
MODERATECVE-2012-5784 is a MODERATE man-in-the-middle attack vulnerability (CWE-20: Improper Input Validation) affecting Axis libraries in the Maven ecosystem. The issue involves man-in-the-middle attack in apache axis. Remediation is available in the latest vendor maintenance releases.
CVE-2012-5784 at a Glance
How to Fix CVE-2012-5784
To remediate this vulnerability, upgrade all affected Axis 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.axis</groupId>
<artifactId>axis</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis</artifactId>
<version>Latest secure release</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.axis
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2012-5784, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.axis
Analyze the terminal output to locate any version of Axis in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.axis 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Axis, 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-2012-5784 Affected Axis Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.axis:axis
|
Maven |
≤ 1.4
|
|
|
axis:axis
|
Maven |
≤ 1.4
|
|
References
Frequently Asked Questions
What is CVE-2012-5784?
Which Axis versions are affected?
What version fixes CVE-2012-5784?
Is axis affected?
What CWE is associated with CVE-2012-5784?
How can I check Maven dependencies for CVE-2012-5784?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-55w9-c3g2-4rrh",
"modified" : "2020-10-07T17:50:33Z",
"published" : "2020-10-07T17:51:02Z",
"aliases" : [ "CVE-2012-5784" ],
"summary" : "Man-in-the-middle attack in Apache Axis",
"details" : "Apache Axis 1.4 and earlier, as used in PayPal Payments Pro, PayPal Mass Pay, PayPal Transactional Information SOAP, the Java Message Service implementation in Apache ActiveMQ, and other products, does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.axis:axis"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "axis:axis"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-5784"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/79829"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/44d4e88a5fa8ae60deb752029afe9054da87c5f859caf296fcf585e5@%3Cjava-dev.axis.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/5e6c92145deddcecf70c3604041dcbd615efa2d37632fc2b9c367780@%3Cjava-dev.axis.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/8aa25c99eeb0693fc229ec87d1423b5ed5d58558618706d8aba1d832@%3Cjava-dev.axis.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/a308887782e05da7cf692e4851ae2bd429a038570cbf594e6631cc8d@%3Cjava-dev.axis.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/de2af12dcaba653d02b03235327ca4aa930401813a3cced8e151d29c@%3Cjava-dev.axis.apache.org%3E"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00007.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00022.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2013-0269.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2013-0683.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2014-0037.html"
}, {
"type" : "WEB",
"url" : "http://secunia.com/advisories/51219"
}, {
"type" : "WEB",
"url" : "http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/56408"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-10-07T17:50:33Z",
"nvd_published_at" : null
}
}