Cloudanix VulnDB

CVE-2012-6153

None

CVSS

—

EPSS

5.8%

Published

Sep 4, 2014

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A library that applications use to talk securely over the web does not correctly check website certificates, letting attackers pretend to be trusted sites and read or change the data.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Moderate
Impact
Data Tampering
Component
Library
Class
Improper Input Validation
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The flaw in AbstractVerifier.java skips proper matching of the server hostname against the CN or subjectAltName in the X.509 certificate, accepting certificates that place the name in other fields and enabling MITM spoofing of SSL endpoints.

Why it matters to the business

Applications using the library can have encrypted traffic intercepted or altered without detection, exposing sensitive data in transit and undermining trust in remote services.

How an attack unfolds

An attacker places themselves on the network path, supplies a certificate containing the target hostname outside the CN field, and the client library accepts the connection, allowing the attacker to decrypt, inspect, and modify the session.

How to fix it

Upgrade Apache Commons HttpClient to version 4.2.3 or later; replace any remaining older instances and rebuild dependent applications.

How to confirm the fix worked

Inventory all usages of commons-httpclient, confirm the deployed JAR version is at least 4.2.3, and run targeted SSL connection tests that present mismatched certificates to verify rejection.

Typical attack path

  1. Position as network MITM
  2. Present a crafted certificate with hostname in non-CN field
  3. Trigger client connection to the spoofed endpoint
  4. Library performs incomplete hostname check and accepts the certificate
  5. Decrypt and manipulate traffic

How to detect it

Review application logs for SSL handshake events, certificate subject fields, and any custom hostname verification code; correlate with network traffic to unexpected endpoints.

What your security team should do

  • Prioritize upgrade of commons-httpclient to 4.2.3+ across all affected applications
  • Scan codebases and dependency trees for any remaining vulnerable versions
  • Add certificate pinning or hostname verification wrappers where upgrades are delayed

The record

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

Ecosystem Package Introduced Fixed
Maven org.apache.httpcomponents:httpclient 0 4.2.3
Debian:11 commons-httpclient 0 3.1-10.2
Debian:12 commons-httpclient 0 3.1-10.2
Debian:13 commons-httpclient 0 3.1-10.2
Debian:6.0 commons-httpclient 0 3.1-9+deb6u1
Mageia:3 httpcomponents-client 0 4.2.5-1.mga3
Mageia:3 jakarta-commons-httpclient 0 3.1-10.1.mga3
Mageia:4 httpcomponents-client 0 4.3.5-1.mga4
Mageia:4 jakarta-commons-httpclient 0 3.1-11.1.mga4
Red Hat:developer_toolset:2.1::el6 devtoolset-2-httpcomponents-client 0 0:4.2.1-6.el6
Red Hat:developer_toolset:2.1::el6 devtoolset-2-httpcomponents-client-javadoc 0 0:4.2.1-6.el6
Red Hat:jboss_enterprise_application_platform:5::el4 apache-cxf 0 0:2.2.12-14.patch_09.ep5.el4
Red Hat:jboss_enterprise_application_platform:5::el4 jakarta-commons-httpclient 0 1:3.1-4_patch_02.ep5.el4
Red Hat:jboss_enterprise_application_platform:5::el4 jboss-seam2 0 0:2.2.6.EAP5-22_patch_01.ep5.el4
Red Hat:jboss_enterprise_application_platform:5::el4 jboss-seam2-docs 0 0:2.2.6.EAP5-22_patch_01.ep5.el4
Red Hat:jboss_enterprise_application_platform:5::el4 jboss-seam2-examples 0 0:2.2.6.EAP5-22_patch_01.ep5.el4
Red Hat:jboss_enterprise_application_platform:5::el4 jboss-seam2-runtime 0 0:2.2.6.EAP5-22_patch_01.ep5.el4
Red Hat:jboss_enterprise_application_platform:5::el5 apache-cxf 0 0:2.2.12-14.patch_09.ep5.el5
Red Hat:jboss_enterprise_application_platform:5::el5 jakarta-commons-httpclient 0 1:3.1-4_patch_02.ep5.el5
Red Hat:jboss_enterprise_application_platform:5::el5 jboss-seam2 0 0:2.2.6.EAP5-22_patch_01.ep5.el5
Red Hat:jboss_enterprise_application_platform:5::el5 jboss-seam2-docs 0 0:2.2.6.EAP5-22_patch_01.ep5.el5
Red Hat:jboss_enterprise_application_platform:5::el5 jboss-seam2-examples 0 0:2.2.6.EAP5-22_patch_01.ep5.el5
Red Hat:jboss_enterprise_application_platform:5::el5 jboss-seam2-runtime 0 0:2.2.6.EAP5-22_patch_01.ep5.el5
Red Hat:jboss_enterprise_application_platform:5::el6 apache-cxf 0 0:2.2.12-14.patch_09.el6
Red Hat:jboss_enterprise_application_platform:5::el6 jakarta-commons-httpclient 0 1:3.1-4_patch_02.el6_5
Red Hat:jboss_enterprise_application_platform:5::el6 jboss-seam2 0 0:2.2.6.EAP5-22_patch_01.el6
Red Hat:jboss_enterprise_application_platform:5::el6 jboss-seam2-docs 0 0:2.2.6.EAP5-22_patch_01.el6
Red Hat:jboss_enterprise_application_platform:5::el6 jboss-seam2-examples 0 0:2.2.6.EAP5-22_patch_01.el6
Red Hat:jboss_enterprise_application_platform:5::el6 jboss-seam2-runtime 0 0:2.2.6.EAP5-22_patch_01.el6
Red Hat:jboss_enterprise_application_platform:6::el5 apache-cxf 0 0:2.7.12-1.SP1_redhat_5.1.ep6.el5
Red Hat:jboss_enterprise_application_platform:6::el5 httpclient-eap6 0 0:4.2.1-12.redhat_2.1.ep6.el5
Red Hat:jboss_enterprise_application_platform:6::el5 httpcomponents-client-eap6 0 0:4.2.1-12.redhat_2.1.ep6.el5
Red Hat:jboss_enterprise_application_platform:6::el5 httpcomponents-core-eap6 0 0:4.2.1-12.redhat_2.1.ep6.el5
Red Hat:jboss_enterprise_application_platform:6::el5 httpcomponents-eap6 0 0:6-12.redhat_2.1.ep6.el5
Red Hat:jboss_enterprise_application_platform:6::el5 httpcomponents-project-eap6 0 0:6-12.redhat_2.1.ep6.el5
Red Hat:jboss_enterprise_application_platform:6::el5 httpcore-eap6 0 0:4.2.1-12.redhat_2.1.ep6.el5
Red Hat:jboss_enterprise_application_platform:6::el5 httpmime-eap6 0 0:4.2.1-12.redhat_2.1.ep6.el5
Red Hat:jboss_enterprise_application_platform:6::el5 wss4j 0 0:1.6.16-2.redhat_3.1.ep6.el5
Red Hat:jboss_enterprise_application_platform:6::el6 apache-cxf 0 0:2.7.12-1.SP1_redhat_5.1.ep6.el6
Red Hat:jboss_enterprise_application_platform:6::el6 httpclient-eap6 0 0:4.2.1-12.redhat_2.1.ep6.el6
Red Hat:jboss_enterprise_application_platform:6::el6 httpcomponents-client-eap6 0 0:4.2.1-12.redhat_2.1.ep6.el6
Red Hat:jboss_enterprise_application_platform:6::el6 httpcomponents-core-eap6 0 0:4.2.1-12.redhat_2.1.ep6.el6
Red Hat:jboss_enterprise_application_platform:6::el6 httpcomponents-eap6 0 0:6-12.redhat_2.1.ep6.el6
Red Hat:jboss_enterprise_application_platform:6::el6 httpcomponents-project-eap6 0 0:6-12.redhat_2.1.ep6.el6
Red Hat:jboss_enterprise_application_platform:6::el6 httpcore-eap6 0 0:4.2.1-12.redhat_2.1.ep6.el6
Red Hat:jboss_enterprise_application_platform:6::el6 httpmime-eap6 0 0:4.2.1-12.redhat_2.1.ep6.el6
Red Hat:jboss_enterprise_application_platform:6::el6 wss4j 0 0:1.6.16-2.redhat_3.1.ep6.el6
Red Hat:jboss_enterprise_application_platform:6::el7 apache-cxf 0 0:2.7.12-1.SP1_redhat_5.1.ep6.el7
Red Hat:jboss_enterprise_application_platform:6::el7 httpclient-eap6 0 0:4.2.1-12.redhat_2.1.ep6.el7
Red Hat:jboss_enterprise_application_platform:6::el7 httpcomponents-client-eap6 0 0:4.2.1-12.redhat_2.1.ep6.el7
Red Hat:jboss_enterprise_application_platform:6::el7 httpcomponents-core-eap6 0 0:4.2.1-12.redhat_2.1.ep6.el7
Red Hat:jboss_enterprise_application_platform:6::el7 httpcomponents-eap6 0 0:6-12.redhat_2.1.ep6.el7
Red Hat:jboss_enterprise_application_platform:6::el7 httpcomponents-project-eap6 0 0:6-12.redhat_2.1.ep6.el7
Red Hat:jboss_enterprise_application_platform:6::el7 httpcore-eap6 0 0:4.2.1-12.redhat_2.1.ep6.el7
Red Hat:jboss_enterprise_application_platform:6::el7 httpmime-eap6 0 0:4.2.1-12.redhat_2.1.ep6.el7
Red Hat:jboss_enterprise_application_platform:6::el7 wss4j 0 0:1.6.16-2.redhat_3.1.ep6.el7
Red Hat:jboss_enterprise_web_platform:5::el5 apache-cxf 0 0:2.2.12-14.patch_09.ep5.el5
Red Hat:jboss_enterprise_web_platform:5::el5 jakarta-commons-httpclient 0 1:3.1-4_patch_02.ep5.el5
Red Hat:jboss_enterprise_web_platform:5::el5 jboss-seam2 0 0:2.2.6.EAP5-22_patch_01.ep5.el5
Red Hat:jboss_enterprise_web_platform:5::el5 jboss-seam2-docs 0 0:2.2.6.EAP5-22_patch_01.ep5.el5
Red Hat:jboss_enterprise_web_platform:5::el5 jboss-seam2-examples 0 0:2.2.6.EAP5-22_patch_01.ep5.el5
Red Hat:jboss_enterprise_web_platform:5::el5 jboss-seam2-runtime 0 0:2.2.6.EAP5-22_patch_01.ep5.el5
Red Hat:jboss_enterprise_web_platform:5::el6 apache-cxf 0 0:2.2.12-14.patch_09.el6
Red Hat:jboss_enterprise_web_platform:5::el6 jakarta-commons-httpclient 0 1:3.1-4_patch_02.el6_5
Red Hat:jboss_enterprise_web_platform:5::el6 jboss-seam2 0 0:2.2.6.EAP5-22_patch_01.el6
Red Hat:jboss_enterprise_web_platform:5::el6 jboss-seam2-docs 0 0:2.2.6.EAP5-22_patch_01.el6
Red Hat:jboss_enterprise_web_platform:5::el6 jboss-seam2-examples 0 0:2.2.6.EAP5-22_patch_01.el6
Red Hat:jboss_enterprise_web_platform:5::el6 jboss-seam2-runtime 0 0:2.2.6.EAP5-22_patch_01.el6
Red Hat:rhev_manager:3 rhevm 0 0:3.5.0-0.29.el6ev
Red Hat:rhev_manager:3 rhevm-backend 0 0:3.5.0-0.29.el6ev
Red Hat:rhev_manager:3 rhevm-dbscripts 0 0:3.5.0-0.29.el6ev
Red Hat:rhev_manager:3 rhevm-extensions-api-impl 0 0:3.5.0-0.29.el6ev
Red Hat:rhev_manager:3 rhevm-extensions-api-impl-javadoc 0 0:3.5.0-0.29.el6ev
Red Hat:rhev_manager:3 rhevm-lib 0 0:3.5.0-0.29.el6ev
Red Hat:rhev_manager:3 rhevm-restapi 0 0:3.5.0-0.29.el6ev
Red Hat:rhev_manager:3 rhevm-setup 0 0:3.5.0-0.29.el6ev
Red Hat:rhev_manager:3 rhevm-setup-base 0 0:3.5.0-0.29.el6ev
Red Hat:rhev_manager:3 rhevm-setup-plugin-allinone 0 0:3.5.0-0.29.el6ev
Red Hat:rhev_manager:3 rhevm-setup-plugin-ovirt-engine 0 0:3.5.0-0.29.el6ev
Red Hat:rhev_manager:3 rhevm-setup-plugin-ovirt-engine-common 0 0:3.5.0-0.29.el6ev
Red Hat:rhev_manager:3 rhevm-setup-plugin-websocket-proxy 0 0:3.5.0-0.29.el6ev
Red Hat:rhev_manager:3 rhevm-tools 0 0:3.5.0-0.29.el6ev
Red Hat:rhev_manager:3 rhevm-userportal 0 0:3.5.0-0.29.el6ev
Red Hat:rhev_manager:3 rhevm-webadmin-portal 0 0:3.5.0-0.29.el6ev
Red Hat:rhev_manager:3 rhevm-websocket-proxy 0 0:3.5.0-0.29.el6ev
Ubuntu:14.04:LTS commons-httpclient 0 3.1-10.2
Ubuntu:14.04:LTS commons-httpclient 0 3.1-10.2ubuntu0.14.04.1
Ubuntu:14.04:LTS httpcomponents-client 0 4.3.3-1
Ubuntu:16.04:LTS httpcomponents-client 0 4.4.1-1

Related vulnerabilities