CVE-2012-6153
EPSS 1.2%Improper certificate validation in org.apache.httpcomponents:httpclient
Published: 10/17/2018Modified: 4/28/2026
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.
Affected packages (2)
- Debian/commons-httpclientfrom 0, < 3.1-10.2
- Maven/org.apache.httpcomponents:httpclientfrom 0, < 4.2.3
References (25)
- ADVISORYhttps://github.com/advisories/GHSA-2x83-r56g-cv47
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2012-6153
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2012-6153
- WEBhttp://rhn.redhat.com/errata/RHSA-2014-1098.html
- WEBhttp://rhn.redhat.com/errata/RHSA-2014-1833.html
- WEBhttp://rhn.redhat.com/errata/RHSA-2014-1834.html
- WEBhttp://rhn.redhat.com/errata/RHSA-2014-1835.html
- WEBhttp://rhn.redhat.com/errata/RHSA-2014-1836.html
- WEBhttp://rhn.redhat.com/errata/RHSA-2014-1891.html
- WEBhttp://rhn.redhat.com/errata/RHSA-2014-1892.html
- WEBhttp://rhn.redhat.com/errata/RHSA-2015-0125.html
- WEBhttp://rhn.redhat.com/errata/RHSA-2015-0158.html
- WEBhttp://rhn.redhat.com/errata/RHSA-2015-0675.html
- WEBhttp://rhn.redhat.com/errata/RHSA-2015-0720.html
- WEBhttp://rhn.redhat.com/errata/RHSA-2015-0765.html
- WEBhttp://rhn.redhat.com/errata/RHSA-2015-0850.html
- WEBhttp://rhn.redhat.com/errata/RHSA-2015-0851.html
- WEBhttp://rhn.redhat.com/errata/RHSA-2015-1888.html
- WEBhttps://access.redhat.com/solutions/1165533
- WEBhttps://bugzilla.redhat.com/show_bug.cgi?id=1129916
- WEBhttps://github.com/apache/httpcomponents-client/commit/6e14fc146a66e0f3eb362f45f95d1a58ee18886a
- WEBhttps://github.com/apache/httpcomponents-client/commit/b930227f907af1198765fc47beabbddae344ca7b
- WEBhttps://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05103564
- WEBhttp://svn.apache.org/viewvc?view=revision&revision=1411705
- WEBhttp://www.ubuntu.com/usn/USN-2769-1