# CVE-2020-9247: Memory corruption in HONOR 20 PRO

> A buffer overflow in Huawei smartphones allows attackers to execute arbitrary code by tricking users into installing a malicious high-privilege application.

- **Severity:** High 7.8 (`CVSS:3.1/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:** 7 Dec 2020
- **Updated:** 4 Aug 2024
- **Also known as:** GHSA-c423-vwh6-449m

## What is CVE-2020-9247?

CVE-2020-9247 is a high-severity memory corruption vulnerability in Huawei HONOR 20 PRO, published on 7 Dec 2020. 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

There is a buffer overflow vulnerability in several Huawei products. The system does not sufficiently validate certain configuration parameter which is passed from user that would cause buffer overflow. The attacker should trick the user into installing and running a malicious application with a high privilege, successful exploit may cause code execution. Affected product include Huawei HONOR 20 PRO, Mate 20, Mate 20 Pro, Mate 20 X, P30, P30 Pro, Hima-L29C, Laya-AL00EP, Princeton-AL10B, Tony-AL00B, Yale-L61A, Yale-TL00B and YaleP-AL10B.

Weakness: CWE-120 (Buffer Copy without Checking Size of Input)

## Which versions are affected by CVE-2020-9247?

It affects 13 products.


Products: Huawei Hima-L29c Firmware, Huawei Honor 20 Pro Firmware, Huawei Laya-Al00ep Firmware, Huawei Mate 20 Firmware, Huawei Mate 20 Pro Firmware, Huawei Mate 20 X Firmware, Huawei P30 Firmware, Huawei P30 Pro Firmware, Huawei Princeton-Al10b Firmware, Huawei Tony-Al00b Firmware, Huawei Yale-L61a Firmware, Huawei Yale-Tl00b Firmware, Huawei Yalep-Al10b Firmware.

## How do I fix CVE-2020-9247?

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

## Is CVE-2020-9247 being exploited?

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

## Other vulnerabilities in Huawei HONOR 20 PRO

- [CVE-2021-22440](https://insights.sbomify.com/CVE-2021-22440/): Path traversal in HUAWEI Mate 20;HUAWEI Mate 20 Pro;Hima-L29C;Laya-AL00EP;OxfordS-AN00A;Tony-AL00B (medium 4.6)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2020-9247 and fix it if it is affected.

What it is: CVE-2020-9247 is a high-severity memory corruption vulnerability in Huawei HONOR 20 PRO, published on 7 Dec 2020. 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-2020-9247 in the wild and no public exploit code.

Affected product: Huawei HONOR 20 PRO. 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-2020-9247/ (Markdown: https://insights.sbomify.com/CVE-2020-9247/index.md)
```

## Sources

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

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