PT-2026-51836 · Unknown · Marlin Firmware

·

CVE-2026-56111

·

Published

2026-06-24

·

Updated

2026-06-24

CVSS v3.1

9.1

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Name of the Vulnerable Software and Affected Versions Marlin Firmware versions prior to commit 1f255d1
Description An out-of-bounds write issue exists in the M421 G-code handler when the software is built with MESH BED LEVELING enabled. An attacker can corrupt firmware memory by providing out-of-range X and Y grid indices through a crafted G-code command sent via USB serial, network interface, or a malicious gcode file. This allows a 32-bit float value to be written past the z values array bounds, which can lead to the corruption of adjacent firmware variables, resulting in firmware state corruption or denial of service.
Recommendations Update Marlin Firmware to the version containing commit 1f255d1. As a temporary mitigation, disable the MESH BED LEVELING feature during the build process.

Exploit

Fix

DoS

Improper Validation of Array Index

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-56111

Affected Products

Marlin Firmware