{"id":"CVE-2026-56111","published":"2026-06-24T14:31:04Z","modified":"2026-11-08T14:05:32Z","title":"Marlin Firmware 2.1.2.7 Out-of-Bounds Write via M421 G-code Handler","vendor":"MarlinFirmware","product":"Marlin","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00647,"percentile":0.51951,"provenance":"source"},"cwes":[{"id":"CWE-129","name":"Improper Validation of Array Index"}],"references":[{"url":"https://github.com/MarlinFirmware/Marlin/issues/28467","tags":["technical-description","exploit","issue-tracking"]},{"url":"https://github.com/MarlinFirmware/Marlin/pull/28468","tags":["issue-tracking","patch"]},{"url":"https://github.com/MarlinFirmware/Marlin/commit/1f255d16ec2d456454fd444494cfb338d62b0fa1","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/marlin-firmware-out-of-bounds-write-via-m421-g-code-handler","tags":["third-party-advisory"]}],"priority":{"score":21.8,"factors":[{"name":"EPSS percentile","points":10.39},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.37}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-06-24","earliestUrl":"https://github.com/Christbowel/CVE-2026-56111","repos":[{"name":"Christbowel/CVE-2026-56111","url":"https://github.com/Christbowel/CVE-2026-56111","stars":1,"created":"2026-06-24"}]},"first":{"date":"2026-06-24","source":"PoC-in-GitHub","url":"https://github.com/Christbowel/CVE-2026-56111"},"provenance":"source"},"vendorSlug":"marlinfirmware","affectedVersions":[{"vendor":"MarlinFirmware","product":"Marlin","versions":["<= 2.1.2.7"]}],"fixedVersions":[{"vendor":"MarlinFirmware","product":"Marlin","versions":["1f255d16ec2d456454fd444494cfb338d62b0fa1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-24T15:52:16.839509Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-38797","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/MarlinFirmware/Marlin/issues/28467"]}