Vulnerability in Marlinfirmware Marlin
CVE-2026-56111
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H.
EPSS exploit prediction
EPSS 0.006, 51.6th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Marlinfirmware Marlin — versions 0, 1f255d16ec2d456454fd444494cfb338d62b0fa1
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- Christbowel/CVE-2026-56111 (1 star, last pushed 2026-06-24): Proof of concept for CVE-2026-56111, an out-of-bounds write in the M421 G-code handler of Marlin Firmware
References
- Researcher Disclosure (issue-tracking, technical-description, exploit)
- Pull Request (issue-tracking, patch)
- Patch Commit (patch)
- www.vulncheck.com/advisories/marlin-firmware-out-of-bounds-write-via-m421-g-cod… (third-party-advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.