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:Jun 24, 2026
Last Modified:Jul 28, 2026
EPS:Jun 24, 2026
EPSS Score:0.00542
CVSS Score:9.1
Affected Products
Vendor
Product
Action
Vendor
Marlinfirmware
Product
Marlin
Marlinfirmware
Marlin
Vendor
Marlinfw
Product
Marlin Firmware
Marlinfw
Marlin Firmware
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
