Improper certificate validation in org.apache.httpcomponents:httpclient
Published 17 Oct 2018 · Updated 2 Dec 2024
Is your project on an affected org.apache.httpcomponents:httpclient?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <4.2.3
- Fixed in
- 4.2.3
mvn versions:use-dep-version -Dincludes=org.apache.httpcomponents:httpclient -DdepVersion=4.2.3 -DforceVersion=trueDetails
http/conn/ssl/AbstractVerifier.java in Apache Commons HttpClient before 4.2.3 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 certificate with a subject that specifies a common name in a field that is not the CN field. NOTE: this issue exists because of an incomplete fix for CVE-2012-5783.
Is GHSA-2x83-r56g-cv47 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.httpcomponents:httpclient, and gives you the command that fixes it.
More advisories for org.apache.httpcomponents:httpclient
- MediumCVE-2011-1498Exposure of Sensitive Information to an Unauthorized Actor in Apache HttpClient · 17 May 2022
- CriticalCVE-2013-4366Hostname verification in Apache HttpClient 4.3 was disabled by default · 13 May 2022
- MediumCVE-2020-13956Cross-site scripting in Apache HttpClient · 3 Jun 2021
- MediumCVE-2015-5262Denial of service vulnerability in org.apache.httpcomponents:httpclient · 17 Oct 2018
- MediumCVE-2014-3577Improper Verification of Cryptographic Signature in org.apache.httpcomponents:httpclient · 17 Oct 2018
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2012-6153
- Linkgithub.com/apache/httpcomponents-client/commit/6e14fc146a66e0f3eb362f45f95d1a58ee18886a
- Linkgithub.com/apache/httpcomponents-client/commit/b930227f907af1198765fc47beabbddae344ca7b
- Linkaccess.redhat.com/solutions/1165533
- Linkbugzilla.redhat.com/show_bug.cgi?id=1129916
- Advisorygithub.com/advisories/GHSA-2x83-r56g-cv47
- Linkh20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05103564
- Linkrhn.redhat.com/errata/RHSA-2014-1098.html
- Linkrhn.redhat.com/errata/RHSA-2014-1833.html
- Linkrhn.redhat.com/errata/RHSA-2014-1834.html
- Linkrhn.redhat.com/errata/RHSA-2014-1835.html
- Linkrhn.redhat.com/errata/RHSA-2014-1836.html
- Linkrhn.redhat.com/errata/RHSA-2014-1891.html
- Linkrhn.redhat.com/errata/RHSA-2014-1892.html
- Linkrhn.redhat.com/errata/RHSA-2015-0125.html
- Linkrhn.redhat.com/errata/RHSA-2015-0158.html
- Linkrhn.redhat.com/errata/RHSA-2015-0675.html
- Linkrhn.redhat.com/errata/RHSA-2015-0720.html
- Linkrhn.redhat.com/errata/RHSA-2015-0765.html
- Linkrhn.redhat.com/errata/RHSA-2015-0850.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.