Skip to content

Improper Certificate Validation in Apache Commons HttpClient

Moderate severity GitHub Reviewed Published May 13, 2022 to the GitHub Advisory Database • Updated Nov 5, 2024

Package

maven commons-httpclient:commons-httpclient (Maven)

Affected versions

>= 3.0, < 4.0

Patched versions

None

Description

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

Published by the National Vulnerability Database Nov 4, 2012
Published to the GitHub Advisory Database May 13, 2022
Reviewed Jul 13, 2022
Last updated Nov 5, 2024

Severity

Moderate

EPSS score

0.150%
(52nd percentile)

Weaknesses

CVE ID

CVE-2012-5783

GHSA ID

GHSA-3832-9276-x7gf

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.