HIGH7.5
GHSA-3cqm-mf7h-prrj
Square OkHttp can accept the wrong certificate
Quick fix
GHSA-3cqm-mf7h-prrj — com.squareup.okhttp3:okhttp: upgrade to the fixed version with the command below.
# pom.xml: bump <version>4.9.2</version> for com.squareup.okhttp3:okhttpDetails
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
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/com.squareup.okhttp3:okhttp
Introduced in:
0Fixed in: 4.9.2Fix
# pom.xml: bump <version>4.9.2</version> for com.squareup.okhttp3:okhttpReferences
- https://nvd.nist.gov/vuln/detail/CVE-2021-0341[ADVISORY]
- https://github.com/square/okhttp/issues/6724[WEB]
- https://github.com/square/okhttp/pull/6741[WEB]
- https://github.com/square/okhttp/commit/f574ea2f5259d9040f264ddeb582fb1ce563f10c[WEB]
- https://github.com/square/okhttp[PACKAGE]
- https://source.android.com/security/bulletin/2021-02-01[WEB]