Skip to content
OpenAdvisories
Unscored CVE-2020-25664 EUVD-2020-18326GHSA-c5hg-hx4v-7q6w

In WriteOnePNGImage() of the PNG coder at coders/png.c, an improper call to AcquireVirtualMemory() and memset() allows for an out-of-bounds…

Published Dec 8, 2020 · Updated Aug 4, 2024 · Assigned by redhat

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 products

VendorProductAffectedFixed
— ImageMagick prior to 7.0.8-68, prior to 6.9.10-68 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 imagemagick 8:6.9.11.24+dfsg-1 —
Debian 13 imagemagick 8:6.9.11.24+dfsg-1 —
Debian 12 imagemagick 8:6.9.11.24+dfsg-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 imagemagick No fix yet —
Ubuntu 25.10 imagemagick No fix yet —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS imagemagick No fix yet —
Ubuntu Pro 24.04 LTS imagemagick No fix yet —
Ubuntu Pro 22.04 LTS imagemagick No fix yet —
Ubuntu Pro 20.04 LTS imagemagick No fix yet —
Ubuntu Pro 18.04 LTS imagemagick No fix yet —
Ubuntu Pro 16.04 LTS imagemagick 8:6.8.9.9-7ubuntu5.16+esm2 USN-7068-1, USN-5335-1
Ubuntu Pro 14.04 LTS imagemagick 8:6.7.7.10-6ubuntu3.13+esm11 USN-7068-1
ReleasePackageFixed inAdvisory
SLES 15 SP2 ImageMagick 7.0.7.34-10.9.1 SUSE-SU-2021:0153-1
SLES 15 SP1 ImageMagick 7.0.7.34-3.90.1 SUSE-SU-2021:0156-1
SLES 15 ImageMagick 7.0.7.34-3.90.1 SUSE-SU-2021:0156-1
SLES 12 SP5 ImageMagick 6.8.8.1-71.154.1 SUSE-SU-2021:0199-1
SLES 12 SP4 ImageMagick 6.8.8.1-71.154.1 SUSE-SU-2021:0199-1
Show 23 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP3 ImageMagick 6.8.8.1-71.154.1 SUSE-SU-2021:0199-1
SLES 12 SP2 ImageMagick 6.8.8.1-71.154.1 SUSE-SU-2021:0199-1
SLES 11 SP4 ImageMagick 6.4.3.6-78.135.1 SUSE-SU-2021:14598-1
SLES for SAP 15 SP1 ImageMagick 7.0.7.34-3.90.1 SUSE-SU-2021:0156-1
SLES for SAP 15 ImageMagick 7.0.7.34-3.90.1 SUSE-SU-2021:0156-1
SLES for SAP 12 SP5 ImageMagick 6.8.8.1-71.154.1 SUSE-SU-2021:0199-1
SLES for SAP 12 SP4 ImageMagick 6.8.8.1-71.154.1 SUSE-SU-2021:0199-1
SLES for SAP 12 SP3 ImageMagick 6.8.8.1-71.154.1 SUSE-SU-2021:0199-1
SLES for SAP 12 SP2 ImageMagick 6.8.8.1-71.154.1 SUSE-SU-2021:0199-1
SLE HPC 15 SP1 ImageMagick 7.0.7.34-3.90.1 SUSE-SU-2021:0156-1
SLE HPC 15 ImageMagick 7.0.7.34-3.90.1 SUSE-SU-2021:0156-1
SUSE OpenStack Cloud Crowbar 9 ImageMagick 6.8.8.1-71.154.1 SUSE-SU-2021:0199-1
SUSE OpenStack Cloud Crowbar 8 ImageMagick 6.8.8.1-71.154.1 SUSE-SU-2021:0199-1
SUSE OpenStack Cloud 9 ImageMagick 6.8.8.1-71.154.1 SUSE-SU-2021:0199-1
SUSE OpenStack Cloud 8 ImageMagick 6.8.8.1-71.154.1 SUSE-SU-2021:0199-1
SUSE OpenStack Cloud 7 ImageMagick 6.8.8.1-71.154.1 SUSE-SU-2021:0199-1
SUSE Manager Server 4.0 ImageMagick 7.0.7.34-3.90.1 SUSE-SU-2021:0156-1
SUSE Manager Retail Branch Server 4.0 ImageMagick 7.0.7.34-3.90.1 SUSE-SU-2021:0156-1
SUSE Manager Proxy 4.0 ImageMagick 7.0.7.34-3.90.1 SUSE-SU-2021:0156-1
SUSE Linux Enterprise Point of Sale 11 SP3 ImageMagick 6.4.3.6-78.135.1 SUSE-SU-2021:14598-1
SUSE HPE Helion OpenStack 8 ImageMagick 6.8.8.1-71.154.1 SUSE-SU-2021:0199-1
SUSE Enterprise Storage 6 ImageMagick 7.0.7.34-3.90.1 SUSE-SU-2021:0156-1
SUSE Enterprise Storage 5 ImageMagick 6.8.8.1-71.154.1 SUSE-SU-2021:0199-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.2 ImageMagick 7.0.7.34-lp152.12.9.1 openSUSE-SU-2021:0136-1
openSUSE Leap 15.1 ImageMagick 7.0.7.34-lp151.7.26.1 openSUSE-SU-2021:0148-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 ImageMagick +5 6.9.10.68-3.amzn2.0.1 ALAS2-2020-1497

Advisories 9

References