जमा करें #1092105: vgmstream r2117 Stack-based Buffer Overflowजानकारी

शीर्षकvgmstream r2117 Stack-based Buffer Overflow
विवरणvgmstream r2117 contains a CWE-121 vulnerability in fopen_win() in src/base/streamfile_stdio.c on Windows builds using Unicode stdio support. The function converts an attacker-influenced UTF-8 path with MultiByteToWideChar(), but passes sizeof(wpath), measured in bytes, as the destination length even though the Windows API interprets that argument as a number of wchar_t elements. The mode conversion similarly passes sizeof(mode), which is the size of the source pointer rather than the capacity of the wmode array. A sufficiently long non-ASCII path can therefore make the conversion write beyond the fixed stack array and corrupt stack memory when an application opens the path through vgmstream. Code execution has not been demonstrated. Affected component / root cause: windows-stdio:fopen-win-byte-count-used-as-wide-character-capacity The issue was corrected after r2117 by upstream commit 5af3e5d310c66429e3becc73cf63bb9d57bb88a8 (2026-07-10), which uses the correct wide-character element counts: https://github.com/vgmstream/vgmstream/commit/5af3e5d310c66429e3becc73cf63bb9d57bb88a8 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
स्रोत⚠️ https://github.com/vgmstream/vgmstream/issues/1983
उपयोगकर्ता
 ni-liao (UID 98297)
सबमिशन12/11/2026 10:58 AM (22 दिन पहले)
संयम04/12/2026 12:28 PM (22 days later)
स्थितिस्वीकृत
VulDB प्रविष्टि449691 [vgmstream तक r2117 streamfile_stdio.c fopen_win बफ़र ओवरफ़्लो]
अंक20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!