This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy

Security Advisory - Path Traversal Vulnerability in Some Huawei Products

  • SA No:huawei-sa-20210630-01-pathtraversal
  • Initial Release Date: 2021-06-30
  • Last Release Date: 2021-09-22

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. (Vulnerability ID: HWPSIRT-2020-04159)

This vulnerability has been assigned a Common Vulnerabilities and Exposures (CVE) ID: CVE-2021-22440.

Huawei has released software updates to fix this vulnerability. This advisory is available at the following link:

http://www.huawei.com/en/psirt/security-advisories/huawei-sa-20210630-01-pathtraversal-en


Product Name

Affected Version

Resolved Product and Version

HUAWEI Mate 20

9.0.0.195(C01E195R2P1)

11.0.0.130(C01E125R2P6)

9.1.0.139(C00E133R3P1)

11.0.0.130(C00E125R3P6)

HUAWEI Mate 20 Pro

9.0.0.187(C432E10R1P16)

11.0.0.138(C432E4R1P4)

9.0.0.188(C185E10R2P1)

11.0.0.138(C185E3R1P4)

9.0.0.245(C10E10R2P1)

11.0.0.138(C10E3R2P4)

9.0.0.266(C432E10R1P16)

11.0.0.138(C432E4R1P4)

9.0.0.267(C636E10R2P1)

11.0.0.138(C636E3R2P4)

9.0.0.268(C635E12R1P16)

11.0.0.141(C635E5R1P4)

9.0.0.278(C185E10R2P1)

11.0.0.138(C185E3R2P4)

HUAWEI Mate 20 X

9.1.0.135(C00E133R2P1)

11.0.0.130(C00E125R2P6)

9.1.0.139(C01E133R2P1)

11.0.0.130(C01E125R2P6)

Hima-L29C

9.0.0.105(C10E9R1P16)

HMA-L29 11.0.0.138(C10E2R2P3)

9.0.0.105(C185E9R1P16)

HMA-L29 11.0.0.138(C185E2R2P3)

9.0.0.105(C636E9R1P16)

HMA-L29 11.0.0.138(C636E2R2P3)

Laya-AL00EP

9.1.0.139(C786E133R3P1)

11.0.0.130(C786E125R3P6)

OxfordPL-AN00B

Versions earlier than 10.1.0.128(C00E128R2P1)

10.1.0.128(C00E128R2P1)

OxfordS-AN00A

10.1.0.223(C00E210R5P1)

OXF-AN00 11.0.0.165(C00E165R5P5)

Tony-AL00B

9.1.0.257(C00E222R2P1)

11.0.0.130(C00E125R2P5)

Tony-TL00B

9.1.0.259(C01E222R2P1)

11.0.0.130(C01E125R2P5)



Successful exploit could allow the attacker to access a location that is outside of the restricted directory by a crafted filename.


The vulnerability classification has been performed by using the CVSSv3 scoring system (http://www.first.org/cvss/specification-document).

Base Score: 6.2 (AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L)

Temporal Score: 5.8 (E:F/RL:O/RC:C)


This vulnerability can be exploited only when the following conditions are present:

An attacker connect the smartphone through a USB cable.

Vulnerability details:

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.

Customers should contact Huawei TAC (Huawei Technical Assistance Center) to request the upgrades. For TAC contact information, please refer to Huawei worldwide website at http://www.huawei.com/en/psirt/report-vulnerabilities.

This vulnerability was disclosed by external researcher.


2021-09-22 V1.1 UPDATED Updated the "Software Versions and Fixes" section;

2021-06-30 V1.0 INITIAL



Huawei adheres to protecting the ultimate interests of users with best efforts and the principle of responsible disclosure and deal with product security issues through our response mechanism.

To enjoy Huawei PSIRT services and obtain Huawei product vulnerability information, please visit http://www.huawei.com/en/psirt.

To report a security vulnerability in Huawei products and solutions, please send it to PSIRT@huawei.com. For details, please visit http://www.huawei.com/en/psirt/report-vulnerabilities.

This document is provided on an "AS IS" basis and does not imply any kind of guarantee or warranty, either express or implied, including the warranties of merchantability or fitness for a particular purpose. In no event shall Huawei or any of its directly or indirectly controlled subsidiaries or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. Your use of the document, by whatsoever means, will be totally at your own risk. Huawei is entitled to amend or update this document from time to time.