HIGH 7.5

CVE-2021-0341

Square OkHttp can accept the wrong certificate

Description

In verifyHostName of OkHostnameVerifier.java, there is a possible way to accept a certificate for the wrong domain due to improperly used crypto. This could lead to remote information disclosure with no additional execution privileges needed. User interaction is not needed for exploitation. Product: AndroidVersions: Android-8.1 Android-9 Android-10 Android-11 Android ID: A-171980069

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
com.squareup.okhttp3 » okhttp
< 4.9.2
4.9.2

Blast radius

1affected artifacts
148affected versions
36,169dependent artifacts (est.)
1,277,513dependent versions

72% of the dependent artifacts (26,232) still pull an affected version in their latest release.

DepthDependent versions
Direct
176,530
2 hops
417,925
3 hops
388,281
4 hops
162,173
5 hops
91,100
6 hops
41,504

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.

References

Advisorynvd.nist.gov
Packagegithub.com
Webgithub.com
Webgithub.com
Webgithub.com
Websource.android.com