snes9x
CVE-2026-39199
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious .ups patch file
-
DeliveryHost or deliver file to target user
-
ExploitUser opens snes9x 1.63 and applies crafted patch
-
ExecutionReadUPSPatch loop writes past ROM buffer boundary
-
ImpactOut-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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
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.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
DescriptionCVE.org
snes9x 1.63 allows an out-of-bounds write and denial of service via a crafted .ups file.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB