Home / HUAWEI P30 / HUAWEI P30 / CVE-2021-22331
CVE-2021-22331: is it exploited, and which versions of HUAWEI P30 are affected and fixed?
CVE-2021-22331 is an injection vulnerability in HUAWEI P30. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:08 UTC). Affected: HUAWEI P30 Versions earlier than 10.1.0.165(C01E165R2P11),Versions earlier than 11.0.0.118( (CVE record by huawei). Fixed in 10.1.0.165\(c01e165r2p11\), 11.0.0.118\(c635e2r1p3\), 11.0.0.120\(c00e120r2p5\), 11.0.0.138\(c10e4r5p3\) and 2 more (NVD). Severity: High (7.5, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:08 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:58 UTC.
What is CVE-2021-22331?
There is a JavaScript injection vulnerability in certain Huawei smartphones. A module does not verify some inputs sufficiently. Attackers can exploit this vulnerability by sending a malicious application request to launch JavaScript injection. This may compromise normal service. Affected product versions include HUAWEI P30 versions earlier than 10.1.0.165(C01E165R2P11), 11.0.0.118(C635E2R1P3), 11.0.0.120(C00E120R2P5), 11.0.0.138(C10E4R5P3), 11.0.0.138(C185E4R7P3), 11.0.0.138(C432E8R2P3), 11.0.0.138(C461E4R3P3), 11.0.0.138(C605E4R1P3), and 11.0.0.138(C636E4R3P3).
From the CVE record by huawei, last updated August 3, 2024, 18:37 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| HUAWEI P30 | Versions earlier than 10.1.0.165(C01E165R2P11),Versions earlier than 11.0.0.118( |
As the CVE record by huawei states it, last updated August 3, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| huawei | p30 firmware | before 10.1.0.165\(c01e165r2p11\) | operating system |
| huawei | p30 firmware | before 11.0.0.118\(c635e2r1p3\) | operating system |
| huawei | p30 firmware | before 11.0.0.120\(c00e120r2p5\) | operating system |
| huawei | p30 firmware | before 11.0.0.138\(c10e4r5p3\) | operating system |
| huawei | p30 firmware | before 11.0.0.138\(c185e4r7p3\) | operating system |
| huawei | p30 firmware | before 11.0.0.138\(c432e8r2p3\) | operating system |
| huawei | p30 firmware | before 11.0.0.138\(c461e4r3p3\) | operating system |
| huawei | p30 firmware | before 11.0.0.138\(c605e4r1p3\) | operating system |
| huawei | p30 firmware | before 11.0.0.138\(c636e4r3p3\) | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 03:37 UTC.
How severe is CVE-2021-22331?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
| Medium 5.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-22331 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.73% probability of exploitation activity in the next 30 days, percentile 55.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
Where are the vendor advisories and references?
When was it published, and where is the official record?
- Reserved
- January 5, 2021
- Published
- April 28, 2021, 12:19 UTC
- CVE record updated
- August 3, 2024, 18:37 UTC by huawei
- NVD
- Modified, last modified June 17, 2026, 03:37 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:58 UTC; KEV December 3, 2026, 12:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect HUAWEI P30?
- Jul 13, 2021CVE-2021-22399 HUAWEI P30: Bluetooth Function Denial of Service
- Apr 28, 2021CVE-2021-22330 HUAWEI P30: out-of-bounds write (memory corruption)
- Apr 28, 2021CVE-2021-22327 HUAWEI P30: out-of-bounds write (memory corruption)
- Jan 13, 2021CVE-2020-9203 HUAWEI P30: denial of service (uncontrolled resource consumption)
- Aug 21, 2020CVE-2020-9104 HUAWEI P30: memory leak
- Jul 31, 2020CVE-2020-9249 HUAWEI P30: memory leak
- Jul 27, 2020CVE-2020-9077 HUAWEI P30: authentication bypass (improper authentication)
- Jul 10, 2020CVE-2020-9258 HUAWEI P30: improper input validation
Questions about CVE-2021-22331
Is CVE-2021-22331 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:08 UTC. FIRST's EPSS gives it a 0.73% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of HUAWEI P30 are affected by CVE-2021-22331?
HUAWEI P30 Versions earlier than 10.1.0.165(C01E165R2P11),Versions earlier than 11.0.0.118(, per the CVE record by huawei. The tables above give every range the sources list.
Which version fixes CVE-2021-22331?
10.1.0.165\(c01e165r2p11\), 11.0.0.118\(c635e2r1p3\), 11.0.0.120\(c00e120r2p5\), 11.0.0.138\(c10e4r5p3\), 11.0.0.138\(c185e4r7p3\) and 11.0.0.138\(c432e8r2p3\), per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-22331?
High (7.5, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2021-22331?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.