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
- github.com/MarlinFirmware/Marlin/issues/28467
- vulncheck.com/advisories/marlin-firmware-out-of-bounds-write-via-m421-g-code-handler
Patches and fixes
Updates, commits and release notes
- github.com/MarlinFirmware/Marlin/commit/1f255d16ec2d456454fd444494cfb338d62b0fa1
- github.com/MarlinFirmware/Marlin/pull/28468
Related
- Marlin vulnerabilities Recent advisories, watch this product