CVE-2020-25664: Medium severity imagemagick vulnerability

Published Oct 26, 2020
·
Updated

In ImageMagick, there is a heap-buffer-overflow at MagickCore/quantum-private.h:227:12 in PopShortPixel.

Reference: https://github.com/ImageMagick/ImageMagick/issues/1716

Upstream patch: https://github.com/ImageMagick/ImageMagick/commit/1f450bb5ba53d275de6d1cd086c98a0b549ad393

Other sources

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.

Launchpad

Affected Software

6 affected componentsFixes available
redhat/ImageMagick 7.0.8<68
68
redhat/ImageMagick 6.9.10<68
68
ImageMagick<6.9.10-68
ImageMagick>=7.0.8<7.0.8-68
fedoraproject fedora=34
debian/imagemagick
8:6.9.11.60+dfsg-1.3+deb11u48:6.9.11.60+dfsg-1.3+deb11u58:6.9.11.60+dfsg-1.6+deb12u28:6.9.11.60+dfsg-1.6+deb12u18:7.1.1.43+dfsg1-18:7.1.1.47+dfsg1-1

Event History

Dec 8, 2020
CVE Published
via MITRE·08:57 PM
Data Sourced
via MITRE·08:57 PM
DescriptionWeakness
Jan 11, 2024
Data Sourced
via Launchpad·11:46 PM
Description
Oct 22, 2024
Data Sourced
via Ubuntu·01:54 AM
RemedyDescriptionSeverityAffected Software
Apr 12, 2025
Data Sourced
via Debian·04:19 AM
DescriptionAffected Software

Frequently Asked Questions

1

What is CVE-2020-25664?

CVE-2020-25664 is a vulnerability in the PNG coder of ImageMagick that allows for an out-of-bounds write and can be exploited by an attacker.

2

How severe is CVE-2020-25664?

CVE-2020-25664 has a severity rating of 6.1 (medium).

3

What software is affected by CVE-2020-25664?

ImageMagick versions 8:6.9.11.24+dfsg-1 and earlier, 8:6.8.9.9-7ubuntu5.16+ and earlier, ImageMagick 7.0.8-68 and earlier, and ImageMagick 6.9.10-68 and earlier are affected.

4

How can I fix CVE-2020-25664?

To fix CVE-2020-25664, update ImageMagick to version 8:6.9.11.24+dfsg-1.3+deb11u1 or 8:6.9.11.60+dfsg-1.6 or later.

5

Where can I find more information about CVE-2020-25664?

You can find more information about CVE-2020-25664 on the CVE Mitre website, Ubuntu security notices, and NIST NVD.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203