CVE-2012-6153
Improper certificate validation in org.apache.httpcomponents:httpclient
Also known as GHSA-2x83-r56g-cv47
Mitigation
- Upgrade org.apache.httpcomponents:httpclient to 4.2.3 or later.
Who should check
- Projects that depend on Maven package org.apache.httpcomponents:httpclient (< 4.2.3)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- org.apache.httpcomponents:httpclient < 4.2.3
- Fixed in
- 4.2.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 4.3 (v2.0, NVD)AV:N/AC:M/Au:N/C:N/I:P/A:N
Show all 6 CVSS metrics
- Attack vector: Network
- Attack complexity: Medium
- Authentication: None
- Confidentiality impact: None
- Integrity impact: Partial
- Availability impact: None
- EPSS
- 5.84% chance of exploitation in 30 days (percentile 94, 2026-11-26)
- CWE
- CWE-20
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.apache.httpcomponents:httpclient | < 4.2.3 | 4.2.3 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2012-6153. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2012-6153.md Affected: org.apache.httpcomponents:httpclient < 4.2.3 Fixed in: 4.2.3 Steps: 1. Search this machine and project for org.apache.httpcomponents:httpclient (Maven), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- http://rhn.redhat.com/errata/RHSA-2014-1891.html
- http://rhn.redhat.com/errata/RHSA-2015-0765.html
- 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
- http://rhn.redhat.com/errata/RHSA-2014-1892.html
- http://rhn.redhat.com/errata/RHSA-2015-0851.html
- http://rhn.redhat.com/errata/RHSA-2014-1835.html
- http://www.ubuntu.com/usn/USN-2769-1
- http://rhn.redhat.com/errata/RHSA-2014-1836.html
- https://nvd.nist.gov/vuln/detail/CVE-2012-6153
- https://github.com/advisories/GHSA-2x83-r56g-cv47
Patches
FAQ
Is CVE-2012-6153 being exploited?
There is no confirmed exploitation: CVE-2012-6153 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 5.84% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2012-6153?
Medium: CVSS 4.3 (v2.0, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2012-6153?
org.apache.httpcomponents:httpclient < 4.2.3.
Is there a fix for CVE-2012-6153?
Yes. Fixed in 4.2.3. Upgrade org.apache.httpcomponents:httpclient to 4.2.3 or later.
How do I check if I'm affected by CVE-2012-6153?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.