CVE-2021-43311 Memory corruption in upx

High 7.5 Published Updated

A heap-based buffer overflow in UPX allows attackers to execute arbitrary code or cause denial of service 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-43311?

CVE-2021-43311 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 overflow was discovered in upx, during the generic pointer 'p' points to an inaccessible address in func get_le32(). The problem is essentially caused in PackLinuxElf32::elf_lookup() at p_lx_elf.cpp:5382.

Weakness: CWE-787, CWE-119

Which versions are affected by CVE-2021-43311?

It affects 1 product.

Products include Upx Upx.

How do I fix CVE-2021-43311?

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-43311 being exploited?

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

Sources

Also known as DEBIAN-CVE-2021-43311, GHSA-2586-p5rg-fxqv, UBUNTU-CVE-2021-43311.

Is CVE-2021-43311 in your software?

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

Check your SBOMs for free