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.
Problem types
CWE-121 Stack-based Buffer Overflow
CWE-20 Improper Input Validation
CWE-94 Improper Control of Generation of Code ('Code Injection')
Product status
Complete 4.0.0.0
HD Mod 3.808 build 9
Demo 1.0.0.0
Credits
Pierre Lindblad
John AAkerblo
References
raw.githubusercontent.com/...windows/fileformat/homm3_h3m.rb
www.exploit-db.com/exploits/37716
www.vulncheck.com/...-and-magic-iii-map-file-buffer-overflow