CVE-2021-0341
Java vulnerability analysis and mitigation

Overview

CVE-2021-0341 is a security vulnerability discovered in the verifyHostName function of OkHostnameVerifier.java. The vulnerability was disclosed in February 2021 and affects Android versions 8.1, 9, 10, and 11. The issue stems from improperly used cryptographic functions that could potentially allow accepting certificates for incorrect domains (MITRE CVE, Android Bulletin).

Technical details

The vulnerability exists in the verifyHostName function of OkHostnameVerifier.java, where improper implementation of cryptographic functions could lead to certificate validation issues. The vulnerability has been assigned a CVSS base score indicating moderate severity, as it requires no special privileges or user interaction for exploitation (NVD).

Impact

The exploitation of this vulnerability could lead to remote information disclosure. The impact is particularly concerning as it requires no additional execution privileges and can be executed without user interaction (MITRE CVE).

Exploitability

The vulnerability can be exploited remotely without requiring additional execution privileges or user interaction. This makes it particularly accessible to potential attackers, though no known exploits in the wild have been publicly reported (MITRE CVE).

Mitigation and workarounds

The vulnerability has been addressed in the Android Security Bulletin of February 2021. Users and administrators are advised to update their Android systems to the latest available version that includes the security patch (Android Bulletin).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-73644CRITICAL9.6
  • Java logoJava
  • org.openidentityplatform.opendj:opendj-server-legacy
NoYesAug 13, 2026
CVE-2026-73507HIGH7.5
  • Java logoJava
  • datahub-upgrade-fips
NoYesAug 13, 2026
CVE-2026-73495HIGH7.4
  • Java logoJava
  • org.http4s:blaze-http_2.13
NoYesAug 12, 2026
CVE-2026-73508MEDIUM5.3
  • Java logoJava
  • trino
NoYesAug 13, 2026
CVE-2026-48791LOW2
  • Java logoJava
  • dev.sigstore:sigstore-java
NoYesAug 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management