Your submission was sent successfully! Close

CVE-2020-25674

Published: 08 December 2020

WriteOnePNGImage() from coders/png.c (the PNG coder) has a for loop with an improper exit condition that can allow an out-of-bounds READ via heap-buffer-overflow. This occurs because it is possible for the colormap to have less than 256 valid values but the loop condition will loop 256 times, attempting to pass invalid colormap data to the event logger. The patch replaces the hardcoded 256 value with a call to MagickMin() to ensure the proper value is used. This could impact application availability when a specially crafted input file is processed by ImageMagick. This flaw affects ImageMagick versions prior to 7.0.8-68.

Priority

Low

CVSS 3 base score: 5.5

Status

Package Release Status
imagemagick
Launchpad, Ubuntu, Debian
Upstream
Released (8:6.9.11.24+dfsg-1)
Ubuntu 21.10 (Impish Indri) Not vulnerable
(8:6.9.11.60+dfsg-1ubuntu1)
Ubuntu 21.04 (Hirsute Hippo) Not vulnerable
(8:6.9.11.60+dfsg-1ubuntu1)
Ubuntu 20.04 LTS (Focal Fossa)
Released (8:6.9.10.23+dfsg-2.1ubuntu11.4)
Ubuntu 18.04 LTS (Bionic Beaver)
Released (8:6.9.7.4+dfsg-16ubuntu6.11)
Ubuntu 16.04 ESM (Xenial Xerus) Needs triage

Ubuntu 14.04 ESM (Trusty Tahr) Does not exist

Patches:
Upstream: https://github.com/ImageMagick/ImageMagick6/commit/2fdff8e040cd4401498d89f3c3d1f89cffd118b0