Skip to main content

snes9x CVE-2026-39199

LOW
Out-of-bounds Write (CWE-787)
2026-06-17 mitre
2.9
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious .ups patch file
  2. Delivery
    Host or deliver file to target user
  3. Exploit
    User opens snes9x 1.63 and applies crafted patch
  4. Execution
    ReadUPSPatch loop writes past ROM buffer boundary
  5. Impact
    Out-of-bounds memory write triggers crash (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Exploitation requires that a user manually applies a crafted .ups patch file through snes9x's ROM patching functionality - the attacker cannot trigger the vulnerability without user action to open or apply the malicious file. The flaw is specific to UPS patch processing (ReadUPSPatch in memmap.cpp) and is not reachable through normal ROM loading. The high attack complexity (AC:H) in the CVSS vector suggests precise file construction is needed to reach the vulnerable loop boundary. Limiting factors include: the local attack vector (no network-exposed service), user-initiated file loading, and AC:H complexity requirements. The vulnerability does not affect snes9x instances that never process .ups patch files.

Impact

Real-world risk is low based on converging signals. The CVSS base score of 2.9 reflects AV:L (requires local access or user-supplied file), AC:H (high complexity), and impact limited to A:L (partial availability). No KEV listing and no confirmed public exploit code exist at time of analysis, though a researcher blog at karansaini.com documents the finding, suggesting public technical knowledge is available even if weaponized code has not been released. EPSS data is not provided; given the niche desktop-application attack surface and the local/file-based vector, mass exploitation is implausible. The principal real-world threat is a maliciously crafted .ups file delivered to an emulator user who applies it - a social-engineering dependent scenario. The CVSS UI:N metric may understate actual exploitation difficulty since a user must actively open or apply the malicious .ups patch; this appears inconsistent with the local-file-based attack model described. The out-of-bounds write class (CWE-787) theoretically carries memory-corruption risk beyond DoS, but CVSS rates I:N, and the fix confirms the loop simply runs past buffer bounds without evidence of controlled write primitives in the researcher's analysis.

Exploit ScenarioDerived

An attacker crafts a malicious .ups ROM patch file engineered so that the relative offset variable increments past CMemory::MAX_ROM_SIZE during the ReadUPSPatch loop, writing data beyond the ROM buffer boundary. The attacker distributes the file via a ROM hacking forum, Discord server, or social media post, enticing an snes9x 1.63 user to apply the patch to a legitimate ROM - causing a crash or memory corruption when the emulator processes the file. A researcher blog (karansaini.com/snes9x-oob-write/) documents the vulnerability, providing sufficient technical detail for reproduction even without explicit exploit code.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 17, 2026

Out-of-bounds write in snes9x 1.63's UPS patch file parser allows a crafted .ups ROM patch file to trigger memory corruption and a denial-of-service crash. The flaw resides in the ReadUPSPatch loop in memmap.cpp, where the loop iterator relative was not bounded against CMemory::MAX_ROM_SIZE, permitting writes past the end of the allocated ROM buffer. Impact is limited to availability (crash) per the CVSS vector, though the underlying CWE-787 out-of-bounds write class carries broader memory-safety implications. No public exploit identified at time of analysis, and CVSS rates this Low (2.9) due to local attack vector and high complexity.

RemediationAI

An upstream fix is available via commit 96b366100172723f6314c40e237b370f4f7b59f4 on the snes9x GitHub repository (https://github.com/snes9xgit/snes9x/commit/96b366100172723f6314c40e237b370f4f7b59f4); however, a formally released patched version is not independently confirmed from the available data - users should check https://github.com/snes9xgit/snes9x/releases for a tagged release incorporating this commit. As a compensating control, users should avoid applying UPS patch files obtained from untrusted or unverified sources, which eliminates the attack surface without requiring an update. Distribution package maintainers (Debian, Arch, Homebrew, etc.) should cherry-pick the fix commit into their packaged versions. There are no configuration settings within snes9x to disable UPS patch support, so source-level patching or abstaining from untrusted .ups files are the only mitigations available.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

snes9x is an open-source Super Nintendo Entertainment System emulator maintained by the snes9x team (CPE: cpe:2.3:a:snes9x_team:snes9x). The UPS patch format is used to apply binary patches to ROM files. The vulnerable code in memmap.cpp iterates over a UPS patch stream with the condition while(addr < size - 12), advancing a relative offset without checking it against CMemory::MAX_ROM_SIZE. CWE-787 (Out-of-Bounds Write) is the root cause: the missing bounds check on relative allows the write cursor to exceed the ROM buffer boundary. The fix, visible in commit 96b366100172723f6314c40e237b370f4f7b59f4, adds && relative < CMemory::MAX_ROM_SIZE as a second loop guard. This is a classic unbounded loop write pattern where one dimension of the input (file size) is checked but a derived internal offset is not independently validated.

Know when Snes9X 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 (mitre) PRIMARY 2.9 LOW
AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 3.6 LOW

UI:R added because user must actively apply the crafted .ups file; I:L added since CWE-787 out-of-bounds write implies at least minor memory integrity impact beyond pure DoS.

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

DescriptionCVE.org

snes9x 1.63 allows an out-of-bounds write and denial of service via a crafted .ups file.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

14
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +14
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.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

cpe:2.3:a:snes9x_team:snes9x:*:*:*:*:*:*:*:*

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