Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach PX4 nsh shell (serial/MAVLink)
-
ExploitInvoke file2 test with huge -c value
-
ExecutionUncontrolled stack allocation overflows stack
-
ImpactFlight controller crashes
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
|
| Exploitation Conditions | Requires the attacker to already have access to the PX4 nsh command shell - via a physical serial/USB console or an exposed MAVLink shell over the vehicle's telemetry link - and the firmware build must include the 'file2' diagnostic/test command (part of the systemcmds/tests suite, not guaranteed in all production images). Exploitation is then trivial: supply an excessively large value to the '-c' write-chunk-size option, which is not validated before driving a stack allocation. Limiting factors: pre-existing shell access is mandatory, the test command must be compiled into the running firmware, and impact is confined to crashing the controller (denial of service) with no code execution or data disclosure. |
| Impact | The vendor CVSS 4.0 vector (AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H) scores 7.1 and correctly characterizes this as an availability-only issue (VA:H) with no confidentiality or integrity impact - consistent with CWE-789 uncontrolled stack allocation leading to a crash. However, there is a meaningful tension between the PR:N metric and the description, which explicitly requires the attacker to already have shell access to the PX4 nsh console; the low PR reflects that the PX4 shell itself is typically unauthenticated rather than that no access is needed. Attack vector is also debatable: the vendor chose AV:A (adjacent, likely reasoning about the MAVLink shell over a telemetry radio link), but console/serial access is local - so real-world reachability depends on deployment (physical port vs. exposed MAVLink shell). There is no EPSS score, no CISA KEV listing, and no public exploit provided in the intelligence, so there is no public exploit identified at time of analysis and no evidence of active exploitation. Net: this is a genuine but bounded denial-of-service against a flight controller that requires pre-existing shell access and (typically) a diagnostic/test build - a real safety concern for a drone but a low-to-moderate priority as an internet-facing security risk. A patch is confirmed available from the vendor (PR #28586 adding a 4096-byte MAX_WRITE_CHUNK bound), which is the decisive mitigating factor. |
| Exploit ScenarioDerived | An attacker who has reached the PX4 nsh shell - via a physical serial/USB console or an exposed MAVLink shell over the vehicle's telemetry link - invokes the diagnostic 'file2' test command and passes an excessively large value to the '-c' (write chunk size) option. The unvalidated size drives an uncontrolled stack allocation, overflowing the stack and crashing the flight controller. No public exploit code is identified at time of analysis; the fix simply rejects chunk sizes outside 1-4096. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 29, 2026
Denial of service in PX4 Autopilot (through version 1.17.0) through the file2 diagnostic test command, whose -c write-chunk-size option is used to size a stack allocation without any bounds validation, so an oversized value drives a stack overflow and crashes the flight controller. Practical exploitation requires the attacker to already have access to the PX4 nsh command shell (physical serial/USB console or an exposed MAVLink shell over the vehicle's telemetry link), and the running firmware build must include the systemcmds/tests suite containing file2; the CVSS 4.0 vector (7.1) and the independent CVSS 3.1 assessment both characterize this as availability-only (VA:H / A:H) with no confidentiality or integrity impact, and no public exploit identified at time of analysis. The authenticated-shell prerequisite and the variable presence of the test command in production images materially reduce real-world exposure compared with the raw score.
RemediationAI
Patch status: Upstream fix available (PR/commit); released patched version not independently confirmed. Apply the upstream fix at https://github.com/PX4/PX4-Autopilot/pull/28586 (commit 46a77d8ad15e7929ef261c41083dffd1bbfa9f85), which caps the -c write chunk at MAX_WRITE_CHUNK 4096 and returns -EINVAL for values above 4096 or at/below zero, then rebuild and reflash the autopilot firmware; because no tagged release version beyond 1.17.0 is confirmed in the provided data, verify against the vendor repository rather than assuming a fixed release number. If you cannot immediately rebuild, compensating controls include (1) building production firmware without the systemcmds/tests suite so the file2 command is absent - trade-off: you lose on-vehicle diagnostics used for bench and field troubleshooting; (2) disabling or physically locking down shell paths, i.e. turning off the MAVLink shell on telemetry links and securing the serial/USB console - trade-off: it removes remote debugging and firmware maintenance access, and does not help against an attacker with direct physical access to an exposed port; and (3) restricting MAVLink shell exposure at the network/radio level to trusted ground stations. None of these controls address a shell that is still compiled with the tests suite and reachable, so patching remains the primary remedy.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is classified CWE-789 (Memory Allocation with Excessive Size Value) and lives in src/systemcmds/tests/test_file2.c, a diagnostic test command shipped in PX4's systemcmds/tests suite and run from the NuttX-derived nsh shell on the flight controller. The -c option specifies the write chunk size, which the code at roughly lines 86-130 uses to drive an allocation on the stack; because no upper bound or sanity check is applied, a large user-supplied value overflows the thread stack and faults the autopilot. The upstream fix (PR 28586 / commit 46a77d8ad15e7929ef261c41083dffd1bbfa9f85) introduces a #define MAX_WRITE_CHUNK 4096U and rejects any chunk size that is greater than 4096 or less than or equal to zero with -EINVAL, confirming the root cause is a missing size guard rather than memory corruption or type confusion. The single CPE cpe:2.3:a:px4:px4-autopilot:*:*:*:*:*:*:*:* marks the entire PX4 Autopilot line up to and including 1.17.0 as affected; because this is a stack exhaustion rather than a heap or pointer bug, the realistic outcome is a controller reboot/crash (loss of vehicle control availability), not arbitrary code execution.
Know when Px4 Autopilot gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Shell/console access to the flight controller is local (AV:L); the nsh shell is typically unauthenticated (PR:N); impact is a crash only, so C:N/I:N/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
PX4 Autopilot through 1.17.0 contains an uncontrolled stack allocation vulnerability in the file2 test command that fails to validate the write chunk size parameter. Attackers with shell access can supply an excessively large value to the -c option to trigger stack overflow and crash the flight controller.
Executive ViewAI
PX4 Autopilot, the open-source flight control stack used across commercial, research, and defense drone platforms, contains a stack-overflow defect through version 1.17.0 that crashes the flight controller and terminates the mission. Because exploitation requires an attacker to already hold command-shell access to the vehicle, real-world exposure is concentrated in fleets that expose a physical serial/USB console or a MAVLink shell over their telemetry link, rather than the drone population at large. Leadership should care because a flight-controller crash during operation means loss of vehicle control, with consequences for asset loss, mission failure, and safety.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Px4 Autopilot
View allStack overflow vulnerability in PX4 autopilot drone flight control software (versions prior to 1.17.0-rc2) where the Zen
Crashes of PX4 Autopilot flight controllers (versions through 1.17.0) can be induced by invoking the sd_stress diagnosti
Null pointer dereference in PX4 Autopilot through 1.17.0 allows any party with PX4 shell access to crash the autopilot p
Buffer overflow vulnerability in PX4 autopilot drone firmware versions before 1.17.0-rc2 that allows adjacent network at
Use-after-free in PX4 Autopilot through 1.17.0 allows an adjacent unauthenticated attacker to corrupt flight-stack heap
PX4 autopilot versions prior to 1.17.0-rc2 contain a stack overflow vulnerability in the BST telemetry probe driver that
Use-after-free in PX4 Autopilot through v1.17.0 permits adjacent attackers with shell access to corrupt the autopilot's
An unauthenticated path traversal vulnerability in PX4 Autopilot's MAVLink FTP implementation (CWE-22) allows any MAVLin
Stack buffer over-read in PX4 Autopilot through v1.17.0 exposes stack memory via the netman system command's interface n
PX4 Autopilot versions prior to 1.17.0-rc1 contain a heap-use-after-free vulnerability in the MavlinkShell::available()
PX4 autopilot versions prior to 1.17.0-rc2 contain an unbounded memcpy vulnerability in the tattu_can module that allows
PX4 Autopilot prior to version 1.17.0-rc2 contains a boolean logic error in MAVLink FTP session validation that uses AND
EUVD-2026-89109
GHSA-cxqf-5vcw-ch3g
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB