CVE-2020-27796 Memory corruption in upx

High 7.8 Published Updated

A heap-based buffer over-read in UPX allows attackers to cause a denial of service via a crafted Mach-O file.

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-2020-27796?

CVE-2020-27796 is a high-severity memory corruption vulnerability in upx, published on 25 Aug 2022. 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 heap-based buffer over-read was discovered in the invert_pt_dynamic function in p_lx_elf.cpp in UPX 4.0.0 via a crafted Mach-O file.

Weakness: CWE-125, CWE-119

Which versions are affected by CVE-2020-27796?

It affects 1 product.

Products include Upx Upx.

How do I fix CVE-2020-27796?

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-2020-27796 being exploited?

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

Sources

Also known as DEBIAN-CVE-2020-27796, GHSA-242r-jf27-g6pp, UBUNTU-CVE-2020-27796.

Is CVE-2020-27796 in your software?

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

Check your SBOMs for free