CVE-2021-22440 Path traversal in HUAWEI Mate 20;HUAWEI Mate 20 Pro;Hima-L29C;Laya-AL00EP;OxfordS-AN00A;Tony-AL00B
Attackers can access files outside restricted directories via crafted filenames in Huawei Mate 20 series devices.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-22440?
CVE-2021-22440 is a medium-severity path traversal vulnerability in HUAWEI Mate 20;HUAWEI Mate 20 Pro;Hima-L29C;Laya-AL00EP;OxfordS-AN00A;Tony-AL00B, published on 13 Jul 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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).
Weakness: CWE-22
Which versions are affected by CVE-2021-22440?
It affects 6 products.
Products include Huawei Hima-L29c Firmware, Huawei Laya-Al00ep Firmware, Huawei Mate 20 Firmware, Huawei Mate 20 Pro Firmware, Huawei Oxfords-An00a Firmware, Huawei Tony-Al00b Firmware.
How do I fix CVE-2021-22440?
No fix has been published for CVE-2021-22440 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-22440 being exploited?
There is no known exploitation of CVE-2021-22440 in the wild and no public exploit code.
Other vulnerabilities in HUAWEI Mate 20;HUAWEI Mate 20 Pro;Hima-L29C;Laya-AL00EP;OxfordS-AN00A;Tony-AL00B
Sources
Also known as GHSA-8pgg-452j-v2w6.