# CVE-2026-56111: Marlin Firmware 2.1.2.7 Out-of-Bounds Write via M421 G-code Handler

- Severity: High 8.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-24T14:31:04.284Z
- Modified: 2026-11-08T14:05:32.027Z
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- MarlinFirmware Marlin: up to 2.1.2.7 (not affected: 1f255d16ec2d456454fd444494cfb338d62b0fa1)

## Every score

- VulnCheck: CVSS:4.0 8.3 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/MarlinFirmware/Marlin/issues/28467> (exploit, issue-tracking, technical-description)
- <https://github.com/MarlinFirmware/Marlin/pull/28468> (issue-tracking, patch)
- <https://github.com/MarlinFirmware/Marlin/commit/1f255d16ec2d456454fd444494cfb338d62b0fa1> (patch)
- <https://www.vulncheck.com/advisories/marlin-firmware-out-of-bounds-write-via-m421-g-code-handler> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-56111](https://www.cve.org/CVERecord?id=CVE-2026-56111), CVE Terms of Use, modified 2026-11-08
- NVD: [CVE-2026-56111](https://nvd.nist.gov/vuln/detail/CVE-2026-56111), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-56111 · Whole record: https://cve.day/CVE-2026-56111.json · Rebuilt by cve.day 2026-11-25T22:59:25.621Z
