目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2025-47256 PoC — Libxmp 安全漏洞

来源
关联漏洞
标题: Libxmp 安全漏洞 (CVE-2025-47256)
Description:Libxmp是Libxmp开源的一个将模块文件呈现为PCM数据的库。 Libxmp 4.6.2及之前版本存在安全漏洞,该漏洞源于loaders/prowizard/pha.c中depack_pha存在栈缓冲区溢出。
Description
Stack overflow in LibXMP
介绍
# CVE-2025-47256
Stack overflow in LibXMP

# Description
A stack-based buffer overflow vulnerability exists in the depack_pha() function of libxmp, a library for module music playback. The vulnerability is triggered when parsing malformed Pha Packer (PHA) module files.

Improper bounds checking on a local stack buffer allows an attacker to write data outside the bounds of the array, potentially leading to denial-of-service (DoS), and in certain conditions, remote code execution (RCE).

Build:
`gcc -g -O0 -I./libxmp/include poc.c poc_data.h ./libxmp/lib/libxmp.a -lm -lz -o poc_crasher`

# Vulnerability Type
Stack Buffer Overflow

# Vendor
libxmp project
GitHub: https://github.com/libxmp/libxmp
Issue: https://github.com/libxmp/libxmp/issues/847

# Affected Component
src/loaders/prowizard/pha.c
Function: depack_pha()

# Impacts
Denial of Service (DoS)
Potential Remote Code Execution (RCE) under specific build or runtime conditions

# Attack Vectors
An attacker can craft a malicious .mod or .pha file in Pha Packer format and feed it to any application linked with libxmp. The malformed file causes a stack buffer overflow during pattern parsing in depack_pha().

# Vendor Acknowledgment
This issue is in the process of being reported to the libxmp maintainers via GitHub Issues.

# Discoverer
Gareth C - https://www.anchorsec.co.uk
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →