Every CVE Search/ Get API key

CVE-2012-5783

Improper Certificate Validation in Apache Commons HttpClient

5.8 MediumFix available

Apache Commons HttpClient 3.x, as used in Amazon Flexible Payments Service (FPS) merchant Java SDK and other products, does not 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 an arbitrary valid certificate.

Exploit likelihood

9.25%Up 4.0 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 5.8

Apache Commons HttpClient 3.x, as used in Amazon Flexible Payments Service (FPS) merchant Java SDK and other products, does not 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 an arbitrary valid certificate.

Record
CVE-2012-5783
CVSS 2.0
5.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:N
Weakness
CWE-295
Updated
2026-11-02
CVE List No score

Apache Commons HttpClient 3.x, as used in Amazon Flexible Payments Service (FPS) merchant Java SDK and other products, does not 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 an arbitrary valid certificate.

Record
CVE-2012-5783
Updated
2026-11-02
EUVDEUVD-2022-2129 No score

Apache Commons HttpClient 3.x, as used in Amazon Flexible Payments Service (FPS) merchant Java SDK and other products, does not 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 an arbitrary valid certificate.

Record
EUVD-2022-2129
Updated
2026-11-03
GitHub AdvisoriesGHSA-3832-9276-x7gf No score

Improper Certificate Validation in Apache Commons HttpClient

Apache Commons HttpClient 3.x, as used in Amazon Flexible Payments Service (FPS) merchant Java SDK and other products, does not 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 an arbitrary valid certificate.

Note that the Commons HttpClient project is end of life. It has been replaced by the Apache HttpComponents project in its HttpClient and HttpCore modules. CVE-2012-5783 has been patched in v4.0 of the Apache HttpComponents HttpClient module.

Record
GHSA-3832-9276-x7gf
Weakness
CWE-295
Updated
2026-11-02
OSVRHSA-2013:0270 3.7

Red Hat Security Advisory: jakarta-commons-httpclient security update

Record
RHSA-2013:0270
CVSS 3.0
3.7 LowCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Updated
2026-11-02
OSVRHSA-2013:0680 3.7

Red Hat Security Advisory: jakarta-commons-httpclient security update

Record
RHSA-2013:0680
CVSS 3.0
3.7 LowCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Updated
2026-11-02
Show 10 moreShow less
OSVRHSA-2013:0682 3.7

Red Hat Security Advisory: jakarta-commons-httpclient security update

Record
RHSA-2013:0682
CVSS 3.0
3.7 LowCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Updated
2026-11-02
OSVRHSA-2014:0224 3.7

Red Hat Security Advisory: redhat-support-plugin-rhev security update

Record
RHSA-2014:0224
CVSS 3.0
3.7 LowCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Updated
2026-11-02
OSVCLSA-2025-1751328213 No score

TuxCare security update for commons-httpclient:commons-httpclient (1 CVE)

TuxCare rebuilt commons-httpclient:commons-httpclient to address 1 CVE. Fixed in 3.1.tuxcare.1.

Record
CLSA-2025-1751328213
Updated
2026-11-02
OSV No score

Apache Commons HttpClient 3.x, as used in Amazon Flexible Payments Service (FPS) merchant Java SDK and other products, does not 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 an arbitrary valid certificate.

Record
CVE-2012-5783
Updated
2026-11-02
OSVDEBIAN-CVE-2012-5783 No score

Apache Commons HttpClient 3.x, as used in Amazon Flexible Payments Service (FPS) merchant Java SDK and other products, does not 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 an arbitrary valid certificate.

Record
DEBIAN-CVE-2012-5783
Updated
2026-11-02
OSVGHSA-3832-9276-x7gf No score

Improper Certificate Validation in Apache Commons HttpClient

Apache Commons HttpClient 3.x, as used in Amazon Flexible Payments Service (FPS) merchant Java SDK and other products, does not 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 an arbitrary valid certificate.

Note that the Commons HttpClient project is end of life. It has been replaced by the Apache HttpComponents project in its HttpClient and HttpCore modules. CVE-2012-5783 has been patched in v4.0 of the Apache HttpComponents HttpClient module.

Record
GHSA-3832-9276-x7gf
Weakness
CWE-295
Updated
2026-11-02
OSVMGASA-2013-0199 No score

Updated jakarta-commons-httpclient package fixes security vulnerability

The Jakarta Commons HttpClient component did not verify that the server hostname matched the domain name in the subject's Common Name (CN) or subjectAltName field in X.509 certificates. This could allow a man-in-the-middle attacker to spoof an SSL server if they had a certificate that was valid for any domain name (CVE-2012-5783).

Record
MGASA-2013-0199
Updated
2026-11-02
OSVopenSUSE-SU-2024:10381-1 No score

apache-commons-httpclient-3.1-8.5 on GA media

These are all security issues fixed in the apache-commons-httpclient-3.1-8.5 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10381-1
Updated
2026-11-02
OSVUBUNTU-CVE-2012-5783 No score

Apache Commons HttpClient 3.x, as used in Amazon Flexible Payments Service (FPS) merchant Java SDK and other products, does not 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 an arbitrary valid certificate.

Record
UBUNTU-CVE-2012-5783
Updated
2026-11-02
OSVUSN-2769-1 No score

commons-httpclient vulnerabilities

It was discovered that Apache Commons HttpClient did not properly verify the Common Name or subjectAltName fields of X.509 certificates. An attacker could exploit this to perform a machine-in-the-middle attack to view sensitive information or alter encrypted communications. This issue only affected Ubuntu 12.04 LTS. (CVE-2012-5783)

Florian Weimer discovered the fix for CVE-2012-5783 was incomplete for Apache Commons HttpClient. An attacker could exploit this to perform a machine-in-the-middle attack to view sensitive information or alter encrypted communications. This issue only affected Ubuntu 12.04 LTS. (CVE-2012-6153)

Subodh Iyengar and Will Shackleton discovered the fix for CVE-2012-5783 was incomplete for Apache Commons HttpClient. An attacker could exploit this to perform a machine-in-the-middle attack to view sensitive information or alter encrypted communications. (CVE-2014-3577)

It was discovered that Apache Commons HttpClient did not properly handle read timeouts during HTTPS handshakes. A remote attacker could trigger this flaw to cause a denial of service. (CVE-2015-5262)

Record
USN-2769-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
commons-httpclient:commons-httpclient
Maven
3.0 up to 4.0
4.0
commons-httpclient:commons-httpclient
TuxCare:Maven
3.1 up to 3.1.tuxcare.1
3.1.tuxcare.1
commons-httpclient
Debian:12
before 3.1-10.1
3.1-10.1
commons-httpclient
Debian:13
before 3.1-10.1
3.1-10.1
commons-httpclient
Debian:14
before 3.1-10.1
3.1-10.1
commons-httpclient
Debian:6.0
before 3.1-9+deb6u1, plus listed versions
3.1-9
3.1-9+deb6u1
commons-httpclient:commons-httpclient
Maven
3.0 and later, plus listed versions
200204233.0.13.13.1-alpha13.1-beta1
Show 4 moreShow less
3.1-jenkins-13.1-jenkins-23.1-jenkins-33.1-rc1
None known
jakarta-commons-httpclient
Mageia:2
before 3.1-3.1.mga2
3.1-3.1.mga2
jakarta-commons-httpclient
Red Hat:enterprise_linux:5::server
before 1:3.0-7jpp.2
1:3.0-7jpp.2
jakarta-commons-httpclient-debuginfo
Red Hat:enterprise_linux:5::server
before 1:3.0-7jpp.2
1:3.0-7jpp.2
Show 31 moreShow less
Affected packages
PackageAffectedFixed
jakarta-commons-httpclient-demo
Red Hat:enterprise_linux:5::server
before 1:3.0-7jpp.2
1:3.0-7jpp.2
jakarta-commons-httpclient-javadoc
Red Hat:enterprise_linux:5::server
before 1:3.0-7jpp.2
1:3.0-7jpp.2
jakarta-commons-httpclient-manual
Red Hat:enterprise_linux:5::server
before 1:3.0-7jpp.2
1:3.0-7jpp.2
jakarta-commons-httpclient
Red Hat:enterprise_linux:6::client
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient-debuginfo
Red Hat:enterprise_linux:6::client
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient-demo
Red Hat:enterprise_linux:6::client
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient-javadoc
Red Hat:enterprise_linux:6::client
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient-manual
Red Hat:enterprise_linux:6::client
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient
Red Hat:enterprise_linux:6::computenode
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient-debuginfo
Red Hat:enterprise_linux:6::computenode
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient-demo
Red Hat:enterprise_linux:6::computenode
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient-javadoc
Red Hat:enterprise_linux:6::computenode
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient-manual
Red Hat:enterprise_linux:6::computenode
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient
Red Hat:enterprise_linux:6::server
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient-debuginfo
Red Hat:enterprise_linux:6::server
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient-demo
Red Hat:enterprise_linux:6::server
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient-javadoc
Red Hat:enterprise_linux:6::server
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient-manual
Red Hat:enterprise_linux:6::server
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient
Red Hat:enterprise_linux:6::workstation
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient-debuginfo
Red Hat:enterprise_linux:6::workstation
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient-demo
Red Hat:enterprise_linux:6::workstation
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient-javadoc
Red Hat:enterprise_linux:6::workstation
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient-manual
Red Hat:enterprise_linux:6::workstation
before 1:3.1-0.7.el6_3
1:3.1-0.7.el6_3
jakarta-commons-httpclient
Red Hat:jboss_enterprise_application_platform:5::el4
before 1:3.1-2.1_patch_01.ep5.el4
1:3.1-2.1_patch_01.ep5.el4
jakarta-commons-httpclient
Red Hat:jboss_enterprise_application_platform:5::el5
before 1:3.1-2.1_patch_01.ep5.el5
1:3.1-2.1_patch_01.ep5.el5
jakarta-commons-httpclient
Red Hat:jboss_enterprise_application_platform:5::el6
before 1:3.1-2_patch_01.ep5.el6
1:3.1-2_patch_01.ep5.el6
jakarta-commons-httpclient
Red Hat:jboss_enterprise_web_platform:5::el5
before 1:3.1-2.1_patch_01.ep5.el5
1:3.1-2.1_patch_01.ep5.el5
jakarta-commons-httpclient
Red Hat:jboss_enterprise_web_platform:5::el6
before 1:3.1-2_patch_01.ep5.el6
1:3.1-2_patch_01.ep5.el6
redhat-support-plugin-rhev
Red Hat:rhev_manager:3
before 0:3.3.0-14.el6ev
0:3.3.0-14.el6ev
commons-httpclient
Ubuntu:14.04:LTS
before 3.1-10.2ubuntu0.14.04.1, plus listed versions
3.1-10.2
3.1-10.2ubuntu0.14.04.1
apache-commons-httpclient
openSUSE:Tumbleweed
before 3.1-8.5
3.1-8.5

History

History
RecordedChangedSources
affected
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2012-5783 is a medium vulnerability (CVSS 5.8) in Apache Httpclient, published November 4, 2012. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 9.25%, the 95th percentile. Fixed in commons-httpclient:commons-httpclient 4.0.

References

Show 37 moreShow less
MoveEnter Open