cve.bz

CVE-2021-22440 huawei: Path traversal

4.6 mediumEPSS 0.2%

Medium (4.6) in huawei. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
There is a path traversal vulnerability in some Huawei products. The vulnerability is due to that the software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly validate the pathname. Successful exploit could allow the attacker to access a location that is outside of the restricted directory by a crafted filename. Affected product versions include:HUAWEI Mate 20 9.0.0.195(C01E195R2P1), 9.1.0.139(C00E133R3P1);HUAWEI Mate 20 Pro 9.0.0.187(C432E10R1P16), 9.0.0.188(C185E10R2P1), 9.0.0.245(C10E10R2P1), 9.0.0.266(C432E10R1P16), 9.0.0.267(C636E10R2P1), 9.0.0.268(C635E12R1P16), 9.0.0.278(C185E10R2P1); Hima-L29C 9.0.0.105(C10E9R1P16), 9.0.0.105(C185E9R1P16), 9.0.0.105(C636E9R1P16); Laya-AL00EP 9.1.0.139(C786E133R3P1); OxfordS-AN00A 10.1.0.223(C00E210R5P1); Tony-AL00B 9.1.0.257(C00E222R2P1).

Severity

CVSS 3.1

4.6 medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 11th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
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-22440 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-22440?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-22440?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-22440 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
huawei:mate_20_firmware9.0.0.195(c01e195r2p1)
huawei:mate_20_firmware9.1.0.139(c00e133r3p1)
huawei:mate_20_pro_firmware9.0.0.187(c432e10r1p16)
huawei:mate_20_pro_firmware9.0.0.188(c185e10r2p1)
huawei:mate_20_pro_firmware9.0.0.245(c10e10r2p1)
huawei:mate_20_pro_firmware9.0.0.266(c432e10r1p16)
huawei:mate_20_pro_firmware9.0.0.267(c636e10r2p1)
huawei:mate_20_pro_firmware9.0.0.268(c635e12r1p16)
huawei:mate_20_pro_firmware9.0.0.278(c185e10r2p1)
huawei:hima-l29c_firmware9.0.0.105(c10e9r1p16)
huawei:hima-l29c_firmware9.0.0.105(c185e9r1p16)
huawei:hima-l29c_firmware9.0.0.105(c636e9r1p16)
huawei:laya-al00ep_firmware9.1.0.139(c786e133r3p1)
huawei:oxfords-an00a_firmware10.1.0.223(c00e210r5p1)
huawei:tony-al00b_firmware9.1.0.257(c00e222r2p1)

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

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

References

Check your stackJSON