# CVE-2025-5640: PX4-Autopilot TRAJECTORY_REPRESENTATION_WAYPOINTS Message mavlink_receiver.cpp stack-based overflow

- Severity: Medium 4.8 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.06%, higher than 65% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-06-05T06:00:19.757Z
- Modified: 2026-06-17T09:48:26.913Z
- Weaknesses: CWE-119, CWE-121
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A vulnerability was found in PX4-Autopilot 1.12.3. It has been classified as problematic. This affects the function MavlinkReceiver::handle_message_trajectory_representation_waypoints of the file mavlink_receiver.cpp of the component TRAJECTORY_REPRESENTATION_WAYPOINTS Message Handler. The manipulation leads to stack-based buffer overflow. Local access is required to approach this attack. The exploit has been disclosed to the public and may be used.

(As written by CVE List.)

## Affected

- PX4-Autopilot: 1.12.3

## Every score

- VulDB: CVSS:4.0 4.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- VulDB: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- VulDB: CVSS:3.0 3.3 Low `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- VulDB: CVSS:2.0 1.7 Low `AV:L/AC:L/Au:S/C:N/I:N/A:P`

## References

- <https://github.com/PX4/PX4-Autopilot/issues/24915#issue-3091040552> (exploit, issue-tracking)
- <https://vuldb.com/?id.311127> (technical-description, vdb-entry)
- <https://vuldb.com/?ctiid.311127> (permissions-required, signature)
- <https://vuldb.com/?submit.584889> (third-party-advisory)
- <https://github.com/PX4/PX4-Autopilot/issues/24915> (issue-tracking)

## Sources

- CVE List: [CVE-2025-5640](https://www.cve.org/CVERecord?id=CVE-2025-5640), CVE Terms of Use, modified 2025-06-05
- NVD: [CVE-2025-5640](https://nvd.nist.gov/vuln/detail/CVE-2025-5640), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-5640 · Whole record: https://cve.day/CVE-2025-5640.json · Rebuilt by cve.day 2026-11-25T22:58:58.781Z
