SecurityContext

CVE-2018-6405: ImageMagick - Memory Leak

  • Cve: CVE-2018-6405
  • Name: ImageMagick - Memory Leak
  • Description: 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.
  • Impact: Attackers can cause denial of service by exhausting memory resources, leading to application crash or slowdown.
  • Remediation: Update to version 7.0.7-23 or later to fix the memory leak issue.
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Epss score: 0.01667
  • Epss percentile: 0.77362
  • Assignee: [email protected]
  • Published at: 2018-01-30T21:29:00Z
  • Age in days: 3220
  • Modified at: 2026-06-17T02:01:48Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-6405
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-772Missing Release of Resource after Effective Lifetime

Public exploits

UrlSourceAdded date
https://github.com/ImageMagick/ImageMagick/issues/964nvd2018-01-30

References

UrlSourceTags
https://github.com/ImageMagick/ImageMagick/issues/964nvdExploit, Issue Tracking, Patch, Third Party Advisory
https://usn.ubuntu.com/3681-1/nvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
imagemagick:imagemagick< 6.9.9-35; >= 7.0.0-0, < 7.0.7-23nonvd/v1/products/imagemagick/imagemagick
canonical:ubuntu_linux= 18.04, = 17.10, = 16.04, = 14.04nonvd/v1/products/canonical/ubuntu_linux

Projects

RepositoryLink kindsIndexedUrl
ImageMagick/ImageMagickfix, issuesyes/v1/repositories/ImageMagick/ImageMagick

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2018-01-30
  • Remote: yes
  • Exposed hosts: 21216412
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports