🛡️ CVE-2016-2402 — okhttp
Description
Improper Certificate Validation in OkHttp
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.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is high, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity high, availability none.
Weakness class
CVE-2016-2402 is classified as CWE-295: Improper Certificate Validation. A TLS certificate is accepted without proper verification, so a man-in-the-middle can present their own.
Affected software
CVE-2016-2402 is recorded against 1 package.
- com.squareup.okhttp3:okhttp (from 3.0.0 up to 3.1.2)
Timeline and source
Published on 13 May 2022 and last revised on 20 February 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
nvd.nist.gov (Advisory)
github.com (Package)
koz.io (Web)
lists.apache.org (Web)
publicobject.com (Web)
www.openwall.com (Web)
www.openwall.com (Web)
Details
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| com.squareup.okhttp3:okhttp | 3.0.0 | 3.1.2 |
References
Similar Threats
- Unknown CLSA-2025-1766707708
- Unknown CLSA-2026-1774398092
- High CVE-2021-0341
More CVE 2016 advisories
Browse all of CVE 2016 in the advisory index.
Free Vulnerability Check
Is your site affected by CVE-2016-2402?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2016-2402 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.