CVE-2021-43317 Memory corruption in upx

High 7.5 Published Updated

A heap-based buffer overflow in UPX allows attackers to cause denial of service or potentially execute arbitrary code via crafted ELF files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-43317?

CVE-2021-43317 is a high-severity memory corruption vulnerability in upx, published on 24 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A heap-based buffer overflows was discovered in upx, during the generic pointer 'p' points to an inaccessible address in func get_le32(). The problem is essentially caused in PackLinuxElf64::elf_lookup() at p_lx_elf.cpp:5404

Weakness: CWE-787, CWE-119

Which versions are affected by CVE-2021-43317?

It affects 1 product.

Products include Upx Upx.

How do I fix CVE-2021-43317?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-43317 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-43317 exists.

Sources

Also known as DEBIAN-CVE-2021-43317, GHSA-fg24-8xq8-v4pp, UBUNTU-CVE-2021-43317.

Is CVE-2021-43317 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free