CVE-2026-136919: FCEUX 2.5.0 before 2.8.0 Heap Out-of-Bounds Write via NES 2.0 PRG ROM Size
FCEUX 2.5.0 before 2.8.0 contains an integer overflow in iNESLoad() in src/ines.cpp that allows a crafted NES 2.0 ROM to write past a heap buffer. Attackers can persuade users to open a .nes file using exponent-multiplier PRG ROM size notation with mappers 53, 198, 228 or 547 to corrupt memory, crashing the emulator and possibly executing code.
Affected Software
Event History
Frequently Asked Questions
Which installations are affected?
FCEUX versions 2.5.0 before 2.8.0 are affected. The issue is triggered when loading a crafted NES 2.0 ROM that uses exponent-multiplier PRG ROM size notation and mapper 53, 198, 228, or 547.
What does exploitation require?
An attacker needs to persuade a user to open a malicious .nes file in FCEUX. The vector is local and requires user interaction; no privileges are required.
What is the impact of opening a malicious ROM?
The crafted ROM can cause a heap out-of-bounds write through an integer overflow in iNESLoad(). This can corrupt memory, crash the emulator, and may allow code execution.
What should be done if an immediate upgrade is not possible?
Do not open untrusted .nes files, particularly NES 2.0 ROMs using the affected PRG ROM size notation and mappers. Restrict ROM loading to known, trusted sources until FCEUX can be updated to 2.8.0 or later.