medium5.9
CVE-2016-2402
Improper Certificate Validation in OkHttp
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| maven | com.squareup.okhttp3:okhttp | <= 2.7.3 | 2.7.4 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Squareup | Okhttp | through 2.7.3 |
| Squareup | Okhttp3 | Versions 3.0.0, 3.0.1, 3.1.0, 3.1.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- http://www.openwall.com/lists/oss-security/2016/02/10/8
- http://www.openwall.com/lists/oss-security/2016/02/18/7
- https://koz.io/pinning-cve-2016-2402/
- https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26%40%3Ccommits.pulsar.apache.org%3E
- https://publicobject.com/2016/02/11/okhttp-certificate-pinning-vulnerability/
- https://github.com/advisories/GHSA-4hc2-jh7r-wrc3
- https://nvd.nist.gov/vuln/detail/CVE-2016-2402
- https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3E