| 标题 | vgmstream r2117 Buffer Overflow |
|---|
| 描述 | vgmstream r2117 contains a CWE-120 vulnerability in vgmstream_tags_reset() in
src/base/tags.c. The function copies an externally supplied target filename
with strcpy() into the fixed-size targetpath and targetname members without
checking the destination capacities. These buffers hold 2048 bytes, while the
surrounding codebase permits paths up to PATH_LIMIT (4096 bytes). An
application that processes an oversized attacker-controlled path can therefore
write beyond the destination buffer during tag initialization, corrupting
adjacent memory and potentially terminating the host process. Code execution
has not been demonstrated.
Affected component / root cause:
tags:vgmstream-tags-reset-unchecked-path-copy-to-fixed-buffers
The issue was corrected after r2117 by upstream commit
67e782297036508f28bf2dcda29760115f222269 (2026-07-31), which replaces the
unsafe fixed-buffer path handling:
https://github.com/vgmstream/vgmstream/commit/67e782297036508f28bf2dcda29760115f222269
CWE: CWE-120
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/1984 |
|---|
| 用户 | ni-liao (UID 98297) |
|---|
| 提交 | 2026-11-12 11時02分 (22 日前) |
|---|
| 管理 | 2026-12-04 12時28分 (22 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 449692 [vgmstream r2117 Tag src/base/tags.c vgmstream_tags_reset target_filename 内存损坏] |
|---|
| 积分 | 20 |
|---|