MediumGHSA-cfh5-3ghh-wfjxCVE-2014-3577

Improper Verification of Cryptographic Signature in org.apache.httpcomponents:httpclient

Published 17 Oct 2018 · Updated 3 Dec 2024

Is your project on an affected org.apache.httpcomponents:httpclient?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<4.3.5
Fixed in
4.3.5
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.httpcomponents:httpclient -DdepVersion=4.3.5 -DforceVersion=true

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.

Is GHSA-cfh5-3ghh-wfjx 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
  • HighCVE-2012-6153Improper certificate validation in org.apache.httpcomponents:httpclient · 17 Oct 2018
org.apache.httpcomponents:httpclient security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.