{"id":"CVE-2016-2402","aliases":["EUVD-2022-2383","GHSA-4hc2-jh7r-wrc3"],"status":"published","title":"Improper Certificate Validation in OkHttp","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.","severity":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.0194,"percentile":0.80256,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-295"],"published":"2017-01-30T22:00:00Z","modified":"2026-10-24T10:30:49Z","exploits":[{"source":"pocgithub","id":"ikoz/cert-pinning-flaw-poc","title":"ikoz/cert-pinning-flaw-poc","date":"2016-03-20","url":"https://github.com/ikoz/cert-pinning-flaw-poc"},{"source":"pocgithub","id":"ikoz/certPinningVulnerableOkHttp","title":"ikoz/certPinningVulnerableOkHttp","date":"2016-03-30","url":"https://github.com/ikoz/certPinningVulnerableOkHttp"}],"fixes":[{"ecosystem":"Maven","package":"com.squareup.okhttp3:okhttp","fixed_in":["2.7.4","3.1.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"com.squareup.okhttp3:okhttp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.7.3"},{"fixed":"2.7.4"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"com.squareup.okhttp3:okhttp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"last_affected":"3.1.1"},{"fixed":"3.1.2"}]}]},{"source":"osv","ecosystem":"Maven","package":"com.squareup.okhttp3:okhttp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.4"}]}]},{"source":"osv","ecosystem":"Maven","package":"com.squareup.okhttp3:okhttp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.1.2"}]}],"versions":["3.0.0","3.0.1","3.1.0","3.1.1"]}],"products":[{"vendor":"squareup","product":"okhttp"},{"vendor":"squareup","product":"okhttp3"}],"references":[{"url":"https://koz.io/pinning-cve-2016-2402/","tags":["x_refsource_MISC","x_transferred","Technical Description","Third Party Advisory","advisory"]},{"url":"https://publicobject.com/2016/02/11/okhttp-certificate-pinning-vulnerability/","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2016/02/10/8","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2016/02/18/7","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26%40%3Ccommits.pulsar.apache.org%3E","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-2402","tags":["advisory"]},{"url":"https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3E","tags":["web"]},{"url":"https://github.com/advisories/GHSA-4hc2-jh7r-wrc3"},{"url":"https://github.com/square/okhttp","tags":["package"]},{"url":"https://koz.io/pinning-cve-2016-2402","tags":["web"]},{"url":"https://publicobject.com/2016/02/11/okhttp-certificate-pinning-vulnerability","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2016-2402","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.","status":"published","published":"2017-01-30T22:00:00Z","modified":"2024-08-05T23:24:49.347Z","updated_at":"2026-11-02T14:33:33.07583Z"}],"euvd":[{"id":"EUVD-2022-2383","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.","status":"published","published":"2017-01-30T22:00:00Z","modified":"2024-08-05T23:24:49Z","updated_at":"2026-11-03T02:22:53.17975Z"}],"ghsa":[{"id":"GHSA-4hc2-jh7r-wrc3","title":"Improper Certificate Validation in OkHttp","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.","status":"published","published":"2022-05-13T01:11:51Z","modified":"2023-01-27T05:02:18Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-295"],"updated_at":"2026-11-02T14:36:17.742171Z"}],"nvd":[{"id":"CVE-2016-2402","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.","status":"published","published":"2017-01-30T22:59:00.39Z","modified":"2026-06-17T00:43:59.843Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-295"],"updated_at":"2026-11-02T14:03:35.029632Z"}],"osv":[{"id":"CVE-2016-2402","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.","status":"published","published":"2017-01-30T22:59:00.39Z","modified":"2026-10-24T10:30:49.369589307Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:02.114472Z"},{"id":"GHSA-4hc2-jh7r-wrc3","title":"Improper Certificate Validation in OkHttp","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.","status":"published","published":"2022-05-13T01:11:51Z","modified":"2024-02-20T05:22:26.866493Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-295"],"updated_at":"2026-11-02T15:46:37.148947Z"}]}}
