MODERATE

CVE-2012-5783

Improper Certificate Validation in Apache Commons HttpClient

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
commons-httpclient » commons-httpclient
>= 3.0
-

Blast radius

1affected artifacts
29affected versions
39,974dependent artifacts (est.)
3,135,390dependent versions

64% of the dependent artifacts (25,923) still pull an affected version in their latest release.

DepthDependent versions
Direct
128,570
2 hops
1,006,076
3 hops
826,192
4 hops
611,927
5 hops
330,102
6 hops
232,523

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.