MODERATE 5.9
CVE-2016-2402
Improper Certificate Validation in OkHttp
Description
OkHttp before 2.7.4 and 3.x before 3.1.2 allows man-in-the-middle attackers to bypass certificate pinning by sending a certificate chain with a certificate from a non-pinned trusted CA and the pinned certificate.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.squareup.okhttp3 » okhttp | < 2.7.4>= 3.0.0, < 3.1.2 | 2.7.4, 3.1.2 |
Blast radius
1affected artifacts
35affected versions
422dependent artifacts (est.)
3,319dependent versions
47% of the dependent artifacts (201) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1,039 |
| 2 hops | 1,645 |
| 3 hops | 409 |
| 4 hops | 223 |
| 5 hops | 3 |
Most used dependents
- com.squareup.retrofit2 » retrofit7,289 usages
- com.squareup.okhttp3 » logging-interceptor5,865 usages
- com.squareup.retrofit2 » converter-gson4,855 usages
- com.squareup.okhttp3 » mockwebserver2,002 usages
- com.squareup.retrofit2 » converter-jackson834 usages
- com.squareup.retrofit2 » converter-scalars825 usages
- com.squareup.retrofit2 » converter-moshi655 usages
- com.squareup.retrofit2 » adapter-rxjava602 usages
- com.squareup.okhttp3 » okhttp-urlconnection449 usages
- com.github.bumptech.glide » okhttp3-integration389 usages
- io.socket » socket.io-client358 usages
- com.facebook.stetho » stetho-okhttp3129 usages
- com.facebook.fresco » imagepipeline-okhttp3105 usages
- com.squareup.retrofit2 » retrofit-mock90 usages
- com.squareup.retrofit2 » converter-simplexml80 usages
Computed from the dependency graph of build 20261129.2353 (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
| Advisory | NVD CVE-2016-2402 | nvd.nist.gov |
| Package | square/okhttp | github.com |
| Web | pinning-cve-2016-2402 | koz.io |
| Web | thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@<commits.pulsar.apac ... | lists.apache.org |
| Web | 2016/02/11/okhttp-certificate-pinning-vulnerability | publicobject.com |
| Web | lists/oss-security/2016/02/10/8 | openwall.com |
| Web | lists/oss-security/2016/02/18/7 | openwall.com |
