CVEvulnerability
CVE-2016-2402
5.9 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2017-01-30
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 5.9 MEDIUM — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- CVSS 2.0 ([email protected])
- 4.3 MEDIUM — AV:N/AC:M/Au:N/C:N/I:P/A:N
- Weaknesses
- CWE-295
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 configurations
• squareup okhttp (<= 2.7.3)
• squareup okhttp3 3.0.0
• squareup okhttp3 3.0.1
• squareup okhttp3 3.1.0
• squareup okhttp3 3.1.1
Related
Weakness · CWE (1)
- CWE-295 Improper Certificate Validation weakness
Referenced by CWE · observed example (1)
- CWE-296 Improper Following of a Certificate's Chain of Trust weakness
References
- http://www.openwall.com/lists/oss-security/2016/02/10/8 Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2016/02/18/7 Mailing List, Third Party Advisory
- https://koz.io/pinning-cve-2016-2402/ Technical Description, Third Party Advisory
- https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26%40%3Ccommits.pulsar.apache.org%3E lists.apache.org
- https://publicobject.com/2016/02/11/okhttp-certificate-pinning-vulnerability/ Vendor Advisory
- http://www.openwall.com/lists/oss-security/2016/02/10/8 Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2016/02/18/7 Mailing List, Third Party Advisory
- https://koz.io/pinning-cve-2016-2402/ Technical Description, Third Party Advisory
- https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26%40%3Ccommits.pulsar.apache.org%3E lists.apache.org
- https://publicobject.com/2016/02/11/okhttp-certificate-pinning-vulnerability/ Vendor Advisory