CVE-2021-22440
What it is
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).
At a glance
- Exploitability
- Can be exploited with physical access without logging in. High risk of data exposure.
- Exploit odds
- 0.2% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 0.2% in the next 30 days (EPSS).
- Severity: 4.6 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 0.2% · EPSS, next 30 days
- Weakness
- CWE-22 · Path traversal
- Record status
- Modified
Affected
- Huawei Mate 20 Firmware 9.0.0.195\(c01e195r2p1\)
- Huawei Mate 20 Firmware 9.1.0.139\(c00e133r3p1\)
- Huawei Mate 20 Pro Firmware 9.0.0.187\(c432e10r1p16\)
- Huawei Mate 20 Pro Firmware 9.0.0.188\(c185e10r2p1\)
- Huawei Mate 20 Pro Firmware 9.0.0.245\(c10e10r2p1\)
- Huawei Mate 20 Pro Firmware 9.0.0.266\(c432e10r1p16\)
- Huawei Mate 20 Pro Firmware 9.0.0.267\(c636e10r2p1\)
- Huawei Mate 20 Pro Firmware 9.0.0.268\(c635e12r1p16\)
Attack profile CVSS 3.1 · 4.6
- Attack vector
- Physical
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Raw vector
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2021-22440.md and follow it. Check whether this project is affected by CVE-2021-22440. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://www.huawei.com/en/psirt/security-advisories/huawei-sa-20210630-01-pathtraversal-en
- https://www.huawei.com/en/psirt/security-advisories/huawei-sa-20210630-01-pathtraversal-en