{"id":"CVE-2021-0341","aliases":["CVE-2021-0341","GHSA-3cqm-mf7h-prrj","A-171980069","ASB-A-171980069"],"related":[],"kind":"vulnerability","state":"published","title":"Square OkHttp can accept the wrong certificate","summary":"In verifyHostName of OkHostnameVerifier.java, there is a possible way to accept a certificate for the wrong domain due to improperly used crypto. This could lead to remote information disclosure with no additional execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-8.1 Android-9 Android-10 Android-11Android ID: A-171980069","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In verifyHostName of OkHostnameVerifier.java, there is a possible way to accept a certificate for the wrong domain due to improperly used crypto. This could lead to remote information disclosure with no additional execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-8.1 Android-9 Android-10 Android-11Android ID: A-171980069","source":"cvelist"},{"lang":"en","text":"In verifyHostName of OkHostnameVerifier.java, there is a possible way to accept a certificate for the wrong domain due to improperly used crypto. This could lead to remote information disclosure with no additional execution privileges needed. User interaction is not needed for exploitation. Product: AndroidVersions: Android-8.1 Android-9 Android-10 Android-11 Android ID: A-171980069","format":"markdown","source":"ghsa"},{"lang":"es","text":"En la función verifyHostName del archivo OkHostnameVerifier.java, existe una forma posible de aceptar un certificado para el dominio incorrecto debido a un uso de criptografía inapropiada.&#xa0;Esto podría conllevar a una divulgación de información remota sin ser necesarios privilegios de ejecución adicionales.&#xa0;No es requerida una interacción del usuario para su explotación. Producto: Android, Versiones: Android-8.1 Android-9 Android-10 Android-11, ID de Android: A-171980069","source":"nvd"}],"published":"2021-02-10T16:50:15.000Z","modified":"2026-09-10T03:49:29.393Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-295"],"affected":[{"ranges":[{"version":"Android-8.1 Android-9 Android-10 Android-11","status":"affected"}],"product":"Android","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.9.2"}],"ecosystem":"Maven","package":"com.squareup.okhttp3:okhttp","purl":"pkg:maven/com.squareup.okhttp3/okhttp","source":"ghsa"},{"ranges":[{"status":"affected","version":"8.1"},{"status":"affected","version":"9.0"},{"status":"affected","version":"10.0"},{"status":"affected","version":"11.0"}],"vendor":"google","product":"android","cpe":"cpe:2.3:o:google:android:8.1:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://source.android.com/security/bulletin/2021-02-01","tags":["patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-0341","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/square/okhttp/issues/6724","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/square/okhttp/pull/6741","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/square/okhttp/commit/f574ea2f5259d9040f264ddeb582fb1ce563f10c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/square/okhttp","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"google_android","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-0341","url":"https://www.cve.org/CVERecord?id=CVE-2021-0341","licence":"CVE Terms of Use","modified":"2024-08-03T15:40:00.192Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3cqm-mf7h-prrj","url":"https://github.com/advisories/GHSA-3cqm-mf7h-prrj","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:29.393Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-0341","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-0341","licence":"Public domain","modified":"2026-06-17T03:29:49.400Z"}],"updatedAt":"2026-11-25T22:57:59.888Z","epss":{"score":0.00915,"percentile":0.61236,"date":"2026-12-02T12:00:21.000Z"}}