What’s Vulnerable › Vulnerabilities
CVE-2018-16749
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2018-09-09 · updated 2026-06-17
- Weakness: CWE-476
Description
In ImageMagick 7.0.7-29 and earlier, a missing NULL check in ReadOneJNGImage in coders/png.c allows an attacker to cause a denial of service (WriteBlob assertion failure and application exit) via a crafted file.
Affected products
- Canonical Ubuntu Linux: 14.04, 16.04, 18.04
- Debian Linux: 8.0, 9.0
- ImageMagick: before 6.9.9-42; from 7.0.0-0 through 7.0.7-29 — fixed in 6.9.9-42
How to fix
Upgrade to a fixed version: ImageMagick 6.9.9-42. Check the vendor advisory for mitigations.
References
- https://github.com/ImageMagick/ImageMagick/issues/1119
- https://github.com/ImageMagick/ImageMagick6/commit/1007b98f8795ad4bea6bc5f68a32d83e982fdae4
- https://lists.debian.org/debian-lts-announce/2018/10/msg00002.html
- https://lists.debian.org/debian-lts-announce/2020/09/msg00007.html
- https://usn.ubuntu.com/3785-1/
- https://github.com/ImageMagick/ImageMagick/issues/1119
- https://github.com/ImageMagick/ImageMagick6/commit/1007b98f8795ad4bea6bc5f68a32d83e982fdae4
- https://lists.debian.org/debian-lts-announce/2018/10/msg00002.html
- https://lists.debian.org/debian-lts-announce/2020/09/msg00007.html
- https://usn.ubuntu.com/3785-1/
Get alerted when CVE-2018-16749 or the next vulnerability affects your stack