CVE-2012-6153 Improper certificate validation in org.apache.httpcomponents:httpclient

Medium 4.3 Published Updated

Man-in-the-middle attackers can spoof SSL servers due to improper hostname verification in Apache Commons HttpClient.

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-6153?

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

Official description

http/conn/ssl/AbstractVerifier.java in Apache Commons HttpClient before 4.2.3 does not properly 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 a certificate with a subject that specifies a common name in a field that is not the CN field. NOTE: this issue exists because of an incomplete fix for CVE-2012-5783.

Weakness: CWE-20

Which versions are affected by CVE-2012-6153?

2 open source packages ship an affected version, including org.apache.httpcomponents:httpclient. It affects 1 product.

PackageAffectedFixed in
org.apache.httpcomponents:httpclient MavenAll versions4.2.3
org.apache.httpcomponents:httpclient MavenAll versions4.2.3
Linux distribution packages (2)
devtoolset-2-httpcomponents-client Red Hat:developer_toolset:2.1::el6All versions0:4.2.1-6.el6
devtoolset-2-httpcomponents-client-javadoc Red Hat:developer_toolset:2.1::el6All versions0:4.2.1-6.el6

Products include Apache Commons-Httpclient.

How do I fix CVE-2012-6153?

Upgrade org.apache.httpcomponents:httpclient to 4.2.3 or later.

Is CVE-2012-6153 being exploited?

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

Sources

Also known as CLSA-2026-1790009343, DEBIAN-CVE-2012-6153, GHSA-2x83-r56g-cv47, MGASA-2014-0347, RHSA-2014:1098.

Is CVE-2012-6153 in your software?

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

Check your SBOMs for free