Vulnerability · Published Dec 8, 2020 · Assigned by redhat

CVE-2020-25664

Medium 6.1

In plain English

A medium-severity heap buffer overflow in ImageMagick. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)6.1Medium
Exploit odds (30 days)0.7%top 45.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12imagemagick8:6.9.11.24+dfsg-1DEBIAN-CVE-2020-25664
Debian:13imagemagick8:6.9.11.24+dfsg-1DEBIAN-CVE-2020-25664
Debian:14imagemagick8:6.9.11.24+dfsg-1DEBIAN-CVE-2020-25664
Ubuntu:25.10imagemagickno fix listedUBUNTU-CVE-2020-25664
Ubuntu:26.10imagemagickno fix listedUBUNTU-CVE-2020-25664

Affected products (as reported)

VendorProductVersions
n/a ImageMagick prior to 7.0.8-68prior to 6.9.10-68

Weakness: CWE-122

References