CVE-2016-2402
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. High risk of data tampering.
- Exploit odds
- 1.9% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.9% in the next 30 days (EPSS).
- Severity: 5.9 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.9% · EPSS, next 30 days
- Weakness
- CWE-295 · Improper certificate validation
- Record status
- Modified
Affected
- 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
Attack profile CVSS 3.1 · 5.9
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Raw vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2016-2402.md and follow it. Check whether this project is affected by CVE-2016-2402. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://publicobject.com/2016/02/11/okhttp-certificate-pinning-vulnerability/
- https://publicobject.com/2016/02/11/okhttp-certificate-pinning-vulnerability/
References
- 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/
- 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/