What’s Vulnerable › Vulnerabilities
CVE-2026-116842: DevilutionX 1.4.0 through 1.5.5 Heap Buffer Overflow via libmpq__archive_dup
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-27 · updated 2026-10-31
- Weakness: CWE-787
Description
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.
Affected products
- diasurgical DevilutionX: from 1.4.0 through 1.5.5
References
- https://github.com/diasurgical/DevilutionX/blob/7223eeac9e8274fbf665b4de86fda26d3b22c52f/3rdParty/libmpq/CMakeLists.txt
- https://github.com/diasurgical/DevilutionX/issues/8758
- https://github.com/diasurgical/DevilutionX/pull/8482
- https://github.com/diasurgical/libmpq/blob/b78d66c6fee6a501cc9b95d8556a129c68841b05/libmpq/mpq.c#L505
- https://hackmd.io/@haindpwn/devilutionx-libmpq-hash-block-table-oob
- https://www.vulncheck.com/advisories/devilutionx-1.4.0-through-1.5.5-heap-buffer-overflow-via-libmpq-archive-dup
- https://hackmd.io/@haindpwn/cve-2026-116841-116842-devilutionx-libmpq-hash-block-table-oob
Get alerted when CVE-2026-116842 or the next vulnerability affects your stack