Heap-based buffer overflow in UPX - CVE-2025-2849

 

Heap-based buffer overflow in UPX - CVE-2025-2849

Published: March 31, 2025


Vulnerability identifier: #VU106281
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-2849
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit 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 PackLinuxElf64::un_DT_INIT() function in p_lx_elf.cpp. A remote attacker can trick the victim into using a specially crafted file, trigger a heap-based buffer overflow and execute arbitrary code on the target system.


Affected software

UPX
Fedora
upx

How to mitigate CVE-2025-2849

Install updates from vendor's website.

upx - addressed in versions 5.0.0-1.el9, 5.0.0-1.fc40, 5.0.0-1.fc41, 5.0.0-1.fc42

External References

Related Security Bulletins