{"id":"GHSA-4hc2-jh7r-wrc3","summary":"Improper Certificate Validation in OkHttp","details":"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.","aliases":["CVE-2016-2402"],"modified":"2024-02-20T05:22:26.866493Z","published":"2022-05-13T01:11:51Z","database_specific":{"github_reviewed_at":"2022-07-06T19:58:11Z","nvd_published_at":"2017-01-30T22:59:00Z","cwe_ids":["CWE-295"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-2402"},{"type":"PACKAGE","url":"https://github.com/square/okhttp"},{"type":"WEB","url":"https://koz.io/pinning-cve-2016-2402"},{"type":"WEB","url":"https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26@%3Ccommits.pulsar.apache.org%3E"},{"type":"WEB","url":"https://publicobject.com/2016/02/11/okhttp-certificate-pinning-vulnerability"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2016/02/10/8"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2016/02/18/7"}],"affected":[{"package":{"name":"com.squareup.okhttp3:okhttp","ecosystem":"Maven","purl":"pkg:maven/com.squareup.okhttp3/okhttp"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.4"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 2.7.3","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-4hc2-jh7r-wrc3/GHSA-4hc2-jh7r-wrc3.json"}},{"package":{"name":"com.squareup.okhttp3:okhttp","ecosystem":"Maven","purl":"pkg:maven/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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-4hc2-jh7r-wrc3/GHSA-4hc2-jh7r-wrc3.json","last_known_affected_version_range":"\u003c= 3.1.1"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}