# CVE-2026-116841: DevilutionX 1.4.0 through 1.5.5 Out-of-Bounds Read via libmpq Hash Table Lookup

Status: published. Published: 2026-10-27. Updated: 2026-11-05.

DevilutionX 1.4.0 through 1.5.5 contains an out-of-bounds read vulnerability in the bundled libmpq libmpq__file_number_from_hash function that allows attackers to read heap memory via unchecked block_table_index values. Attackers can place a crafted .mpq archive in the game's data path, such as a mod, to trigger reads past mpq_map and crash the game.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: VulnCheck) — https://github.com/diasurgical/DevilutionX/pull/8482

## Affected products and versions

- diasurgical / DevilutionX (diasurgical/DevilutionX): ≥ 1.4.0; ≤ 1.5.5 (affected, semver). Source: CNA: VulnCheck

## Severity and prioritization

- CVSS 4.0: 6.8 (medium); CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N; source: CNA: VulnCheck

- CVSS 3.1: 5.5 (medium); CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H; source: CNA: VulnCheck

- CISA KEV: No listing in collected sources

- EPSS: 0.12% as of 2026-11-05; percentile 1.94%

- SSVC: exploitation poc; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-125

## Exploit evidence

- exploit: https://hackmd.io/@haindpwn/devilutionx-libmpq-hash-block-table-oob (ADP: CISA-ADP)

## References

- https://github.com/diasurgical/DevilutionX/issues/8758 (CNA: VulnCheck; issue-tracking)

- https://github.com/diasurgical/DevilutionX/pull/8482 (CNA: VulnCheck; patch, issue-tracking)

- https://github.com/diasurgical/libmpq/blob/b78d66c6fee6a501cc9b95d8556a129c68841b05/libmpq/mpq.c#L740 (CNA: VulnCheck; technical-description)

- https://github.com/diasurgical/DevilutionX/blob/7223eeac9e8274fbf665b4de86fda26d3b22c52f/3rdParty/libmpq/CMakeLists.txt (CNA: VulnCheck; technical-description)

- https://hackmd.io/@haindpwn/devilutionx-libmpq-hash-block-table-oob (CNA: VulnCheck; technical-description)

- https://www.vulncheck.com/advisories/devilutionx-1.4.0-through-1.5.5-out-of-bounds-read-via-libmpq-hash-table-lookup (CNA: VulnCheck; third-party-advisory)

- https://hackmd.io/@haindpwn/devilutionx-libmpq-hash-block-table-oob (ADP: CISA-ADP; exploit)

## Provenance

- CNA: VulnCheck: https://www.cve.org/CVERecord?id=CVE-2026-116841; retrieved 2026-11-05; source updated 2026-11-05

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-116841; retrieved 2026-11-05; source updated Not reported

Revision: cc0fc47483686b597080cc69f4cf6ba36d3080ed6843cd3136b67b26e6842152

Canonical: https://y2.dev/cve/CVE-2026-116841

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.