CVE-2020-25665 Memory corruption in ImageMagick

Medium 5.5 Published Updated

An out-of-bounds read in ImageMagick's PALM image coder can cause a denial of service due to improper memory allocation.

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-25665?

CVE-2020-25665 is a medium-severity memory corruption vulnerability in Debian Debian Linux, published on 8 Dec 2020. 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

The PALM image coder at coders/palm.c makes an improper call to AcquireQuantumMemory() in routine WritePALMImage() because it needs to be offset by 256. This can cause a out-of-bounds read later on in the routine. The patch adds 256 to bytes_per_row in the call to AcquireQuantumMemory(). This could cause impact to reliability. This flaw affects ImageMagick versions prior to 7.0.8-68.

Weakness: CWE-125, CWE-122

Which versions are affected by CVE-2020-25665?

It affects 2 products.

Products include Debian Debian Linux, Imagemagick Imagemagick.

How do I fix CVE-2020-25665?

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

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

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-25665, GHSA-jrw9-9g4g-6hxf, JLSEC-2026-842, UBUNTU-CVE-2020-25665.

Is CVE-2020-25665 in your software?

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

Check your SBOMs for free