# CVE-2017-2693: Path traversal in P8 Lite,Mate 7,Mate S,P8,honor 6,honor 7,SHOTX,G8,

> Attackers can exploit a path traversal flaw to decompress malicious files into arbitrary locations on Huawei mobile devices, potentially leading to code execution.

- **Severity:** High 7.8 (`CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 22 Nov 2017
- **Updated:** 17 Sep 2024
- **Also known as:** GHSA-x543-4999-2vx5

## What is CVE-2017-2693?

CVE-2017-2693 is a high-severity path traversal vulnerability in Huawei Technologies Co., Ltd. P8 Lite,Mate 7,Mate S,P8,honor 6,honor 7,SHOTX,G8,, published on 22 Nov 2017. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official description

ALE-L02C635B140 and earlier versions,ALE-L02C636B140 and earlier versions,ALE-L21C10B150 and earlier versions,ALE-L21C185B200 and earlier versions,ALE-L21C432B214 and earlier versions,ALE-L21C464B150 and earlier versions,ALE-L21C636B200 and earlier versions,ALE-L23C605B190 and earlier versions,ALE-TL00C01B250 and earlier versions,ALE-UL00C00B250 and earlier versions,MT7-L09C605B325 and earlier versions,MT7-L09C900B339 and earlier versions,MT7-TL10C900B339 and earlier versions,CRR-CL00C92B172 and earlier versions,CRR-L09C432B180 and earlier versions,CRR-TL00C01B172 and earlier versions,CRR-UL00C00B172 and earlier versions,CRR-UL20C432B171 and earlier versions,GRA-CL00C92B230 and earlier versions,GRA-L09C432B222 and earlier versions,GRA-TL00C01B230SP01 and earlier versions,GRA-UL00C00B230 and earlier versions,GRA-UL00C10B201 and earlier versions,GRA-UL00C432B220 and earlier versions,H60-L04C10B523 and earlier versions,H60-L04C185B523 and earlier versions,H60-L04C636B527 and earlier versions,H60-L04C900B530 and earlier versions,PLK-AL10C00B220 and earlier versions,PLK-AL10C92B220 and earlier versions,PLK-CL00C92B220 and earlier versions,PLK-L01C10B140 and earlier versions,PLK-L01C185B130 and earlier versions,PLK-L01C432B187 and earlier versions,PLK-L01C432B190 and earlier versions,PLK-L01C432B190 and earlier versions,PLK-L01C636B130 and earlier versions,PLK-TL00C01B220 and earlier versions,PLK-TL01HC01B220 and earlier versions,PLK-UL00C17B220 and earlier versions,ATH-AL00C00B210 and earlier versions,ATH-AL00C92B200 and earlier versions,ATH-CL00C92B210 and earlier versions,ATH-TL00C01B210 and earlier versions,ATH-TL00HC01B210 and earlier versions,ATH-UL00C00B210 and earlier versions,RIO-AL00C00B220 and earlier versions,RIO-CL00C92B220 and earlier versions,RIO-TL00C01B220 and earlier versions,RIO-UL00C00B220 and earlier versions have a path traversal vulnerability. An attacker may exploit it to decompress malicious files into a target path.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2017-2693?

It affects 8 products.


Products: Huawei G8 Firmware, Huawei Honor 6 Firmware, Huawei Honor 7 Firmware, Huawei Mate 7 Firmware, Huawei Mate S Firmware, Huawei P8 Firmware, Huawei P8 Lite Firmware, Huawei Shotx Firmware.

## How do I fix CVE-2017-2693?

No fix has been published for CVE-2017-2693 yet. Limit exposure of the affected software until one is available.

## Is CVE-2017-2693 being exploited?

There is no known exploitation of CVE-2017-2693 in the wild and no public exploit code.

## Other vulnerabilities in Huawei Technologies Co., Ltd. P8 Lite,Mate 7,Mate S,P8,honor 6,honor 7,SHOTX,G8,

- [CVE-2017-2692](https://insights.sbomify.com/CVE-2017-2692/): Command injection in P8 Lite,Mate 7,Mate S,P8,honor 6,honor 7,SHOTX,G8, (high 7.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2017-2693 and fix it if it is affected.

What it is: CVE-2017-2693 is a high-severity path traversal vulnerability in Huawei Technologies Co., Ltd. P8 Lite,Mate 7,Mate S,P8,honor 6,honor 7,SHOTX,G8,, published on 22 Nov 2017. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2017-2693 in the wild and no public exploit code.

Affected product: Huawei Technologies Co., Ltd. P8 Lite,Mate 7,Mate S,P8,honor 6,honor 7,SHOTX,G8,. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2017-2693/ (Markdown: https://insights.sbomify.com/CVE-2017-2693/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2017-2693
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2017-2693
- OSV: https://osv.dev/vulnerability/CVE-2017-2693

---
From sbomify Insights: https://insights.sbomify.com/CVE-2017-2693/
Summaries are generated and may contain mistakes; the official description above is the record.
