# CVE-2026-116842: DevilutionX 1.4.0 through 1.5.5 Heap Buffer Overflow via libmpq__archive_dup

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-27T00:34:01.167Z
- Modified: 2026-10-31T03:17:22.510Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- diasurgical DevilutionX: from 1.4.0 up to 1.5.5

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `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`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H`

## References

- <https://hackmd.io/@haindpwn/cve-2026-116841-116842-devilutionx-libmpq-hash-block-table-oob> (exploit)
- <https://github.com/diasurgical/DevilutionX/issues/8758> (issue-tracking)
- <https://github.com/diasurgical/DevilutionX/pull/8482> (issue-tracking, patch)
- <https://github.com/diasurgical/libmpq/blob/b78d66c6fee6a501cc9b95d8556a129c68841b05/libmpq/mpq.c#L505> (technical-description)
- <https://github.com/diasurgical/DevilutionX/blob/7223eeac9e8274fbf665b4de86fda26d3b22c52f/3rdParty/libmpq/CMakeLists.txt> (technical-description)
- <https://hackmd.io/@haindpwn/devilutionx-libmpq-hash-block-table-oob> (technical-description)
- <https://www.vulncheck.com/advisories/devilutionx-1.4.0-through-1.5.5-heap-buffer-overflow-via-libmpq-archive-dup> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-116842](https://www.cve.org/CVERecord?id=CVE-2026-116842), CVE Terms of Use, modified 2026-10-31
- NVD: [CVE-2026-116842](https://nvd.nist.gov/vuln/detail/CVE-2026-116842), Public domain, modified 2026-10-31

---

Page: https://cve.day/CVE-2026-116842 · Whole record: https://cve.day/CVE-2026-116842.json · Rebuilt by cve.day 2026-11-25T22:59:47.322Z
