CVE-2012-5785 Apache Axis2 has Improper Input Validation

Medium 5.8 Published Updated

Man-in-the-middle attackers can spoof SSL servers using arbitrary valid certificates due to missing hostname verification in Apache Axis2.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2012-5785?

CVE-2012-5785 is a medium-severity vulnerability in n/a, published on 4 Nov 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Apache Axis2/Java 1.6.2 and earlier 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.

Weakness: CWE-20

Which versions are affected by CVE-2012-5785?

4 open source packages ship an affected version, including org.apache.axis2:axis2 and org.apache.axis2:axis2-transport-http. It affects 1 product.

PackageAffectedFixed in
org.apache.axis2:axis2 MavenAll versions1.8.0
org.apache.axis2:axis2 MavenAll versions1.8.0
org.apache.axis2:axis2-transport-http MavenAll versions1.8.0
org.apache.axis2:axis2-transport-http MavenAll versions1.8.0

Products include Apache Axis2.

How do I fix CVE-2012-5785?

Upgrade org.apache.axis2:axis2 to 1.8.0 or later.

Is CVE-2012-5785 being exploited?

There is no known exploitation of CVE-2012-5785 in the wild and no public exploit code.

Sources

Also known as GHSA-wwq7-pxwc-p4rc.

Is CVE-2012-5785 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free