GHSA-cfh5-3ghh-wfjx

Suggest an improvement
Source
https://github.com/advisories/GHSA-cfh5-3ghh-wfjx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/10/GHSA-cfh5-3ghh-wfjx/GHSA-cfh5-3ghh-wfjx.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-cfh5-3ghh-wfjx
Aliases
Published
2018-10-17T00:05:06Z
Modified
2024-04-12T22:16:00.435748Z
Summary
Improper Verification of Cryptographic Signature in org.apache.httpcomponents:httpclient
Details

org.apache.http.conn.ssl.AbstractVerifier in Apache HttpComponents HttpClient before 4.3.5 and HttpAsyncClient before 4.0.2 does not properly 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 a "CN=" string in a field in the distinguished name (DN) of a certificate, as demonstrated by the "foo,CN=www.apache.org" string in the O field.

References

Affected packages

Maven / org.apache.httpcomponents:httpclient

Package

Name
org.apache.httpcomponents:httpclient
View open source insights on deps.dev
Purl
pkg:maven/org.apache.httpcomponents/httpclient

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.3.5

Affected versions

4.*

4.0-alpha1
4.0-alpha2
4.0-alpha3
4.0-alpha4
4.0-beta1
4.0-beta2
4.0
4.0.1
4.0.2
4.0.3
4.1-alpha1
4.1-alpha2
4.1-beta1
4.1
4.1.1
4.1.2
4.1.3
4.2-alpha1
4.2-beta1
4.2
4.2.1
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.3-alpha1
4.3-beta1
4.3-beta2
4.3
4.3.1
4.3.2
4.3.3
4.3.4