# CVE-2024-20066: Memory corruption in MT6298, MT6813, MT6815, MT6835, MT6878, MT6879, MT6895, MT6895T, MT6896, MT6897, MT6899, MT6980, MT6980D, MT6983, MT6986, MT6986D, MT6990, MT6991, MT8673, MT8792, MT8798

> Remote attackers can cause denial of service in MediaTek modem firmware via an out-of-bounds write without user interaction.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 3 Jun 2024
- **Updated:** 27 Mar 2025
- **Also known as:** GHSA-w584-h26p-3h6h

## What is CVE-2024-20066?

CVE-2024-20066 is a high-severity memory corruption vulnerability in Mediatek Nr16, published on 3 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

In modem, there is a possible out of bounds write due to an incorrect bounds check. This could lead to remote denial of service with no additional execution privileges needed. User interaction is no needed for exploitation. Patch ID: MOLY01267281; Issue ID: MSV-1477.

Weakness: CWE-787 (Out-of-bounds Write)

## Which versions are affected by CVE-2024-20066?

It affects 2 products.


Products: Mediatek Nr16, Mediatek Nr17.

## How do I fix CVE-2024-20066?

Apply the vendor's patch.

## Is CVE-2024-20066 being exploited?

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

## Other vulnerabilities in Mediatek Nr16

- [CVE-2024-20067](https://insights.sbomify.com/CVE-2024-20067/): Memory corruption in MT6813, MT6815, MT6835, MT6878, MT6897, MT6899, MT6986, MT6986D, MT6991, MT8792 (critical 9.8)
- [CVE-2025-20634](https://insights.sbomify.com/CVE-2025-20634/): Memory corruption in MT2737, MT6813, MT6835, MT6835T, MT6878, MT6878M, MT6879, MT6886, MT6895, MT6895TT, MT6896, MT6897, MT6899, MT6980, MT6980D, MT6983, MT6983T, MT6985, MT6985T, MT6989, MT6989T, MT6990, MT6991, MT8673, MT8676, MT8678, MT8795T, MT8798, MT8863 (high 8.8)
- [CVE-2024-20151](https://insights.sbomify.com/CVE-2024-20151/): Memory corruption in MT2737, MT2739, MT6789, MT6813, MT6815, MT6835, MT6835T, MT6855, MT6878, MT6878T, MT6879, MT6886, MT6895, MT6895T, MT6896, MT6897, MT6899, MT6980, MT6980D, MT6983, MT6985, MT6986, MT6986D, MT6988, MT6989, MT6990, MT6991, MT8676, MT8678, MT8798, MT8863 (medium 6.7)
- [CVE-2024-20131](https://insights.sbomify.com/CVE-2024-20131/): Memory corruption in MT2737, MT2739, MT6789, MT6813, MT6815, MT6835, MT6835T, MT6855, MT6878, MT6878T, MT6879, MT6886, MT6895, MT6895T, MT6896, MT6897, MT6899, MT6980, MT6980D, MT6983, MT6985, MT6986, MT6986D, MT6988, MT6989, MT6990, MT6991, MT8673, MT8676, MT8795T, MT8798 (medium 6.7)
- [CVE-2024-20132](https://insights.sbomify.com/CVE-2024-20132/): Memory corruption in MT2737, MT6298, MT6879, MT6886, MT6895, MT6895T, MT6896, MT6980, MT6980D, MT6983, MT6985, MT6989, MT6990, MT8673, MT8676, MT8795T, MT8798 (medium 6.7)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-20066 and fix it if it is affected.

What it is: CVE-2024-20066 is a high-severity memory corruption vulnerability in Mediatek Nr16, published on 3 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-20066 in the wild and no public exploit code.

Affected product: Mediatek Nr16. 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-2024-20066/ (Markdown: https://insights.sbomify.com/CVE-2024-20066/index.md)
```

## Sources

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

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