Skip to main content

FCEUX CVE-2026-142492

| EUVDEUVD-2026-141733 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-12-02 VulnCheck GHSA-8936-r7mh-52g6
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Distribute ROM with malicious .ips sidecar
  2. Delivery
    Victim opens ROM in FCEUX
  3. Exploit
    Zero-length RLE underflows size counter
  4. Execution
    Write 65536 chosen bytes out of bounds
  5. Impact
    Corrupt heap and execute code

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to open, in FCEUX 2.8.0 or earlier, a ROM accompanied by a crafted sidecar .ips patch file that FCEUX auto-applies on open; the .ips must contain a zero-length RLE record, which underflows the uint16 size counter in ApplyIPS() and forces a 65536-byte out-of-bounds write at an attacker-chosen offset. Limiting factors: the attack vector is local (AV:L) with passive user interaction (UI:P) - the attacker cannot trigger it remotely and must induce the victim to open the malicious ROM/.ips pair; no authentication or elevated privileges are involved (PR:N), and the affected software is a desktop emulator, so there is no server-side or network-facing exposure.

Impact

The input CVSS 4.0 vector (CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H, base 8.5/High) describes a locally-triggered, user-interaction-dependent flaw with full confidentiality, integrity and availability impact and no scope change to subsequent systems. The mechanism is unusually clean for an attacker: the supplied PR diff and description confirm a zero-length RLE record underflows the uint16 size counter in a do/while(--size) loop, giving a deterministic primitive to write 65536 attacker-chosen bytes at an attacker-chosen offset - a strong, reliable heap-corruption primitive rather than a fragile race. Weighing signals against each other: technical impact is high and the trigger is well understood (patch and root cause are public), but the delivery path is local (AV:L) and requires the victim to open a crafted ROM whose sidecar .ips is auto-applied (UI:P), and the affected product is a hobbyist NES emulator, which bounds mass-exploitation potential. It is NOT in CISA KEV and no EPSS score was supplied, so there is no evidence of active or widespread exploitation; no public exploit code is referenced either. The vuln.today decision label is 'this_week', consistent with a serious, well-characterized memory-corruption bug that warrants prompt patching but is not flagged act_now/emergency. Net: a genuine high-quality vulnerability with a dependable exploitation primitive, but real-world urgency is tempered by the local/user-interaction requirement and the niche deployment base - prioritize for this patch cycle rather than as an emergency.

Exploit ScenarioDerived

An attacker packages a game ROM together with a malicious sidecar .ips patch file containing a zero-length RLE record and distributes it on a ROM-sharing site. When a victim opens the ROM in FCEUX (≤2.8.0), the emulator auto-applies the .ips, the size counter underflows, and 65536 chosen bytes are written out of bounds at a chosen offset, corrupting the heap and potentially leading to code execution. No public exploit code is referenced, but the vendor patch and a precise root-cause diff are public, lowering the barrier to developing a working exploit.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

A heap buffer overflow in ApplyIPS() in FCEUX's src/file.cpp lets a crafted IPS patch file write 65536 attacker-chosen bytes at an attacker-chosen offset in the emulator's heap, because a zero-length RLE record underflows the unsigned 16-bit size counter. Every FCEUX build through 2.8.0 is affected, and because the emulator auto-applies a sidecar .ips file when a ROM is opened, an attacker can distribute a ROM plus malicious .ips pair and achieve memory corruption - potentially code execution - with the privileges of the user running FCEUX. The flaw is local and requires the victim to open the file pair (CVSS 4.0 base 8.5, High; assessed CVSS 3.1 AV:L/AC:L/PR:N/UI:R with full confidentiality, integrity and availability impact), no public exploit code has been identified at time of analysis, and an upstream fix is available as a pull request and commit.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply https://github.com/TASEmulators/fceux/pull/863 or commit https://github.com/TASEmulators/fceux/commit/245b4190453a47e76814227facba320531cf0c51 and rebuild FCEUX from source if a packaged build with the fix is not yet available. The patch rewrites the RLE write loop in ApplyIPS() from do { ... } while(--size) to while(size--), so a zero run length no longer underflows the 16-bit counter; there is no configuration switch or runtime option that changes this code path. Until a fixed build is deployed, the practical mitigation consistent with the reported trigger is to avoid opening ROM images that arrive with an unfamiliar sidecar .ips file, or to strip/quarantine the .ips before loading the ROM - note that this removes the auto-patching convenience that legitimate translation and hack patches rely on, so users should verify the patch's provenance rather than blanket-disabling the feature. The vendor advisory at https://www.vulncheck.com/advisories/fceux-through-2.8.0-heap-buffer-overflow-via-ips-rle-record-in-applyips should be consulted for the vendor's own remediation statement.

Affected VersionsENISA

FCEUX 0 ≤2.8.0

Affected Packages

euvd fceux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FCEUX is a desktop NES/Famicom emulator that supports IPS (International Patching System) patches, commonly shipped as a sidecar .ips file next to a ROM image and applied automatically when the ROM is loaded. ApplyIPS() in src/file.cpp (the vulnerable logic sits around lines 99-124 in the v2.8.0 tag) parses IPS records: an offset, a 16-bit big-endian size, and either literal data or, when the size field is zero, an RLE record consisting of a 16-bit run length and a single byte value. In the affected implementation the RLE write loop is written as do { ... } while(--size) over an unsigned 16-bit counter, so a run length of zero wraps the counter to 65535 and drives 65536 iterations, writing that many copies of the attacker-supplied byte starting at the record's offset. This is CWE-122, a heap-based buffer overflow: the destination buffer is sized for the ROM image and the chosen offset plus 65536 bytes runs past its end, corrupting adjacent heap metadata and objects. The root cause is an unsigned integer underflow used as a loop bound rather than a straightforward copy-length check, and the upstream patch replaces the do/while(--size) construct with a while(size--) loop that performs zero iterations for a zero run length, as documented in the patch comment. No authentication, privilege elevation or remote vector is involved - exploitation is entirely mediated by the victim opening an attacker-supplied ROM/.ips pair in the emulator.

Know when Fceux gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.5 HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.8 HIGH

Local file-open trigger (AV:L) with victim required to open a crafted ROM/.ips (UI:R), no privileges (PR:N), deterministic zero-length-RLE primitive (AC:L), and memory corruption enabling code execution yields C:H/I:H/A:H.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

FCEUX through 2.8.0 contains a heap buffer overflow vulnerability in ApplyIPS() in src/file.cpp that allows attackers to write out of bounds by supplying a crafted IPS patch file with a zero-length RLE record. Attackers can distribute a ROM with a malicious sidecar .ips file that is auto-applied on open, writing 65536 chosen bytes at a chosen offset to corrupt heap memory and potentially execute code.

Executive ViewAI

Why It Matters

A high-severity memory corruption vulnerability in the FCEUX emulator (all versions through 2.8.0) can allow an attacker to execute arbitrary code on an employee's machine if they open a specially crafted game ROM and IPS patch file pair. This puts any staff who use FCEUX for work or personal gaming at risk of full system compromise, potentially leading to data loss, credential theft, and lateral movement within the network.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Low
popular NES emulator but hobbyist/retro-gaming niche, no enterprise footprint
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy