Vulnerabilities / CVE-2016-4564

critical

CVE-2016-4564

ImageMagick: Incorrect function call in attempting to locate the next token in DrawImage() function

Published Modified CWE 119
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat4.3AV:N/AC:M/Au:N/C:N/I:N/A:P

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Ubuntu (medium).

Description

The DrawImage function in MagickCore/draw.c in ImageMagick before 6.9.4-0 and 7.x before 7.0.1-2 makes an incorrect function call in attempting to locate the next token, which allows remote attackers to cause a denial of service (buffer overflow and application crash) or possibly have unspecified other impact via a crafted file.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.2imagemagick6.9.6.8-r0
alpine 3.3imagemagick6.9.6.8-r0
debian 11imagemagick8:6.9.6.2+dfsg-2
debian 12imagemagick8:6.9.6.2+dfsg-2
debian 13imagemagick8:6.9.6.2+dfsg-2
debian 14imagemagick8:6.9.6.2+dfsg-2
debian 7imagemagick8:6.7.7.10-5+deb7u8
debian 8imagemagick8:6.8.9.9-5+deb8u4
echoimagemagick8:6.9.6.2+dfsg-2
Red HatImageMagick, ImageMagick-c++, ImageMagick-c++-devel and 3 moreno fix listed
root.io debian 11rootio-imagemagick8:6.9.6.2+dfsg-2
root.io debian 12rootio-imagemagick8:6.9.6.2+dfsg-2
Show all 26 entries from 20 sources
SourcePackageFixed in
alpine 3.2imagemagick6.9.6.8-r0
alpine 3.3imagemagick6.9.6.8-r0
debian 11imagemagick8:6.9.6.2+dfsg-2
debian 12imagemagick8:6.9.6.2+dfsg-2
debian 13imagemagick8:6.9.6.2+dfsg-2
debian 14imagemagick8:6.9.6.2+dfsg-2
debian 7imagemagick8:6.7.7.10-5+deb7u8
debian 8imagemagick8:6.8.9.9-5+deb8u4
echoimagemagick8:6.9.6.2+dfsg-2
Red HatImageMagickno fix listed
Red HatImageMagick-c++no fix listed
Red HatImageMagick-c++-develno fix listed
Red HatImageMagick-develno fix listed
Red HatImageMagick-docno fix listed
Red HatImageMagick-perlno fix listed
root.io debian 11rootio-imagemagick8:6.9.6.2+dfsg-2
root.io debian 12rootio-imagemagick8:6.9.6.2+dfsg-2
root.io debian 13rootio-imagemagick8:6.9.6.2+dfsg-2
seal Red Hat 7imagemagick6.9.10.68-6.el7_9+sp999
seal Red Hat 7seal-imagemagick6.9.10.68-6.el7_9+sp999
ubuntu 12.04imagemagick8:6.6.9.7-5ubuntu3.5
ubuntu 14.04imagemagick8:6.7.7.10-6ubuntu3.2
ubuntu 14.04-ESMimagemagick8:6.7.7.10-6ubuntu3.2
ubuntu 16.04imagemagick8:6.8.9.9-7ubuntu5.2
ubuntu 16.04-ESMimagemagick8:6.8.9.9-7ubuntu5.2
ubuntu 16.10imagemagick8:6.8.9.9-7ubuntu8.1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.