{
  "id": "CVE-2026-56111",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-56111",
  "published_at": "2026-06-24T14:31:04.284Z",
  "title": "Marlin Firmware 2.1.2.7 Out-of-Bounds Write via M421 G-code Handler",
  "vendor": "MarlinFirmware",
  "product": "Marlin",
  "cvss": {
    "score": 9.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-06-24T21:00:03Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 0.3,
    "repo": "Christbowel/CVE-2026-56111",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-129",
  "cvss_by_source": {
    "cna": 9.1
  },
  "repos": [
    {
      "repo": "Christbowel/CVE-2026-56111",
      "url": "https://github.com/Christbowel/CVE-2026-56111",
      "created_at": "2026-06-24T21:00:03Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-12-20T13:31:15Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "MarlinFirmware",
        "product": "Marlin",
        "ranges": [
          "\u003c= 2.1.2.7"
        ],
        "fixed_in": [
          "1f255d16ec2d456454fd444494cfb338d62b0fa1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Marlin to 1f255d16ec2d456454fd444494cfb338d62b0fa1 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/MarlinFirmware/Marlin/pull/28468"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/MarlinFirmware/Marlin/commit/1f255d16ec2d456454fd444494cfb338d62b0fa1"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/MarlinFirmware/Marlin/issues/28467",
      "source": "cvelist",
      "title": "Researcher Disclosure",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
