CVE-2020-25664 Memory corruption in ImageMagick

Medium 6.1 Published Updated

An out-of-bounds write in ImageMagick allows attackers to cause denial of service and minor data integrity issues via crafted images.

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

CVE-2020-25664 is a medium-severity memory corruption vulnerability in Fedoraproject Fedora, 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

In WriteOnePNGImage() of the PNG coder at coders/png.c, an improper call to AcquireVirtualMemory() and memset() allows for an out-of-bounds write later when PopShortPixel() from MagickCore/quantum-private.h is called. The patch fixes the calls by adding 256 to rowbytes. An attacker who is able to supply a specially crafted image could affect availability with a low impact to data integrity. This flaw affects ImageMagick versions prior to 6.9.10-68 and 7.0.8-68.

Weakness: CWE-122

Which versions are affected by CVE-2020-25664?

It affects 2 products.

Products include Fedoraproject Fedora, Imagemagick Imagemagick.

How do I fix CVE-2020-25664?

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

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-25664, GHSA-c5hg-hx4v-7q6w, JLSEC-2026-841, UBUNTU-CVE-2020-25664.

Is CVE-2020-25664 in your software?

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

Check your SBOMs for free