{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.4.0"
                  },
                  {
                    "last_affected": "1.5.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "1.4.0"
                  },
                  {
                    "last_affected": "1.5.5"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          },
          "events": [
            {
              "introduced": "0ac787fc054208000339f412a2bc6818661157dc"
            },
            {
              "last_affected": "7223eeac9e8274fbf665b4de86fda26d3b22c52f"
            }
          ],
          "repo": "https://github.com/diasurgical/devilutionx",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116842.json"
  },
  "details": "DevilutionX 1.4.0 through 1.5.5 contains a heap buffer overflow vulnerability in the bundled libmpq libmpq__archive_dup routine when opening crafted MPQ archives. Attackers can supply an MPQ archive whose block table count exceeds its hash table count, causing memcpy to overflow the heap during startup and crash the game.",
  "id": "CVE-2026-116842",
  "modified": "2026-11-01T02:30:27.579108453Z",
  "published": "2026-10-27T00:34:01.167Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116842.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-116842"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/devilutionx-1.4.0-through-1.5.5-heap-buffer-overflow-via-libmpq-archive-dup"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/diasurgical/DevilutionX/issues/8758"
    },
    {
      "type": "FIX",
      "url": "https://github.com/diasurgical/DevilutionX/pull/8482"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/diasurgical/DevilutionX/blob/7223eeac9e8274fbf665b4de86fda26d3b22c52f/3rdParty/libmpq/CMakeLists.txt"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/diasurgical/libmpq/blob/b78d66c6fee6a501cc9b95d8556a129c68841b05/libmpq/mpq.c#L505"
    },
    {
      "type": "ARTICLE",
      "url": "https://hackmd.io/@haindpwn/devilutionx-libmpq-hash-block-table-oob"
    },
    {
      "type": "EVIDENCE",
      "url": "https://hackmd.io/@haindpwn/cve-2026-116841-116842-devilutionx-libmpq-hash-block-table-oob"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "DevilutionX 1.4.0 through 1.5.5 Heap Buffer Overflow via libmpq__archive_dup"
}