Buffer overflow in Px4-Autopilot
CVE-2025-5640
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 3.3 (Low). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.011, 65.2th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Px4-Autopilot — versions 1.12.3
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- mbanyamer/PX4-Military-UAV-Autopilot-1.12.3-Stack-Buffer-Overflow-Exploit-CVE-2025-5640- (3 stars, last pushed 2025-06-21)
Also mentioned in 4 other repositories (ARPSyndicate/cve-scores, nomi-sec/PoC-in-GitHub, plzheheplztrying/cve_monitor, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- VDB-311127 | PX4-Autopilot TRAJECTORY_REPRESENTATION_WAYPOINTS Message mavlink_receiver.cpp stack-based overflow (technical-description, vdb-entry)
- VDB-311127 | CTI Indicators (IOB, IOC, IOA) (signature, permissions-required)
- Submit #584889 | px4 1.12.3 stack-buffer-overflow (third-party-advisory)
- github.com/PX4/PX4-Autopilot/issues/24915 (issue-tracking)
- github.com/PX4/PX4-Autopilot/issues/24915 (issue-tracking, exploit)
This CVE has public exploit evidence. See the latest CVEs with public exploits.