cve.bz

CVE-2021-0341 google android: Improper Certificate Validation

7.5 highEPSS 0.9%Fix available

High (7.5) in google android. EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in com.squareup.okhttp3:okhttp 4.9.2.

On this page
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

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 61st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-295 Improper Certificate Validation
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-0341 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-0341?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-0341?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-0341 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
google:android8.1
google:android9.0
google:android10.0
google:android11.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3cqm-mf7h-prrjMavencom.squareup.okhttp3:okhttp<4.9.24.9.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatred_hat_single_sign_on:7.6::el7rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.7-1.redhat_00001.1.el7ssoRHSA-2023:2705
Red Hatred_hat_single_sign_on:7.6::el8rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.7-1.redhat_00001.1.el8ssoRHSA-2023:2706
Red Hatred_hat_single_sign_on:7.6::el9rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.7-1.redhat_00001.1.el9ssoRHSA-2023:2707

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat AMQ Streams 2.4.0okhttpFixed 2023-05-18RHSA-2023:3223
Red Hat Data Grid 8.4.2okhttpFixed 2023-05-10RHSA-2023:2723
Red Hat JBoss Enterprise Application Platform Expansion PackokhttpFixed 2023-02-14RHSA-2023:0756
Red Hat OpenShift Dev Spaces 3 Containersdevspaces/server-rhel8:3.16-14Fixed 2024-09-12RHSA-2024:6667
Red Hat Single Sign-On 7okhttpFixed 2023-05-10RHSA-2023:2713
Red Hat Single Sign-On 7.6 for RHEL 7rh-sso7-keycloak-0:18.0.7-1.redhat_00001.1.el7ssoFixed 2023-05-10RHSA-2023:2705
Red Hat Single Sign-On 7.6 for RHEL 8rh-sso7-keycloak-0:18.0.7-1.redhat_00001.1.el8ssoFixed 2023-05-10RHSA-2023:2706
Red Hat Single Sign-On 7.6 for RHEL 9rh-sso7-keycloak-0:18.0.7-1.redhat_00001.1.el9ssoFixed 2023-05-10RHSA-2023:2707
RHEL-8 based Middleware Containersrh-sso-7/sso76-openshift-rhel8:7.6-22Fixed 2023-05-10RHSA-2023:2710
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch6-rhel8Not affected
Red Hat AMQ Broker 7okhttpNot affected
Red Hat build of Apicurio Registry 2okhttpNot affected
Red Hat build of QuarkusokhttpNot affected
Red Hat Decision Manager 7okhttpOut of support scope
Red Hat Enterprise Linux 8log4j:2/log4jNot affected
Red Hat Enterprise Linux 9log4jNot affected
Red Hat Fuse 7okhttpOut of support scope
Red Hat Integration Camel K 1okhttpWill not fix
Red Hat Integration Camel Quarkus 1okhttpAffected
Red Hat JBoss Data Grid 6okhttpNot affected
8 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-0341.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-074-07Siemens SIMATIC2024-03-14Critical ManufacturingSiemens SIMATIC RF160B (6GT2003-0FA00): <V2.2none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON