🛡️ CVE-2012-5783 — commons-httpclient
Description
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](https://hc.apache.org/httpclient-legacy/). It has been replaced by the Apache HttpComponents project in its [HttpClient](https://hc.apache.org/httpcomponents-client-5.4.x/) and [HttpCore](https://hc.apache.org/httpcomponents-core-5.3.x/) modules. CVE-2012-5783 has been patched in [v4.0](https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.0/) of the Apache HttpComponents HttpClient module.
Weakness class
CVE-2012-5783 is classified as CWE-295: Improper Certificate Validation. A TLS certificate is accepted without proper verification, so a man-in-the-middle can present their own.
Affected software
CVE-2012-5783 is recorded against 1 package.
- commons-httpclient:commons-httpclient (from 3.0)
Timeline and source
Published on 13 May 2022 and last revised on 4 February 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
nvd.nist.gov (Advisory)
access.redhat.com (Web)
exchange.xforce.ibmcloud.com (Web)
github.com (Package)
issues.apache.org (Web)
lists.opensuse.org (Web)
lists.opensuse.org (Web)
lists.opensuse.org (Web)
lists.opensuse.org (Web)
rhn.redhat.com (Web)
rhn.redhat.com (Web)
rhn.redhat.com (Web)
rhn.redhat.com (Web)
rhn.redhat.com (Web)
rhn.redhat.com (Web)
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| commons-httpclient:commons-httpclient | 3.0 | — |
References
Similar Threats
- Unknown CLSA-2025-1751328213
More CVE 2012 advisories
Browse all of CVE 2012 in the advisory index.
Free Vulnerability Check
Is your site affected by CVE-2012-5783?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2012-5783 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.