Stack-based buffer overflow in libxmp - CVE-2025-47256

 

Stack-based buffer overflow in libxmp - CVE-2025-47256

Published: May 12, 2025 / Updated: June 6, 2025


Vulnerability identifier: #VU108913
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-47256
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the depack_pha() function in loaders/prowizard/pha.c. A remote attacker can pass a specially crafted .mod file to the application, trigger a stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

libxmp
Fedora
libxmp

How to mitigate CVE-2025-47256

Install update from vendor's website.

libxmp - update to 4.6.3
libxmp - addressed in versions 4.6.2-3.fc40, 4.6.2-3.fc41, 4.6.2-3.fc42, 4.6.3-2.el8

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins