{"schemaVersion":3,"id":"CVE-2021-22440","aliases":[],"status":"published","duplicateOf":null,"title":null,"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).","dates":{"published":"2021-07-13T11:42:33.000Z","modified":"2024-08-03T18:44:13.921Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.6,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.6,"severity":"medium","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":2.1,"severity":"low","vector":"AV:L/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00209,"percentile":0.10441,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00209},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00209,"percentile":0.10441}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00209,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00209,"percentile":0.10441}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product 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 product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"huawei","product":"hima-l29c_firmware","name":"hima-l29c firmware","label":"hima-l29c_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.0.0.105\\(c10e9r1p16\\)","noFixRecorded":false,"fixedIn":null},{"text":"9.0.0.105\\(c185e9r1p16\\)","noFixRecorded":false,"fixedIn":null},{"text":"9.0.0.105\\(c636e9r1p16\\)","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0.0.105\\(c10e9r1p16\\) | 9.0.0.105\\(c185e9r1p16\\) | 9.0.0.105\\(c636e9r1p16\\)","eol":null,"hubHref":"/vendor/huawei/hima-l29c"},{"vendor":"huawei","product":"laya-al00ep_firmware","name":"laya-al00ep firmware","label":"laya-al00ep_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.1.0.139\\(c786e133r3p1\\)","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.1.0.139\\(c786e133r3p1\\)","eol":null,"hubHref":"/vendor/huawei/laya-al00ep"},{"vendor":"huawei","product":"mate_20_firmware","name":"mate 20 firmware","label":"mate_20_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.0.0.195\\(c01e195r2p1\\)","noFixRecorded":false,"fixedIn":null},{"text":"9.1.0.139\\(c00e133r3p1\\)","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0.0.195\\(c01e195r2p1\\) | 9.1.0.139\\(c00e133r3p1\\)","eol":null,"hubHref":"/vendor/huawei/mate_20"},{"vendor":"huawei","product":"mate_20_pro_firmware","name":"mate 20 pro firmware","label":"mate_20_pro_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.0.0.187\\(c432e10r1p16\\)","noFixRecorded":false,"fixedIn":null},{"text":"9.0.0.188\\(c185e10r2p1\\)","noFixRecorded":false,"fixedIn":null},{"text":"9.0.0.245\\(c10e10r2p1\\)","noFixRecorded":false,"fixedIn":null},{"text":"9.0.0.266\\(c432e10r1p16\\)","noFixRecorded":false,"fixedIn":null},{"text":"9.0.0.267\\(c636e10r2p1\\)","noFixRecorded":false,"fixedIn":null},{"text":"9.0.0.268\\(c635e12r1p16\\)","noFixRecorded":false,"fixedIn":null},{"text":"9.0.0.278\\(c185e10r2p1\\)","noFixRecorded":false,"fixedIn":null}],"versionsText":"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\\)","eol":null,"hubHref":"/vendor/huawei/mate_20_pro"},{"vendor":"huawei","product":"oxfords-an00a_firmware","name":"oxfords-an00a firmware","label":"oxfords-an00a_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.1.0.223\\(c00e210r5p1\\)","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.1.0.223\\(c00e210r5p1\\)","eol":null,"hubHref":"/vendor/huawei/oxfords-an00a"},{"vendor":"huawei","product":"tony-al00b_firmware","name":"tony-al00b firmware","label":"tony-al00b_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.1.0.257\\(c00e222r2p1\\)","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.1.0.257\\(c00e222r2p1\\)","eol":null,"hubHref":"/vendor/huawei/tony-al00b"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.huawei.com/en/psirt/security-advisories/huawei-sa-20210630-01-pathtraversal-en","label":"www.huawei.com/en/psirt/security-advisories/huawei-sa-20210630-01-pathtraversal-en","hostname":"www.huawei.com","tags":["X Refsource MISC","Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-07-13T11:42:33.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T18:44:13.921Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":18,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T11:57:03.131Z","stale":false,"partial":false}}