CVE-2012-6153: SSL hostname-verification bypass in Apache HttpClient
- Vendor
- Apache Software Foundation
CVE-2012-6153 is an SSL/TLS hostname-verification vulnerability in Apache Commons HttpClient before version 4.2.3. The AbstractVerifier implementation incorrectly extracts and validates certificate subject information when matching a server hostname against X.509 Common Name (CN) or subjectAltName values. A man-in-the-middle attacker can impersonate an SSL server using a specially crafted certificate whose subject places a common-name value in a field other than the CN field. The vulnerability results from an incomplete fix for CVE-2012-5783. Its own remediation was subsequently found incomplete, leading to CVE-2014-3577. Applications incorporating the affected HttpClient implementation, including certain Apache CXF deployments, can inherit the flaw.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation bypasses SSL server hostname authentication and allows an attacker positioned between the client and server to impersonate the intended server. This can compromise the confidentiality and integrity of communications, including interception and tampering.
Mitigation
If you can’t patch tonight, do this now.
Until patched, avoid untrusted network paths and use network-level protections such as VPNs and segmentation to reduce opportunities for interception between affected clients and servers. These measures reduce man-in-the-middle exposure but do not correct certificate hostname validation.
Remediation
Patch, then assume compromise.
Install a maintained HttpClient release or vendor package that addresses both CVE-2012-6153 and the subsequent incomplete-fix vulnerability CVE-2014-3577; do not rely solely on the original 4.2.3 correction. For Amazon Linux 1, apply the jakarta-commons-httpclient update associated with ALAS-2014-410. For affected Red Hat JBoss deployments, apply the product-specific security update and restart the JBoss server where required. For HCL Portal, apply the relevant WebSphere Application Server and Portal fixes; the migration recommendation for custom code is Apache HttpClient 4.3.6. Affected Jenkins core installations should upgrade to 2.73.2 or later in the 2.73.x line, or 2.84 or later for installations in the 2.74–2.83 range. Jenkins Swarm clients should upgrade to version 3.5 or later.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2012-6153 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2012-6153 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2012-6153?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2012-6153.
- Is there a patch for CVE-2012-6153?
- Install a maintained HttpClient release or vendor package that addresses both CVE-2012-6153 and the subsequent incomplete-fix vulnerability CVE-2014-3577; do not rely solely on the original 4.2.3 correction. For Amazon Linux 1, apply the jakarta-commons-httpclient update associated with ALAS-2014-410.
- What products are affected by CVE-2012-6153?
- Apache Software Foundation Commons-Httpclient.
- How severe is CVE-2012-6153?
- CVE-2012-6153 has a CVSS v2 score of 4.3 (Medium) and an EPSS score of 5.8% (93rd percentile) as of Oct 16, 2026.
Recent activity
73 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.