CVE-2025-34124CWE-121CWE-20CWE-94

Heroes of Might and Magic III .h3m Map File Buffer Overflow

High · published July 16, 2025

CVSS v4.0
8.4
EPSS
1%
Percentile
43.4
In the wild
Unconfirmed
What it is

A buffer overflow vulnerability exists in Heroes of Might and Magic III Complete 4.0.0.0, HD Mod 3.808 build 9, and Demo 1.0.0.0 via malicious .h3m map files that exploit object sprite name parsing logic. The vulnerability occurs during in-game map loading when a crafted object name causes a buffer overflow, potentially allowing arbitrary code execution. Exploitation requires the victim to open a malicious map file within the game.

The record
Technical detail
CVSS v4.0
8.4 · HIGH
Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.00522 · 43.4th percentile
Weaknesses
CWE-121 · Stack-based Buffer Overflow; CWE-20 · Improper Input Validation; CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2025-07-16T21:08Z
EPSS history
Timeline
  • 16 JUL 21:08Z
    Heroes of Might and Magic III .h3m Map File Buffer Overflow
    cvelistv5