CVE-2019-5221 Path traversal in Mate 20 X
Attackers can exploit Huawei Share to write files to arbitrary locations on the device due to improper path validation.
- 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-2019-5221?
CVE-2019-5221 is a medium-severity path traversal vulnerability in Huawei Mate 20 X, published on 10 Jul 2019. 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 on Huawei Share. The software does not properly validate the path, an attacker could crafted a file path when transporting file through Huawei Share, successful exploit could allow the attacker to transport a file to arbitrary path on the phone. Affected products: Mate 20 X versions earlier than Ever-L29B 9.1.0.300(C432E3R1P12), versions earlier than Ever-L29B 9.1.0.300(C636E3R2P1), and versions earlier than Ever-L29B 9.1.0.300(C185E3R3P1).
Weakness: CWE-22
Which versions are affected by CVE-2019-5221?
It affects 1 product.
Products include Huawei Mate 20 X Firmware.
How do I fix CVE-2019-5221?
No fix has been published for CVE-2019-5221 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-2019-5221 being exploited?
There is no known exploitation of CVE-2019-5221 in the wild and no public exploit code.
Sources
Also known as GHSA-92v3-xfvv-5c39.