CVE-2012-6153
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.
What to do
Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | commons-httpclient | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | httpcomponents-client | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | commons-httpclient | Not affected vulnerable_code_not_present | ||
| Debian 14 | commons-httpclient | Fixed | 3.1-10.2 | DEBIAN-CVE-2012-6153 |
| Debian 13 | commons-httpclient | Fixed | 3.1-10.2 | DEBIAN-CVE-2012-6153 |
| Debian 12 | commons-httpclient | Fixed | 3.1-10.2 | DEBIAN-CVE-2012-6153 |
| Red Hat Enterprise Linux 7 | httpcomponents-client | Not affected | ||
| Red Hat Enterprise Linux 7 | httpcomponents-client-javadoc | Not affected | ||
| Red Hat Enterprise Linux 7 | jakarta-commons-httpclient | Not affected | ||
| Red Hat Enterprise Linux 7 | jakarta-commons-httpclient-demo | Not affected | ||
| Red Hat Enterprise Linux 7 | jakarta-commons-httpclient-javadoc | Not affected | ||
| Red Hat Enterprise Linux 7 | jakarta-commons-httpclient-manual | Not affected | ||
| Red Hat Enterprise Linux 6 | jakarta-commons-httpclient | Not affected | ||
| Red Hat Enterprise Linux 6 | jakarta-commons-httpclient-demo | Not affected | ||
| Red Hat Enterprise Linux 6 | jakarta-commons-httpclient-javadoc | Not affected | ||
| Red Hat Enterprise Linux 6 | jakarta-commons-httpclient-manual | Not affected | ||
| Red Hat Enterprise Linux 5 | jakarta-commons-httpclient | Not affected | ||
| Maven library | org.apache.httpcomponents:httpclient | Fixed | 4.2.3 | GHSA-2x83-r56g-cv47 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://rhn.redhat.com/errata/RHSA-2014-1891.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2015-0765.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2015-0675.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2014-1098.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2015-0720.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2015-1888.html (vendor-advisory)
References
- http://rhn.redhat.com/errata/RHSA-2014-1891.html
- http://rhn.redhat.com/errata/RHSA-2015-0765.html
- https://access.redhat.com/solutions/1165533
- http://rhn.redhat.com/errata/RHSA-2015-0675.html
- http://rhn.redhat.com/errata/RHSA-2014-1098.html
- http://rhn.redhat.com/errata/RHSA-2015-0720.html
- http://rhn.redhat.com/errata/RHSA-2015-1888.html
- http://rhn.redhat.com/errata/RHSA-2014-1833.html
- http://rhn.redhat.com/errata/RHSA-2015-0850.html
- http://rhn.redhat.com/errata/RHSA-2015-0158.html
- http://rhn.redhat.com/errata/RHSA-2014-1834.html
- http://svn.apache.org/viewvc?view=revision&revision=1411705
- http://rhn.redhat.com/errata/RHSA-2015-0125.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1129916
- http://rhn.redhat.com/errata/RHSA-2014-1892.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.