Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. commons-httpclient/commons-httpclient
  4. ›
  5. CVE-2012-5783

CVE-2012-5783: Improper Certificate Validation in Apache Commons HttpClient

May 13, 2022 (updated November 5, 2024)

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.

References

  • access.redhat.com/errata/RHSA-2017:0868
  • exchange.xforce.ibmcloud.com/vulnerabilities/79984
  • github.com/advisories/GHSA-3832-9276-x7gf
  • github.com/apache/httpcomponents-client
  • issues.apache.org/jira/browse/HTTPCLIENT-1265
  • nvd.nist.gov/vuln/detail/CVE-2012-5783

Code Behaviors & Features

Detect and mitigate CVE-2012-5783 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.0

Solution

Unfortunately, there is no solution available yet.

Impact 5.8 MEDIUM

AV:N/AC:M/Au:N/C:P/I:P/A:N

Learn more about CVSS

Weakness

  • CWE-295: Improper Certificate Validation

Source file

maven/commons-httpclient/commons-httpclient/CVE-2012-5783.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:46 +0000.