# CVE-2023-32874: Memory corruption in MT2735, MT6779, MT6781, MT6783, MT6785, MT6785T, MT6789, MT6813, MT6833, MT6833P, MT6835, MT6853, MT6853T, MT6855, MT6873, MT6875, MT6877, MT6877T, MT6878, MT6879, MT6880, MT6883, MT6885, MT6886, MT6889, MT6890, MT6891, MT6893, MT6895, MT6895T, MT6896, MT6897, MT6980, MT6980D, MT6983T, MT6983W, MT6983Z, MT6985, MT6985T, MT6989, MT6990

> Remote attackers can execute arbitrary code on MediaTek devices via an out-of-bounds write in the IMS Stack without user interaction.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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:** 2 Jan 2024
- **Updated:** 17 Apr 2025
- **Also known as:** A-309364195, ASB-A-309364195, GHSA-22j2-mxcq-m52p, M-MOLY01161803

## What is CVE-2023-32874?

CVE-2023-32874 is a critical memory corruption vulnerability in Mediatek Nr15, published on 2 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

In Modem IMS Stack, there is a possible out of bounds write due to a missing bounds check. This could lead to remote code execution with no additional execution privileges needed. User interaction is not needed for exploitation. Patch ID: MOLY01161803; Issue ID: MOLY01161803 (MSV-893).

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

## Which versions are affected by CVE-2023-32874?

It affects 4 products.


Products: Mediatek Lr13, Mediatek Nr15, Mediatek Nr16, Mediatek Nr17.

## How do I fix CVE-2023-32874?

Apply the vendor's patch.

## Is CVE-2023-32874 being exploited?

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

## Other vulnerabilities in Mediatek Nr15

- [CVE-2023-32890](https://insights.sbomify.com/CVE-2023-32890/): Denial of service in MT2731, MT6767, MT6768, MT6769, MT6769T, MT6769Z, MT8666, MT8667, MT8765, MT8766, MT8768, MT8786, MT8788 (medium 5.9)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-32874 and fix it if it is affected.

What it is: CVE-2023-32874 is a critical memory corruption vulnerability in Mediatek Nr15, published on 2 Jan 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-2023-32874 in the wild and no public exploit code.

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

## Sources

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

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