cve.bz

CVE-2018-16643 Unchecked Return Value

6.5 mediumEPSS 3.1%Fix available

Medium (6.5). EPSS 3.1% estimated probability of exploitation activity in the next 30 days.

On this page
The functions ReadDCMImage in coders/dcm.c, ReadPWPImage in coders/pwp.c, ReadCALSImage in coders/cals.c, and ReadPICTImage in coders/pict.c in ImageMagick 7.0.8-4 do not check the return value of the fputc function, which allows remote attackers to cause a denial of service via a crafted image file.

Severity

CVSS 3.0

6.5 medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
3.1% (unchanged from 3.1% a week ago; 3.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-252 Unchecked Return Value
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-16643 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-16643?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-16643?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-16643 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
imagemagick:imagemagick7.0.8-4
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
debian:debian_linux8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8imagemagick8:6.8.9.9-5+deb8u14DLA-1530-1
Debian9imagemagick8:6.9.7.4+dfsg-11+deb9u10DLA-2366-1
Debian12, 13, 14imagemagick8:6.9.10.8+dfsg-1DEBIAN-CVE-2018-16643
Ubuntu14.04:LTSimagemagick8:6.7.7.10-6ubuntu3.13UBUNTU-CVE-2018-16643 USN-3785-1
Ubuntu16.04:LTSimagemagick8:6.8.9.9-7ubuntu5.13UBUNTU-CVE-2018-16643 USN-3785-1
Ubuntu18.04:LTSimagemagick8:6.9.7.4+dfsg-16ubuntu6.4UBUNTU-CVE-2018-16643 USN-3785-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moreImageMagick, ImageMagick-c++, ImageMagick-doc and 4 more0:6.9.10.68-3.el7RHSA-2020:1180
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moreautotrace, autotrace-devel, autotrace-debuginfo0:0.31.1-38.el7RHSA-2020:1180
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moreemacs, emacs-el, emacs-nox and 4 more1:24.3-23.el7RHSA-2020:1180
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moreinkscape, inkscape-docs, inkscape-view and 1 more0:0.92.2-3.el7RHSA-2020:1180
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP3, Linux Enterprise Server for SAP Applications 12 SP3 and 2 moreImageMagick6.8.8.1-71.79.1SUSE-SU-2018:3095-1
SUSELinux Enterprise Module for Desktop Applications 15, Linux Enterprise Module for Development Tools 15ImageMagick7.0.7.34-3.24.1SUSE-SU-2018:2977-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4ImageMagick6.4.3.6-78.74.1SUSE-SU-2018:3348-1
SUSELinux Enterprise Software Development Kit 11 SP4, Studio Onsite 1.3GraphicsMagick1.2.5-78.72.1SUSE-SU-2018:3269-1
Alpinev3.7, v3.8, v3.9imagemagick66.9.10.39-r0ALPINE-CVE-2018-16643
Alpinev3.10, v3.11, v3.12 and 4 moreimagemagick66.9.10.37-r0ALPINE-CVE-2018-16643

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This issue affects the versions of ImageMagick as shipped with Red Hat Enterprise Linux 5, 6, and 7.

Red Hat Enterprise Linux 5 is now in Extended Life Phase of the support and maintenance life cycle. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

Red Hat Enterprise Linux 6 is now in Maintenance Support 2 Phase of the support and maintenance life cycle. This has been rated as having a security impact of Low, and is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7autotrace-0:0.31.1-38.el7Fixed 2020-03-31RHSA-2020:1180
Red Hat Enterprise Linux 7emacs-1:24.3-23.el7Fixed 2020-03-31RHSA-2020:1180
Red Hat Enterprise Linux 7ImageMagick-0:6.9.10.68-3.el7Fixed 2020-03-31RHSA-2020:1180
Red Hat Enterprise Linux 7inkscape-0:0.92.2-3.el7Fixed 2020-03-31RHSA-2020:1180
Red Hat Enterprise Linux 5ImageMagickWill not fix
Red Hat Enterprise Linux 6ImageMagickWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-16643.

References

Check your stackJSON