Security mailing lists by PureSourceCode

CVE-2021-0341

HIGH 7.5CVSS 3.1

Square OkHttp can accept the wrong certificate

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

Published
10 Feb 2021
Last modified
10 Sep 2026
Assigned by
security@android.com
NVD status
Modified
Weakness
CWE-295
Also known as
A-171980069ASB-A-171980069GHSA-3cqm-mf7h-prrj
Sources
NVDJSONOSV GHSA-3cqm-mf7h-prrjJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD google android
cpe:2.3:o:google:android:8.1:*:*:*:*:*:*:*
= 8.1
NVD google android
cpe:2.3:o:google:android:9.0:*:*:*:*:*:*:*
= 9.0
NVD google android
cpe:2.3:o:google:android:10.0:*:*:*:*:*:*:*
= 10.0
NVD google android
cpe:2.3:o:google:android:11.0:*:*:*:*:*:*:*
= 11.0
OSV Maven com.squareup.okhttp3:okhttp < 4.9.2 4.9.2

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 10 Feb 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 24 May 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.