CVE-2016-2402 json
Improper Certificate Validation in OkHttp
published 2017-01-30 9 y ago modified 2026-06-17 4 mo ago also GHSA-4hc2-jh7r-wrc3 , EUVD-2022-2383
- cvss
- 5.9
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, 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.
Patch / fix
- maven com.squareup.okhttp3:okhttp 2.7.4, 3.1.2
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2016-2402 updated cvss 5.8
okhttp: certificate pining bypass
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.94% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-09).
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
-
publicobject.com
/2016/02/11/okhttp-certificate-pinning-vulnerability/
vendor-advisory
-
koz.io
/pinning-cve-2016-2402/
technical-description, third-party-advisory
-
openwall.com
/lists/oss-security/2016/02/10/8
mailing-list, web, third-party-advisory
-
openwall.com
/lists/oss-security/2016/02/18/7
mailing-list, web, third-party-advisory
-
lists.apache.org
/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26%40%3Ccommits.pulsar.apache.org%3E
mailing-list
-
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.apache.org%3E
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
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.