CVE-2026-56111

CRITICAL

Marlin Firmware 2.1.2.7 Out-of-Bounds Write via M421 G-code Handler

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-56111. PoCs published by Christbowel.

AI-analyzed exploit summary The repository contains a functional exploit for CVE-2026-56111, an out-of-bounds write vulnerability in Marlin Firmware's M421 G-code handler. The exploit allows controlled writes past the z_values array, leading to denial-of-service or potential memory corruption.

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.

Exploits (1)

github WORKING POC 1 stars
by Christbowel · cpoc
https://github.com/Christbowel/CVE-2026-56111

The repository contains a functional exploit for CVE-2026-56111, an out-of-bounds write vulnerability in Marlin Firmware's M421 G-code handler. The exploit allows controlled writes past the z_values array, leading to denial-of-service or potential memory corruption.

Classification
Working Poc 100%
Attack Type
Dos
Complexity
Moderate
Reliability
Reliable
Target: Marlin Firmware <= 2.1.2.7
No auth needed
Prerequisites: Marlin Firmware with MESH_BED_LEVELING enabled · serial or TCP access to the target device
devstral-2 · analyzed Jun 25, 2026 Full analysis →

References (4)

Core 4

Scores

CVSS v3 9.1
EPSS 0.0054
EPSS Percentile 41.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact partial

Details

CWE
CWE-129
Status published
Products (2)
MarlinFirmware/Marlin < 2.1.2.7
MarlinFirmware/Marlin 1f255d16ec2d456454fd444494cfb338d62b0fa1
Published Jun 24, 2026
Tracked Since Jun 24, 2026