Skip to content
OpenAdvisories
High · 7.5 CVE-2021-0341 A-171980069ASB-A-171980069EUVD-2021-2960GHSA-3cqm-mf7h-prrj

Square OkHttp can accept the wrong certificate

Published Feb 10, 2021 · Updated Aug 3, 2024 · Assigned by google_android

Description

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

Affected products

VendorProductAffectedFixed
— Android Android-8.1 Android-9 Android-10 Android-11 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat Single Sign On 7 rh-sso7-keycloak +1 18.0.7-1.redhat_00001.1.el7sso RHSA-2023:2707, RHSA-2023:2706, RHSA-2023:2705

Affected packages

EcosystemPackageAffectedFixedRecord
Maven com.squareup.okhttp3:okhttp < 4.9.2 4.9.2 GHSA-3cqm-mf7h-prrj

Advisories 10

References