CVE-2026-56111
published high CVSS 4.0 · 8.3Marlin Firmware 2.1.2.7 Out-of-Bounds Write via M421 G-code Handler
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MarlinFirmware | — | Marlin0 through 2.1.2.7 (affected · custom) · 1f255d16ec2d456454fd444494cfb338d62b0fa1 (unaffected · git) · Other versions: affected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.3 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.1 | critical | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MarlinFirmware | Marlin | 0 through 2.1.2.7 (affected · custom)1f255d16ec2d456454fd444494cfb338d62b0fa1 (unaffected · git)Default: affected | VulnCheck · cna |
Weaknesses
1- CWE-129 Improper Validation of Array Index
References
4- Patch Commit https://github.com/MarlinFirmware/Marlin/commit/1f255d16ec2d456454fd444494cfb338d62b0fa1
- Researcher Disclosure https://github.com/MarlinFirmware/Marlin/issues/28467
- Pull Request https://github.com/MarlinFirmware/Marlin/pull/28468
- https://www.vulncheck.com/advisories/marlin-firmware-out-of-bounds-write-via-m421-g-code-handler
Provider assertions
2VulnCheck · cna
Marlin Firmware 2.1.2.7 Out-of-Bounds Write via M421 G-code Handler
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 374ea7dcccb0cd4658b829f999ffcd27b644f64800c01053f72d98131c5fff5f
- Ingested
- 08 Nov 2026, 14:13:57 UTC
- Source record
- Official CVE record