cve.bz

CVE-2017-9098 Use of Uninitialized Resource

7.5 highExploit referenceEPSS 3.6%Fix available

High (7.5). EPSS 3.6% estimated probability of exploitation activity in the next 30 days.

On this page
ImageMagick before 7.0.5-2 and GraphicsMagick before 1.3.24 use uninitialized memory in the RLE decoder, allowing an attacker to leak sensitive information from process memory space, as demonstrated by remote attacks against ImageMagick code in a long-running server process that converts image data on behalf of multiple users. This is caused by a missing initialization step in the ReadRLEImage function in coders/rle.c.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
3.6% (unchanged from 3.6% a week ago; 3.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-908 Use of Uninitialized Resource
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-2017-9098 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-9098?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-9098?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-2017-9098 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:imagemagickbefore 6.9.8-1
imagemagick:imagemagickfrom 7.0.0-0 before 7.0.5-2
graphicsmagick:graphicsmagickbefore 1.3.24
debian:debian_linux8.0
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7graphicsmagick1.3.16-1.1+deb7u7DLA-953-1
Debian7imagemagick8:6.7.7.10-5+deb7u13DLA-960-1
Debian8graphicsmagick1.3.20-3+deb8u4DLA-1456-1
Debian8imagemagick8:6.8.9.9-5+deb8u9DSA-3863-1
Debian12, 13, 14graphicsmagick1.3.24-1DEBIAN-CVE-2017-9098
Debian12, 13, 14imagemagick8:6.9.7.4+dfsg-9DEBIAN-CVE-2017-9098
Ubuntu14.04:LTSimagemagick8:6.7.7.10-6ubuntu3.7UBUNTU-CVE-2017-9098 USN-3302-1
Ubuntu16.04:LTSimagemagick8:6.8.9.9-7ubuntu5.7UBUNTU-CVE-2017-9098 USN-3302-1
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Server 12 SP2, Linux Enterprise Server for Raspberry Pi 12 SP2 and 3 moreImageMagick6.8.8.1-70.1SUSE-SU-2017:1489-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4ImageMagick6.4.3.6-7.77.1SUSE-SU-2017:1599-1
SUSELinux Enterprise Software Development Kit 11 SP4, Studio Onsite 1.3GraphicsMagick1.2.5-4.77.1SUSE-SU-2017:1600-1

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

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Product Security has rated this issue as having Moderate security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

Red Hat's mitigation

Forcefully disable the RLE decoder from being used, for example by renaming ImageMagick's rle.so library:

RHEL6 mitigation:

32bit:

mv /usr/lib/ImageMagick-6.7.2/modules-Q16/coders/rle.so /usr/lib/ImageMagick-6.7.2/modules-Q16/coders/rle.so.CVE-2017-9098

64bit:

mv /usr/lib64/ImageMagick-6.7.2/modules-Q16/coders/rle.so /usr/lib64/ImageMagick-6.7.2/modules-Q16/coders/rle.so.CVE-2017-9098

RHEL7 mitigation:

32bit:

mv /usr/lib/ImageMagick-6.7.8/modules-Q16/coders/rle.so /usr/lib/ImageMagick-6.7.8/modules-Q16/coders/rle.so.CVE-2017-9098

64bit:

mv /usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/rle.so /usr/lib64/ImageMagick-6.7.8/modules-Q16/coders/rle.so.CVE-2017-9098

If you are using the glibc heap implementation (default), it may also be possible to set the "MALLOC_PERTURB_" environment variable to a non-zero value before launching the process using ImageMagick. This should forcefully initialize the memory, but may reduce performance. Ensure proper testing before using these methods.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5ImageMagickWill not fix
Red Hat Enterprise Linux 6ImageMagickWill not fix
Red Hat Enterprise Linux 7ImageMagickWill not fix
Red Hat OpenShift Enterprise 2ImageMagickWill 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-2017-9098.

References

Check your stackJSON