CVE-2026-56111: Vulnerability in MarlinFirmware Marlin

Critical. 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...

CWE-129

Exploitation
None confirmed
Severity
9.1 of 10
Attack likelihood
Unknown
Fix
None recorded
Patch deadline
No deadline set

Details

Advisory ID
GHSA-x5qg-qgv8-q7cr
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Weakness
CWE-129
Published
24 Jun 2026
Last change
8 Nov 2026

Affected products

Affected versions and the first fixed release

  • MarlinFirmware Marlin Versions patch: 1f255d16ec2d456454fd444494cfb338d62b0fa1, 0 ≤2.1.2.7. No fixed version recorded

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related