Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.5
CVE-2019-7397: ImageMagick and GraphicsMagick Memory Leaks in PDF Export
CVE-2019-7397 · published 7 years ago
Summary
ImageMagick and GraphicsMagick have memory leaks when exporting images to PDF. This means that the software may use up more and more memory over time, potentially slowing down or crashing. To protect against this, update to the latest version of ImageMagick or GraphicsMagick.
What to do
- Update canonical imagemagick to version 8:6.8.9.9-7ubuntu5.14.
- Update canonical imagemagick to version 8:6.9.7.4+dfsg-16ubuntu6.7.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | imagemagick | imagemagick |
< 6.9.10-25 >= 7.0.0-0, < 7.0.8-25 cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* |
| – | graphicsmagick | graphicsmagick |
<= 1.3.31 cpe:2.3:a:graphicsmagick:graphicsmagick:*:*:*:*:*:*:*:* |
| – | opensuse | leap |
15.0 cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:* |
| – | debian | debian_linux |
10.0 cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
| – | canonical | ubuntu_linux |
16.04 18.04 18.10 19.04 cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* |
| Ubuntu:16.04:LTS | canonical | imagemagick |
< 8:6.8.9.9-7ubuntu5.14 Fix: upgrade to 8:6.8.9.9-7ubuntu5.14
|
| Ubuntu:18.04:LTS | canonical | imagemagick |
< 8:6.9.7.4+dfsg-16ubuntu6.7 Fix: upgrade to 8:6.9.7.4+dfsg-16ubuntu6.7
|
Original advisory text
In ImageMagick before 7.0.8-25 and GraphicsMagick through 1.3.31, several memory leaks exist in WritePDFImage in coders/pdf.c.
In ImageMagick before 7.0.8-25 and GraphicsMagick through 1.3.31, several memory leaks exist in WritePDFImage in coders/pdf.c.
References
- http://hg.graphicsmagick.org/hg/GraphicsMagick/rev/11ad3aeb8ab1 Patch Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00034.html Broken Link Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00006.html Broken Link
- http://www.securityfocus.com/bid/106847 Third Party Advisory VDB Entry
- https://github.com/ImageMagick/ImageMagick/commit/306c1f0fa5754ca78efd16ab752f0e... Patch Third Party Advisory
- https://github.com/ImageMagick/ImageMagick/issues/1454 Exploit Patch Third Party Advisory
- https://usn.ubuntu.com/4034-1/ Third Party Advisory
- https://www.debian.org/security/2020/dsa-4712 Third Party Advisory
- https://ubuntu.com/security/CVE-2019-7397 Third Party Advisory
- https://ubuntu.com/security/notices/USN-4034-1 Vendor Advisory
- https://www.cve.org/CVERecord?id=CVE-2019-7397 Third Party Advisory
- https://ubuntu.com/security/notices/USN-7068-1 Vendor Advisory
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker partial control (estimated)
Type
CWE-401Memory Leak
Timeline
Published4 Feb 2019
Updated26 Nov 2026
First seen7 Aug 2026
Track software like this
Free during beta