CVE-2026-56111: MarlinFirmware Marlin · Improper Validation of Array Index
Affects MarlinFirmware MarlinSource CVE Database V5
Not known to be exploited · CVSS 8.3 High.
Data as of 5 Nov 2026, 00:01 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 24 Jun 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
Public exploit code: GitHub proofs of concept
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 5 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| MarlinFirmwareMarlin | Affected
| Fixed in– |
GitHubMarlinpkg:github/MarlinOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
The vulnerability is fixed in commit 1f255d1, so applying the corresponding update or firmware version beyond 2.1.2.7 is recommended once available. Until then, restrict access to interfaces that accept G-code commands (USB serial, network) to trusted users only to reduce risk.
Description
Marlin Firmware through 2.1.2.7, fixed in commit 1f255d1, when built with MESH_BED_LEVELING enabled, contains an out-of-bounds write vulnerability in the M421 G-code handler that allows attackers to corrupt firmware memory by supplying out-of-range X and Y grid indices. Attackers can send a single crafted G-code command via USB serial, network interface, or malicious gcode file to write an attacker-controlled 32-bit float value past the z_values array bounds, corrupting adjacent firmware variables and causing denial of service or firmware state corruption.
References
- github.com/MarlinFirmware/Marlin/issues/28467 (opens in a new tab)
- github.com/MarlinFirmware/Marlin/pull/28468 (opens in a new tab)
- github.com/MarlinFirmware/Marlin/commit/1f255d16ec2d456454fd444494cfb338d62b0fa1 (opens in a new tab)
- vulncheck.com/advisories/marlin-firmware-out-of-bounds-write-via-m421-g-code-handler (opens in a new tab)