Skip to content
Fencer Intel
high 7.5

CVE-2019-7397 json

In ImageMagick before 7.0.8-25 and GraphicsMagick through 1.3.31, several memory leaks exist in WritePDFImage in coders/pdf.c.

published 2019-02-05 7 y ago modified 2026-07-30 3 mo ago also EUVD-2019-16939 , JLSEC-2026-838

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
3.8%
EPSS 3.8% chance of exploitation in 30 days, percentile 90%
public exploits
0
none known

Summary

In ImageMagick before 7.0.8-25 and GraphicsMagick through 1.3.31, several memory leaks exist in WritePDFImage in coders/pdf.c.

Patch / fix

  • julia ImageMagick_jll 6.9.12+0
  • imagemagick imagemagick 6.9.10-25, 7.0.8-25
  • imagemagick Debian 14, Debian 13, Debian 12 8:6.9.11.24+dfsg-1
  • graphicsmagick Debian 14, Debian 13, Debian 12 1.4~hg15896-1

debian advisories DEBIAN-CVE-2019-7397

  • 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

ubuntu advisories UBUNTU-CVE-2019-7397

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 RHEL 7 6.9.10.68-3.el7
  • emacs RHEL 7 1:24.3-23.el7
  • emacs-el RHEL 7 1:24.3-23.el7
  • inkscape RHEL 7 0.92.2-3.el7
  • autotrace RHEL 7 0.31.1-38.el7
  • emacs-nox RHEL 7 1:24.3-23.el7
  • emacs-common RHEL 7 1:24.3-23.el7
  • inkscape-view RHEL 7 0.92.2-3.el7

red hat advisories RHSA-2020:1180

  • ImageMagick SLES 12 SP4, SLES 12 SP3, SLES 12 SP2-BCL +15 more 6.8.8.1-71.108.1
  • GraphicsMagick Studio Onsite 1.3, SLE Software Development Kit 11 SP4 1.2.5-78.85.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 SLE Module for Development Tools 15, SLE Module for Desktop Applications 15 7.0.7.34-3.49.4

suse advisories SUSE-SU-2019:1033-2SUSE-SU-2019:1033-1SUSE-SU-2019:13995-1SUSE-SU-2019:13993-1SUSE-SU-2019:0739-1

  • ImageMagick openSUSE Leap 15.0 7.0.7.34-lp150.2.26.1
  • GraphicsMagick Package Hub 15 1.3.29-bp150.2.15.1

opensuse advisories openSUSE-SU-2019:1141-1openSUSE-SU-2019:0235-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
  • graphicsmagick Alpine 3.24, Alpine 3.23, Alpine 3.22 +12 more 1.3.32-r0

alpine advisories ALPINE-CVE-2019-7397

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2019-7397 updated cvss 3.3

ImageMagick: Memory leak in the WritePDFImage function in coders/pdf.c

  • Red Hat Enterprise Linux 5 ImageMagick Red Hat Enterprise Linux 6 ImageMagick, ImageMagick-c++, ImageMagick-perl
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux Client (v. 7) emacs 24.3-23.el7, emacs-nox 24.3-23.el7, inkscape 0.92.2-3.el7, emacs-common 24.3-23.el7, ImageMagick 6.9.10.68-3.el7, emacs-filesystem 24.3-23.el7, +1 more Red Hat Enterprise Linux Client Optional (v. 7) emacs-el 24.3-23.el7, autotrace 0.31.1-38.el7, emacs-terminal 24.3-23.el7, inkscape-view 0.92.2-3.el7, ImageMagick-perl 6.9.10.68-3.el7 Red Hat Enterprise Linux ComputeNode (v. 7) emacs 24.3-23.el7, emacs-filesystem 24.3-23.el7 Red Hat Enterprise Linux ComputeNode Optional (v. 7) emacs 24.3-23.el7, emacs-el 24.3-23.el7, emacs-nox 24.3-23.el7, inkscape 0.92.2-3.el7, autotrace 0.31.1-38.el7, emacs-common 24.3-23.el7, +5 more Red Hat Enterprise Linux Server (v. 7) emacs 24.3-23.el7, emacs-nox 24.3-23.el7, inkscape 0.92.2-3.el7, emacs-common 24.3-23.el7, ImageMagick 6.9.10.68-3.el7, emacs-filesystem 24.3-23.el7, +2 more Red Hat Enterprise Linux Server Optional (v. 7) emacs-el 24.3-23.el7, inkscape 0.92.2-3.el7, autotrace 0.31.1-38.el7, emacs-terminal 24.3-23.el7, inkscape-view 0.92.2-3.el7, ImageMagick-c++ 6.9.10.68-3.el7
    +2 more products
    Red Hat Enterprise Linux Workstation (v. 7) emacs 24.3-23.el7, emacs-nox 24.3-23.el7, inkscape 0.92.2-3.el7, emacs-common 24.3-23.el7, ImageMagick 6.9.10.68-3.el7, emacs-filesystem 24.3-23.el7, +2 more Red Hat Enterprise Linux Workstation Optional (v. 7) emacs-el 24.3-23.el7, autotrace 0.31.1-38.el7, emacs-terminal 24.3-23.el7, inkscape-view 0.92.2-3.el7
    fixed: vendor fix RHSA-2020:1180

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

3.80% 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/1454 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P
OSV 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
julia ImageMagick_jll
<6.9.12+0
6.9.12+0

Classification

Weakness
  • CWE-401 Missing Release of Memory after Effective Lifetime

References

Sources

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.