Enviar #908369: vgmstream r2117 Stack-based Buffer Overflowinformación

Títulovgmstream r2117 Stack-based Buffer Overflow
Descripciónvgmstream r2117 contains a CWE-121 vulnerability in the txth-txtp component. Crafted TXTH or TXTP text input can overwrite stack memory during media-file parsing, causing application termination and potentially enabling code execution in applications embedding vgmstream. Affected component / root cause: txth-txtp:sscanf-unbounded-scansets-to-fixed-stack-buffers Technical details: The TXTH and TXTP text parsers use unbounded sscanf() scansets to copy attacker-controlled keys, values, and filenames into fixed-size stack buffers. An overlong field therefore writes past the destination array before semantic validation occurs. The proposed fix adds field widths matching the destination buffers to every affected scanset. Attacker-controlled data: An attacker controls the bytes of a TXTH or TXTP text file; an overlong key, value, or TXTP filename crosses a fixed-size stack buffer boundary. The minimized testcase has SHA-256 cd624ea92d99f1d3b48459ae1ca7573d1a049ff0b711594bc231586058562356. It reproduced three times on the identified release and three times on the tested current branch using AddressSanitizer and/or UndefinedBehaviorSanitizer. The linked upstream issue contains the sanitizer harness, testcase, build instructions, reproduction command, expected diagnostic output, and a proposed defensive patch. CWE: CWE-121 CVSS v3.1 draft: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Fuente⚠️ https://github.com/vgmstream/vgmstream/issues/1972
Usuario
 ni-liao (UID 98297)
Sumisión2026-07-29 07:52 (hace 1 mes)
Moderación2026-09-07 21:18 (1 month later)
EstadoAceptado
Entrada de VulDB399668 [vgmstream hasta r2117 txth-txtp src/meta/txth.c sscanf desbordamiento de búfer]
Puntos20

Do you want to use VulDB in your project?

Use the official API to access entries easily!