cve.bz

CVE-2018-6405

6.5 mediumExploit referenceEPSS 1.7%Fix available

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

On this page
In the ReadDCMImage function in coders/dcm.c in ImageMagick before 7.0.7-23, each redmap, greenmap, and bluemap variable can be overwritten by a new pointer. The previous pointer is lost, which leads to a memory leak. This allows remote attackers to cause a denial of service.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
1.7% (unchanged from 1.7% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-772 Missing Release of Resource after Effective Lifetime
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-6405 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-6405?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-6405?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-6405 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.9-35
imagemagick:imagemagickfrom 7.0.0-0 before 7.0.7-23
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
canonical:ubuntu_linux18.04

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14imagemagick8:6.9.9.34+dfsg-3DEBIAN-CVE-2018-6405
Ubuntu14.04:LTSimagemagick8:6.7.7.10-6ubuntu3.11UBUNTU-CVE-2018-6405 USN-3681-1
Ubuntu16.04:LTSimagemagick8:6.8.9.9-7ubuntu5.11UBUNTU-CVE-2018-6405 USN-3681-1
Ubuntu18.04:LTSimagemagick8:6.9.7.4+dfsg-16ubuntu6.2UBUNTU-CVE-2018-6405 USN-3681-1
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP2 and 8 moreImageMagick6.8.8.1-71.42.1SUSE-SU-2018:0581-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.78.34.1SUSE-SU-2018:0486-1
SUSELinux Enterprise Software Development Kit 11 SP4, Studio Onsite 1.3GraphicsMagick1.2.5-4.78.38.1SUSE-SU-2018:0524-1
SUSELinux Enterprise Software Development Kit 11 SP4, Studio Onsite 1.3GraphicsMagick1.2.5-78.78.1SUSE-SU-2019:13923-1
Alpinev3.7, v3.8, v3.9imagemagick66.9.10.39-r0ALPINE-CVE-2018-6405
Alpinev3.10, v3.11, v3.12 and 4 moreimagemagick66.9.10.37-r0ALPINE-CVE-2018-6405

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; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · Alpine.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5ImageMagickWill not fix
Red Hat Enterprise Linux 6ImageMagickWill not fix
Red Hat Enterprise Linux 7ImageMagickWill not fix
Red Hat Enterprise Linux 8ImageMagickWill 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-6405.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON