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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.squareup.okhttp3 » okhttp | < 4.9.2 | 4.9.2 |
Blast radius
72% of the dependent artifacts (26,232) still pull an affected version in their latest release.
| Depth | Dependent 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
- com.squareup.retrofit2 » retrofit7,272 usages
- com.squareup.okhttp3 » logging-interceptor5,859 usages
- com.squareup.retrofit2 » converter-gson4,839 usages
- org.apache.hadoop » hadoop-common3,482 usages
- net.alchim31.maven » scala-maven-plugin3,328 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.seleniumhq.selenium » selenium-java2,089 usages
- com.squareup.okhttp3 » mockwebserver1,987 usages
- com.typesafe.play » play-test1,902 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.apache.kafka » kafka1,450 usages
- com.aliyun » tea1,396 usages
- org.apache.hadoop » hadoop-mapreduce-client-core1,366 usages
- com.squareup.retrofit2 » adapter-rxjava21,308 usages
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
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-0341
- Webhttps://github.com/square/okhttp/issues/6724
- Webhttps://github.com/square/okhttp/pull/6741
- Webhttps://github.com/square/okhttp/commit/f574ea2f5259d9040f264ddeb582fb1ce563f10c
- Packagehttps://github.com/square/okhttp
- Webhttps://source.android.com/security/bulletin/2021-02-01
