CVE-2020-25664Heap-based Buffer Overflow in Imagemagick

Severity
6.1MEDIUMNVD
OSV6.5
EPSS
0.1%
top 79.53%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedDec 8
Latest updateOct 15

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.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:HExploitability: 1.8 | Impact: 4.2

Affected Packages5 packages

debiandebian/imagemagick< imagemagick 8:6.9.11.24+dfsg-1 (bookworm)
NVDimagemagick/imagemagick7.0.87.0.8-68+1
Debianimagemagick/imagemagick< 8:6.9.11.24+dfsg-1+3
Ubuntuimagemagick/imagemagick< 8:6.8.9.9-7ubuntu5.16+esm2
CVEListV5imagemagick/imagemagickprior to 6.9.10-68, prior to 7.0.8-68+1

Also affects: Fedora 34

Patches

🔴Vulnerability Details

3
GHSA
GHSA-c5hg-hx4v-7q6w: In WriteOnePNGImage() of the PNG coder at coders/png2022-05-24
OSV
imagemagick vulnerabilities2022-03-18
OSV
CVE-2020-25664: In WriteOnePNGImage() of the PNG coder at coders/png2020-12-08

📋Vendor Advisories

4
Ubuntu
ImageMagick vulnerabilities2024-10-15
Ubuntu
ImageMagick vulnerabilities2022-03-18
Debian
CVE-2020-25664: imagemagick - In WriteOnePNGImage() of the PNG coder at coders/png.c, an improper call to Acqu...2020
Red Hat
ImageMagick: heap-based buffer overflow in PopShortPixel in MagickCore/quantum-private.h2019-10-04

💬Community

2
Bugzilla
CVE-2020-27752 ImageMagick: heap-based buffer overflow in PopShortPixel in MagickCore/quantum-private.h2020-11-03
Bugzilla
CVE-2020-25664 ImageMagick: heap-based buffer overflow in PopShortPixel in MagickCore/quantum-private.h2020-10-26