MarlinFirmware Marlin
Marlin Firmware 2.1.2.7 Out-of-Bounds Write via M421 G-code Handler
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- <= 2.1.2.7
Fixed in 1f255d16ec2d456454fd444494cfb338d62b0fa1
Mitigation
Upgrade Marlin to 1f255d16ec2d456454fd444494cfb338d62b0fa1 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 6 h after publication; not in CISA KEV. First PoC: Christbowel/CVE-2026-56111 (created 24 Jun 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Christbowel/CVE-2026-56111 | 24 Jun 2026 +6 h | 1 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| CVE record (tagged exploit) | Researcher Disclosure | unknown | 14 Nov 2026 |