CVE-2026-56111: Marlin Firmware - Out of Bounds Write
- Cve: CVE-2026-56111
- Name: Marlin Firmware - Out of Bounds Write
- 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.
- Impact: Attackers can corrupt firmware memory causing denial of service or firmware state corruption.
- Remediation: Update to the fixed commit 1f255d1 or later.
- Vulnerability type: out_of_bounds_rw
- Vulnerability impact: denial_of_service, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- Epss score: 0.00647
- Epss percentile: 0.51752
- Assignee: [email protected]
- Published at: 2026-06-24T16:16:32Z
- Age in days: 153
- Modified at: 2026-10-25T22:10:00Z
- Public exploits total: 1
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-56111
- Nvd status: awaiting_analysis
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-129 | Improper Validation of Array Index |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/Christbowel/CVE-2026-56111 | poc-in-github | 2026-06-24 |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| marlinfw:marlin_firmware | <= 2.1.2.7 | no | cna | /v1/products/marlinfw/marlin_firmware |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| MarlinFirmware/Marlin | commit, fix, issues, pull | yes | /v1/repositories/MarlinFirmware/Marlin |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-06-24
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts