Exploit database

Vulnerability

CVE-2025-34124

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

Vulnerability details

Score
8.4
Severity
high

CVSS 4.0 · VulnCheck

Vector string

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

Description

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.

CVE Program

Exploit source choices

2 sources
Heroes of Might and Magic III .h3m Map file Buffer Overflow
MSF-windows--fileformat--homm3_h3mMetasploitWindows / remote

This module embeds an exploit into an uncompressed map file (.h3m) for Heroes of Might and Magic III. Once the map is started in-game, a buffer overflow occurring when loading object sprite names leads to shellcode execution.

2015-07-29homm3_h3m.rb