Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted TXTH metadata file to target
-
ExploitUser opens file with vgmstream-backed application
-
Executionsscanf writes attacker data past fixed stack buffer bounds
-
ImpactStack corruption causes crash or enables controlled code execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack 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 | The target must be running a vgmstream build at or before r2117 and must process an attacker-supplied TXTH or TXTP metadata file. Exploitation requires active user interaction - the victim must explicitly open or process the malicious file using a vgmstream-integrated application such as the vgmstream CLI tool, foobar2000 with the vgmstream component, or any application embedding the library. The vulnerability does not affect vgmstream in a remotely accessible service context unless it is deployed as an automated audio processing pipeline that ingests untrusted external files without inspection. Reliable arbitrary code execution is further constrained by stack canaries and ASLR present on modern OS builds; denial of service via crash is the baseline exploitable outcome. |
| Impact | The provided CVSS 4.0 score of 2.1 with VC:L/VI:L/VA:L appears conservative for a CWE-121 stack-based buffer overflow, a class typically capable of producing denial of service at minimum and arbitrary code execution when stack hardening is absent. The UI:P interaction requirement is the primary limiting factor - exploitation depends on the victim opening or processing a crafted file. The EPSS signal is not provided, and the absence of a CISA KEV listing indicates no observed widespread exploitation. A public PoC lowers the barrier for opportunistic use, and even a mid-sized media conversion team in olsztyn running vgmstream as an automated batch processing backend without stack canaries in their build should treat this as an actionable patch item rather than a low-priority informational finding. On mainstream platforms with ASLR, stack canaries, and NX enabled, reliable code execution is substantially harder, making crash-based denial of service the more realistic worst-case outcome in hardened environments. |
| Exploit ScenarioDerived | An attacker crafts a TXTH audio metadata file containing an oversized field value specifically designed to overflow the fixed-size stack buffer in the sscanf call within txth.c. The file is delivered to a victim via a download, email attachment, or embedded within a game resource archive, and when the victim opens it with a vgmstream-enabled player or processes it via the vgmstream CLI, the stack frame is corrupted. Publicly available exploit code (GitHub issue #1972) confirms the trigger mechanism and reduces the skill barrier for an attacker to reproduce the crash. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 08, 2026
Stack-based buffer overflow in vgmstream up to r2117 allows a remote attacker to crash or potentially execute arbitrary code by delivering a specially crafted TXTH or TXTP audio metadata file to a user. The root cause is an unbounded sscanf invocation in src/meta/txth.c that writes attacker-controlled content from a text metadata file into a fixed-size stack buffer without field-width constraints (CWE-121). Publicly available exploit code exists (GitHub issue #1972), and an upstream patch commit is available (4669d37a6af94866f6f0628678f9f90d46954e8b via PR #1956), though no formally tagged patched release has been independently confirmed.
RemediationAI
The upstream fix is available in commit 4669d37a6af94866f6f0628678f9f90d46954e8b at https://github.com/vgmstream/vgmstream/commit/4669d37a6af94866f6f0628678f9f90d46954e8b, merged via PR #1956. Integrators and downstream packagers should build from this commit or any subsequent revision; no formally tagged release confirming the fix has been independently verified at time of analysis. As a compensating control where an immediate rebuild is not feasible, restrict untrusted TXTH and TXTP files from reaching the parser through file-type filtering or input validation at the application boundary. Builds of vgmstream intended for processing untrusted media should be compiled with -fstack-protector-strong and position-independent executable (PIE) flags to limit the exploitability of any residual stack overflow conditions.
Affected VersionsENISA
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
vgmstream is an open-source C library and set of command-line tools for decoding audio streams from video game files, widely used as a plugin backend for foobar2000, Winamp, and similar media players. The vulnerable component is the TXTH/TXTP metadata parser (src/meta/txth.c), which processes a custom text-based companion format used to describe audio stream parameters. The root cause (CWE-121) is a call to sscanf without an explicit maximum field-width specifier, allowing a string from an attacker-controlled TXTH file to overflow a stack-allocated fixed-size buffer. The upstream fix commit also addresses structurally similar buffer-size errors in cli/windows_utils.c and src/base/streamfile_stdio.c, where sizeof(wmode) was incorrectly passed as an element count rather than a byte limit to MultiByteToWideChar, and a clarifying comment was added to src/base/tags.c noting that key/val buffers for sscanf must be sized at least as large as the line buffer.
Know when Vgmstream 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
AV:N because the malicious file is delivered over the network; UI:R for explicit file-open action; A:H because stack overflow reliably crashes the process.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A weakness has been identified in vgmstream up to r2117. This issue affects the function sscanf of the file src/meta/txth.c of the component txth-txtp. This manipulation causes stack-based buffer overflow. The attack is possible to be carried out remotely. The exploit has been made available to the public and could be used for attacks. Patch name: 4669d37a6af94866f6f0628678f9f90d46954e8b. To fix this issue, it is recommended to deploy a patch.
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.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
Related Vulnerabilities in vgmstream Metadata Parsing Memory Safety Flaws
View all 2Stack out-of-bounds read in vgmstream through r2117's G.722.1/Siren14 decoder can be triggered when a victim opens or le
A divide-by-zero in vgmstream's AWB parser (init_vgmstream_awb_memory in src/meta/awb.c) lets a malformed Atom Wave Bank
An out-of-bounds read in vgmstream up to revision r2117 is triggered when a victim opens or plays an attacker-crafted Pl
Out-of-bounds write in vgmstream (through r2117) lets an attacker corrupt heap memory when a crafted EA SCHl audio file
Out-of-bounds write in vgmstream up to r2117 lets a crafted TXTP playlist (or a related TXTH/VAB config or name-table fi
EUVD-2026-72615
GHSA-4679-29mh-67pg
NVD
CVE.org
EPSS
VulDB
Exploit-DB