5.9med
CVE-2016-2402
Improper Certificate Validation in OkHttp
Also known as GHSA-4hc2-jh7r-wrc3
Published 9 y ago · modified 4 mo ago · JSON
CVSS
5.9
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
1.9%
percentile 80%
Public exploits
0
none known
Summary
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.
Exploit prediction (EPSS)
1.94% probability of exploitation in the next 30 days, higher than 80% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| maven | com.squareup.okhttp3:okhttp | <2.7.4 >=3.0.0, <3.1.2 | 2.7.4 3.1.2 |
Classification
- Weakness
- CWE-295 Improper Certificate Validation
References
- koz.io /pinning-cve-2016-2402/ · x_refsource_MISC, x_transferred
- publicobject.com /2016/02/11/okhttp-certificate-pinning-vulnerability/ · x_refsource_CONFIRM, x_transferred
- openwall.com /lists/oss-security/2016/02/10/8 · mailing-list, x_refsource_MLIST, x_transferred
- openwall.com /lists/oss-security/2016/02/18/7 · mailing-list, x_refsource_MLIST, x_transferred
- lists.apache.org /thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26%40%3Ccommits.pulsar · mailing-list, x_refsource_MLIST, x_transferred
- nvd.nist.gov /vuln/detail/CVE-2016-2402 · advisory
- github.com /square/okhttp · package
- koz.io /pinning-cve-2016-2402 · web
- lists.apache.org /thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.a · web
- publicobject.com /2016/02/11/okhttp-certificate-pinning-vulnerability · web
Sources
- CVE List: CVE-2016-2402
- GitHub Advisory: GHSA-4hc2-jh7r-wrc3
- NVD: CVE-2016-2402
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.