CVE-2018-16413 json
ImageMagick 7.0.8-11 Q16 has a heap-based buffer over-read in the MagickCore/quantum-private.h PushShortPixel function when called from the…
published 8y ago modified 4mo ago also EUVD-2018-8253
- cvss
- 8.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.2%
- EPSS 4.2% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
ImageMagick 7.0.8-11 Q16 has a heap-based buffer over-read in the MagickCore/quantum-private.h PushShortPixel function when called from the coders/psd.c ParseImageResourceBlocks function.
Patch / fix
- imagemagick Debian 14, Debian 13, Debian 12 8:6.9.10.14+dfsg-1
debian advisories DEBIAN-CVE-2018-16413
- imagemagick Ubuntu 16.04 LTS 8:6.8.9.9-7ubuntu5.14
- imagemagick Ubuntu 18.04 LTS 8:6.9.7.4+dfsg-16ubuntu6.7
- imagemagick Ubuntu Pro 14.04 LTS 8:6.7.7.10-6ubuntu3.13+esm8
ubuntu advisories UBUNTU-CVE-2018-16413
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ImageMagick SLES 12 SP4, SLES 12 SP3, SLES 12 SP2-BCL +15 more 6.8.8.1-71.108.1
- ImageMagick SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 +1 more 6.4.3.6-78.92.1
- ImageMagick SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 6.4.3.6-78.74.1
- ImageMagick SLES for SAP 12 SP3, SLES 12 SP3, SLED 12 SP3 +2 more 6.8.8.1-71.79.1
- ImageMagick SLE Module for Development Tools 15, SLE Module for Desktop Applications 15 7.0.7.34-3.24.1
suse advisories SUSE-SU-2019:1033-2SUSE-SU-2019:1033-1SUSE-SU-2019:13993-1SUSE-SU-2018:3348-1SUSE-SU-2018:3095-1SUSE-SU-2018:2977-1
- imagemagick6 Alpine 3.16, Alpine 3.15, Alpine 3.14 +4 more 6.9.10.37-r0
- imagemagick6 Alpine 3.9, Alpine 3.8, Alpine 3.7 6.9.10.39-r0
alpine advisories ALPINE-CVE-2018-16413
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2018-16413 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-16413 updated cvss 3.3
ImageMagick: heap-based buffer over-read in the PushShortPixel function in MagickCore/quantum-private.h
-
Red Hat Enterprise Linux 5 ImageMagick Red Hat Enterprise Linux 6 ImageMagick, ImageMagick-c++, ImageMagick-perl Red Hat Enterprise Linux 7 ImageMagick, ImageMagick-c++, ImageMagick-perl Red Hat Enterprise Linux 8 ImageMagicknot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
4.17% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/ImageMagick/ImageMagick/issues/1251 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/ImageMagick/ImageMagick/issues/1249 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
github.com
/ImageMagick/ImageMagick/issues/1251
exploit, third-party-advisory
-
github.com
/ImageMagick/ImageMagick/issues/1249
exploit, third-party-advisory
-
debian.org
/security/2018/dsa-4316
vendor-advisory, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-05/msg00006.html
vendor-advisory
-
usn.ubuntu.com
/4034-1/
vendor-advisory
-
lists.debian.org
/debian-lts-announce/2018/10/msg00002.html
mailing-list, third-party-advisory
-
securityfocus.com
/bid/105241
vdb-entry, third-party-advisory
Sources
- CVE List CVE-2018-16413
- NVD CVE-2018-16413
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.