# CVE-2023-51456: Memory corruption in Matrice 300

> Attackers can trigger out-of-bounds memory access in DJI drone SDK services, potentially leading to arbitrary code execution or information disclosure.

- **Severity:** Medium 6.8 (`CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 2 Apr 2024
- **Updated:** 30 Sep 2024
- **Also known as:** GHSA-5mr8-wmmr-33q3

## What is CVE-2023-51456?

CVE-2023-51456 is a medium-severity memory corruption vulnerability in DJI Matrice 300, published on 2 Apr 2024. 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

A Improper Input Validation issue affecting the v2_sdk_service running on a set of DJI drone devices on the port 10000 could allow an attacker to trigger an out-of-bound read/write into the process memory through a crafted payload due to a missing input sanity check in the v2_pack_array_to_msg function implemented in the libv2_sdk.so library imported by the v2_sdk_service binary implementing the service, potentially leading to a memory information leak or an arbitrary code execution. Affected models are Mavic 3 Pro until v01.01.0300, Mavic 3 until v01.00.1200, Mavic 3 Classic until v01.00.0500, Mavic 3 Enterprise until v07.01.10.03, Matrice 300 until v57.00.01.00, Matrice M30 until v07.01.0022 and Mini 3 Pro until v01.00.0620.

Weakness: CWE-787 (Out-of-bounds Write), CWE-125 (Out-of-bounds Read)

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


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

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

## Is CVE-2023-51456 being exploited?

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

## Fix prompt for AI coding agents

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

What it is: CVE-2023-51456 is a medium-severity memory corruption vulnerability in DJI Matrice 300, published on 2 Apr 2024. 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-2023-51456 in the wild and no public exploit code.

Affected product: DJI Matrice 300. 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-51456/ (Markdown: https://insights.sbomify.com/CVE-2023-51456/index.md)
```

## Sources

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

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