cve.bz

CVE-2012-6153 apache commons-httpclient: Improper Input Validation

no score yetEPSS 5.8%Fix available

apache commons-httpclient: no CVSS score yet. EPSS 5.8% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.httpcomponents:httpclient 4.2.3.

On this page
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.
EPSS
5.8% (unchanged from 5.8% a week ago; 5.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2012-6153 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2012-6153?via=ask-ai-copy and https://cve.bz/cve/CVE-2012-6153?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2012-6153 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:commons-httpclientfrom 4.0 through 4.2.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2x83-r56g-cv47Mavenorg.apache.httpcomponents:httpclient<4.2.34.2.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian6.0commons-httpclient3.1-9+deb6u1DLA-222-1
Debian12, 13, 14commons-httpclient3.1-10.2DEBIAN-CVE-2012-6153
Ubuntu14.04:LTScommons-httpclient3.1-10.2ubuntu0.14.04.1USN-2769-1
Red Hatdeveloper_toolset:2.1::el6devtoolset-2-httpcomponents-client, devtoolset-2-httpcomponents-client-javadoc0:4.2.1-6.el6RHSA-2014:1098
Red Hatjboss_enterprise_application_platform:5::el4apache-cxf0:2.2.12-14.patch_09.ep5.el4RHSA-2014:1834
Red Hatjboss_enterprise_application_platform:5::el4jakarta-commons-httpclient1:3.1-4_patch_02.ep5.el4RHSA-2014:1321
Red Hatjboss_enterprise_application_platform:5::el4jboss-seam2, jboss-seam2-docs, jboss-seam2-runtime and 1 more0:2.2.6.EAP5-22_patch_01.ep5.el4RHSA-2014:1321
Red Hatjboss_enterprise_application_platform:5::el5apache-cxf0:2.2.12-14.patch_09.ep5.el5RHSA-2014:1834
Red Hatjboss_enterprise_application_platform:5::el5jakarta-commons-httpclient1:3.1-4_patch_02.ep5.el5RHSA-2014:1321
Red Hatjboss_enterprise_application_platform:5::el5jboss-seam2, jboss-seam2-docs, jboss-seam2-runtime and 1 more0:2.2.6.EAP5-22_patch_01.ep5.el5RHSA-2014:1321
Red Hatjboss_enterprise_application_platform:5::el6apache-cxf0:2.2.12-14.patch_09.el6RHSA-2014:1834
Red Hatjboss_enterprise_application_platform:5::el6jakarta-commons-httpclient1:3.1-4_patch_02.el6_5RHSA-2014:1321
Red Hatjboss_enterprise_application_platform:5::el6jboss-seam2, jboss-seam2-docs, jboss-seam2-runtime and 1 more0:2.2.6.EAP5-22_patch_01.el6RHSA-2014:1321
Red Hatjboss_enterprise_application_platform:6::el5apache-cxf0:2.7.12-1.SP1_redhat_5.1.ep6.el5RHSA-2014:2019
Red Hatjboss_enterprise_application_platform:6::el5httpcomponents-eap6, httpcomponents-project-eap60:6-12.redhat_2.1.ep6.el5RHSA-2014:1162
17 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Additional information can be found in the Red Hat Knowledgebase article: https://access.redhat.com/solutions/1165533

This issue affects the versions of HttpComponents Client and ModeShape Client as shipped with Red Hat JBoss Data Virtualization 6. However, this flaw is not known to be exploitable under any supported scenario in Red Hat JBoss Data Virtualization 6. A future update may address this issue.

This issue did not affect the jakarta-commons-httpclient packages as shipped with Red Hat Enterprise Linux 5, 6, and 7, and httpcomponents-client packages as shipped with Red Hat Enterprise Linux 7.

Red Hat JBoss Enterprise Application Platform 4, Red Hat JBoss SOA Platform 4, and Red Hat JBoss Web Server 1 are now in Phase 3, Extended Life Support, of their respective life cycles. This issue has been rated as having Important security impact and is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat JBoss Middleware and Red Hat JBoss Operations Network Product Update and Support Policy: https://access.redhat.com/support/policy/updates/jboss_notes/

Fuse ESB 4, Fuse Message Broker 5.2, 5.3, 5.4 and Fuse Services Framework 2.3, 2.4 are now in a reduced support phase receiving only Critical impact security fixes. This issue has been rated as having Important security impact and is not currently planned to be addressed in future updates. For additional information, refer to the Fuse Product Life Cycle: https://access.redhat.com/support/policy/updates/fusesource/

ProductPackageStateAdvisory
JBEWP 5 for RHEL 5jakarta-commons-httpclient-1:3.1-4_patch_02.ep5.el5Fixed 2014-09-29RHSA-2014:1320
JBEWP 5 for RHEL 5jboss-seam2-0:2.2.6.EAP5-22_patch_01.ep5.el5Fixed 2014-09-29RHSA-2014:1320
JBEWP 5 for RHEL 5apache-cxf-0:2.2.12-14.patch_09.ep5.el5Fixed 2014-11-10RHSA-2014:1833
JBEWP 5 for RHEL 6jakarta-commons-httpclient-1:3.1-4_patch_02.el6_5Fixed 2014-09-29RHSA-2014:1320
JBEWP 5 for RHEL 6jboss-seam2-0:2.2.6.EAP5-22_patch_01.el6Fixed 2014-09-29RHSA-2014:1320
JBEWP 5 for RHEL 6apache-cxf-0:2.2.12-14.patch_09.el6Fixed 2014-11-10RHSA-2014:1833
Red Hat Developer Toolset 2.1 for RHEL 6devtoolset-2-httpcomponents-client-0:4.2.1-6.el6Fixed 2014-08-26RHSA-2014:1098
Red Hat JBoss BPMS 6.0jakarta-commons-httpclientFixed 2014-11-24RHSA-2014:1892
Red Hat JBoss BPMS 6.0httpclientFixed 2015-02-17RHSA-2015:0234
Red Hat JBoss BPMS 6.0cxfFixed 2015-04-16RHSA-2015:0851
OpenShift Enterprise 1jakarta-commons-httpclientWill not fix
OpenShift Enterprise 1wagon-httpNot affected
Red Hat Enterprise Linux 5jakarta-commons-httpclientNot affected
Red Hat Enterprise Linux 6jakarta-commons-httpclientNot affected
Red Hat Enterprise Linux 7httpcomponents-clientNot affected
Red Hat Enterprise Linux 7jakarta-commons-httpclientNot affected
Red Hat Enterprise Virtualization 3redhat-support-plugin-rhevAffected
Red Hat Enterprise Virtualization 3rhevm-dependenciesAffected
Red Hat JBoss BRMS 5cxfAffected
Red Hat JBoss BRMS 5httpclientWill not fix
66 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2012-6153.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON