CVE-2021-20285 Memory corruption in upx

Medium 6.6 Published Updated

Attackers can cause a denial of service via a crafted ELF file processed by the UPX executable packer.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-20285?

CVE-2021-20285 is a medium-severity memory corruption vulnerability in upx, published on 26 Mar 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

A flaw was found in upx canPack in p_lx_elf.cpp in UPX 3.96. This flaw allows attackers to cause a denial of service (SEGV or buffer overflow and application crash) or possibly have unspecified other impacts via a crafted ELF. The highest threat from this vulnerability is to system availability.

Weakness: CWE-787, CWE-119

Which versions are affected by CVE-2021-20285?

It affects 1 product.

Products include Upx Upx.

How do I fix CVE-2021-20285?

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

There is no known exploitation of CVE-2021-20285 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2021-20285, GHSA-9235-qgm5-877x, UBUNTU-CVE-2021-20285.

Is CVE-2021-20285 in your software?

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

Check your SBOMs for free