CVE-2012-5784: Axis Man-in-the-middle Attack Vulnerability

MODERATE
Advisory Identifier: GHSA-55w9-c3g2-4rrh
CWE-20
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2012-5784
GHSA Identifier GHSA-55w9-c3g2-4rrh
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Axis
Package Ecosystem Maven
Published Date
Last Updated

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.

org.apache.axis:axis fixed: Latest secure release
<dependency>
    <groupId>org.apache.axis</groupId>
    <artifactId>axis</artifactId>
    <version>Latest secure release</version>
</dependency>
axis:axis fixed: Latest secure release
<dependency>
    <groupId>axis</groupId>
    <artifactId>axis</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

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

NVD — CVE-2012-5784 NVD
https://nvd.nist.gov/vuln/detail/CVE-2012-5784
exchange.xforce.ibmcloud.com/vulnerabilities/798... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/79829
lists.apache.org/thread.html/44d4e88... WEB
https://lists.apache.org/thread.html/44d4e88a5fa8ae60deb752029afe9054da87c5f859caf296fcf585e5@%3Cjava-dev.axis.apache.org%3E
lists.apache.org/thread.html/5e6c921... WEB
https://lists.apache.org/thread.html/5e6c92145deddcecf70c3604041dcbd615efa2d37632fc2b9c367780@%3Cjava-dev.axis.apache.org%3E
lists.apache.org/thread.html/8aa25c9... WEB
https://lists.apache.org/thread.html/8aa25c99eeb0693fc229ec87d1423b5ed5d58558618706d8aba1d832@%3Cjava-dev.axis.apache.org%3E
lists.apache.org/thread.html/a308887... WEB
https://lists.apache.org/thread.html/a308887782e05da7cf692e4851ae2bd429a038570cbf594e6631cc8d@%3Cjava-dev.axis.apache.org%3E
lists.apache.org/thread.html/de2af12... WEB
https://lists.apache.org/thread.html/de2af12dcaba653d02b03235327ca4aa930401813a3cced8e151d29c@%3Cjava-dev.axis.apache.org%3E
Axis Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00007.html
Axis Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00022.html
rhn.redhat.com/errata/rhsa-2013-02... WEB
http://rhn.redhat.com/errata/RHSA-2013-0269.html
rhn.redhat.com/errata/rhsa-2013-06... WEB
http://rhn.redhat.com/errata/RHSA-2013-0683.html
rhn.redhat.com/errata/rhsa-2014-00... WEB
http://rhn.redhat.com/errata/RHSA-2014-0037.html
secunia.com/advisories/51219 WEB
http://secunia.com/advisories/51219
www.cs.utexas.edu/~shmat/shmat_ccs12.... WEB
http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf
Axis Security Information SECURITY
http://www.securityfocus.com/bid/56408

Frequently Asked Questions

What is CVE-2012-5784?
CVE-2012-5784 is a security vulnerability in Axis involving Man-in-the-middle attack in Apache Axis under CWE-20: Improper Input Validation.
Which Axis versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.apache.axis:axis, axis:axis.
What version fixes CVE-2012-5784?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is axis affected?
Yes, org.apache.axis:axis is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2012-5784?
CVE-2012-5784 is classified under CWE-20: Improper Input Validation (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.).
How can I check Maven dependencies for CVE-2012-5784?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.axis'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}