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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | imagemagick | 8:6.9.11.24+dfsg-1 | DEBIAN-CVE-2020-25664 |
| Debian:13 | imagemagick | 8:6.9.11.24+dfsg-1 | DEBIAN-CVE-2020-25664 |
| Debian:14 | imagemagick | 8:6.9.11.24+dfsg-1 | DEBIAN-CVE-2020-25664 |
| Ubuntu:25.10 | imagemagick | no fix listed | UBUNTU-CVE-2020-25664 |
| Ubuntu:26.10 | imagemagick | no fix listed | UBUNTU-CVE-2020-25664 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | ImageMagick | prior to 7.0.8-68prior to 6.9.10-68 |
Weakness: CWE-122
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1891605 x_refsource_MISC
- FEDORA-2021-b58af96f33 vendor-advisory, x_refsource_FEDORA