CVE-2018-9018
In GraphicsMagick 1.3.28, there is a divide-by-zero in the ReadMNGImage function of coders/png.c....
In GraphicsMagick 1.3.28, there is a divide-by-zero in the ReadMNGImage function of coders/png.c. Remote attackers could leverage this vulnerability to cause a crash and denial of service via a crafted mng file.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.5
In GraphicsMagick 1.3.28, there is a divide-by-zero in the ReadMNGImage function of coders/png.c. Remote attackers could leverage this vulnerability to cause a crash and denial of service via a crafted mng file.
- Record
CVE-2018-9018- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-369
- Updated
- 2026-11-02
CVE List No score
In GraphicsMagick 1.3.28, there is a divide-by-zero in the ReadMNGImage function of coders/png.c. Remote attackers could leverage this vulnerability to cause a crash and denial of service via a crafted mng file.
- Record
CVE-2018-9018- Updated
- 2026-11-02
EUVDEUVD-2018-20623 No score
In GraphicsMagick 1.3.28, there is a divide-by-zero in the ReadMNGImage function of coders/png.c. Remote attackers could leverage this vulnerability to cause a crash and denial of service via a crafted mng file.
- Record
EUVD-2018-20623- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-4w24-2qm8-wfcm
6.5
In GraphicsMagick 1.3.28, there is a divide-by-zero in the ReadMNGImage function of coders/png.c....
In GraphicsMagick 1.3.28, there is a divide-by-zero in the ReadMNGImage function of coders/png.c. Remote attackers could leverage this vulnerability to cause a crash and denial of service via a crafted mng file.
- Record
GHSA-4w24-2qm8-wfcm- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-369
- Updated
- 2026-11-02
OSVALPINE-CVE-2018-9018
6.5
In GraphicsMagick 1.3.28, there is a divide-by-zero in the ReadMNGImage function of coders/png.c. Remote attackers could leverage this vulnerability to cause a crash and denial of service via a crafted mng file.
- Record
ALPINE-CVE-2018-9018- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
OSV
6.5
In GraphicsMagick 1.3.28, there is a divide-by-zero in the ReadMNGImage function of coders/png.c. Remote attackers could leverage this vulnerability to cause a crash and denial of service via a crafted mng file.
- Record
CVE-2018-9018- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 7 moreShow less
OSVDEBIAN-CVE-2018-9018
6.5
In GraphicsMagick 1.3.28, there is a divide-by-zero in the ReadMNGImage function of coders/png.c. Remote attackers could leverage this vulnerability to cause a crash and denial of service via a crafted mng file.
- Record
DEBIAN-CVE-2018-9018- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-9018
6.5
In GraphicsMagick 1.3.28, there is a divide-by-zero in the ReadMNGImage function of coders/png.c. Remote attackers could leverage this vulnerability to cause a crash and denial of service via a crafted mng file.
- Record
UBUNTU-CVE-2018-9018- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVMGASA-2018-0285 No score
Updated imagemagick packages fix security vulnerability
Imagemagick has been updated to version 6.9.10.0 to fix several bugs and possible security issues.
- Fixed numerous use of uninitialized values, integer overflow, memory exceeded, and timeouts
- Missing break when checking "compliance" element.
- Fixed errant 'not enough pixel data'
- Fixed memory corruption for MVG paths
- A SVG rectangle with a width and height of 1, is a point
- Properly initialize SVG color style
- Heap buffer overflow fix
- Record
MGASA-2018-0285- Updated
- 2026-11-02
OSVSUSE-SU-2018:1036-1 No score
Security update for GraphicsMagick
This update for GraphicsMagick fixes the following issues:
- security update (png.c)
- CVE-2018-9018: divide-by-zero in the ReadMNGImage function of coders/png.c. Attackers could leverage this vulnerability to cause a crash and denial of service via a crafted mng file. [bsc#1086773]
- security update (gif.c)
- CVE-2017-18254: A memory leak vulnerability was found in the function WriteGIFImage in coders/gif.c, which could lead to denial of service via a crafted file. [bsc#1087027]
- security update (pcd.c)
- CVE-2017-18251: A memory leak vulnerability was found in the function ReadPCDImage in coders/pcd.c, which could lead to a denial of service via a crafted file. [bsc#1087037]
- Record
SUSE-SU-2018:1036-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:1129-1 No score
Security update for ImageMagick
This update for ImageMagick fixes the following issues:
-
security update (png.c)
- CVE-2018-9018: divide-by-zero in the ReadMNGImage function of coders/png.c. Attackers could leverage this vulnerability to cause a crash and denial of service via a crafted mng file. [bsc#1086773]
- CVE-2018-10177: there is an infinite loop in the ReadOneMNGImagefunction of the coders/png.c file. Remote attackers could leverage thisvulnerability to cause a denial of service (bsc#1089781)
-
security update (wand)
- CVE-2017-18252: The MogrifyImageList function in MagickWand/mogrify.c could allow attackers to cause a denial of service via a crafted file. [bsc#1087033]
-
security update (gif.c)
- CVE-2017-18254: A memory leak vulnerability was found in the function WriteGIFImage in coders/gif.c, which could lead to denial of service via a crafted file. [bsc#1087027]
-
security update (core)
- CVE-2017-10928: a heap-based buffer over-read in the GetNextToken function in token.c could allow attackers to obtain sensitive information from process memory or possibly have unspecified other impact via a crafted SVG document that is mishandled in the GetUserSpaceCoordinateValue function in coders/svg.c. [bsc#1047356]
-
security update (pcd.c)
- CVE-2017-18251: A memory leak vulnerability was found in the function ReadPCDImage in coders/pcd.c, which could lead to a denial of service via a crafted file. [bsc#1087037]
-
security update (gif.c)
- CVE-2017-18254: A memory leak vulnerability was found in the function WriteGIFImage in coders/gif.c, which could lead to denial of service via a crafted file. [bsc#1087027]
-
security update (tiff.c)
- CVE-2018-8960: The ReadTIFFImage function in coders/tiff.c in ImageMagick memory allocation issue could lead to denial of service (bsc#1086782)
- Record
SUSE-SU-2018:1129-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:1178-1 No score
Security update for ImageMagick
This update for ImageMagick fixes the following issues:
- CVE-2017-14325: In ImageMagick, a memory leak vulnerability was found in the function PersistPixelCache in magick/cache.c, which allowed attackers to cause a denial of service (memory consumption in ReadMPCImage in coders/mpc.c) via a crafted file. [bsc#1058635]
- CVE-2017-17887: In ImageMagick, a memory leak vulnerability was found in the function GetImagePixelCache in magick/cache.c, which allowed attackers to cause a denial of service via a crafted MNG image file that is processed by ReadOneMNGImage. [bsc#1074117]
- CVE-2017-18250: A NULL pointer dereference vulnerability was found in the function LogOpenCLBuildFailure in MagickCore/opencl.c, which could lead to a denial of service via a crafted file. [bsc#1087039]
- CVE-2017-18251: A memory leak vulnerability was found in the function ReadPCDImage in coders/pcd.c, which could lead to a denial of service via a crafted file. [bsc#1087037]
- CVE-2017-18252: The MogrifyImageList function in MagickWand/mogrify.c could allow attackers to cause a denial of service via a crafted file. [bsc#1087033]
- CVE-2017-18254: A memory leak vulnerability was found in the function WriteGIFImage in coders/gif.c, which could lead to denial of service via a crafted file. [bsc#1087027]
- CVE-2018-8960: The ReadTIFFImage function in coders/tiff.c in ImageMagick did not properly restrict memory allocation, leading to a heap-based buffer over-read. [bsc#1086782]
- CVE-2018-9018: divide-by-zero in the ReadMNGImage function of coders/png.c. Attackers could leverage this vulnerability to cause a crash and denial of service via a crafted mng file. [bsc#1086773]
- CVE-2018-9135: heap-based buffer over-read in IsWEBPImageLossless in coders/webp.c could lead to denial of service. [bsc#1087825]
- CVE-2018-10177: In ImageMagick, there was an infinite loop in the ReadOneMNGImage function of the coders/png.c file. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted mng file. [bsc#1089781]
- CVE-2017-10928: a heap-based buffer over-read in the GetNextToken function in token.c could allow attackers to obtain sensitive information from process memory or possibly have unspecified other impact via a crafted SVG document that is mishandled in the GetUserSpaceCoordinateValue function in coders/svg.c. [bsc#1047356]
- Record
SUSE-SU-2018:1178-1- Updated
- 2026-11-02
OSVUSN-5974-1 No score
graphicsmagick vulnerabilities
It was discovered that GraphicsMagick was not properly performing bounds checks when processing TGA image files, which could lead to a heap buffer overflow. If a user or automated system were tricked into processing a specially crafted TGA image file, an attacker could possibly use this issue to cause a denial of service or execute arbitrary code. This issue only affected Ubuntu 14.04 ESM and Ubuntu 16.04 ESM. (CVE-2018-20184)
It was discovered that GraphicsMagick was not properly validating bits per pixel data when processing DIB image files. If a user or automated system were tricked into processing a specially crafted DIB image file, an attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 14.04 ESM and Ubuntu 16.04 ESM. (CVE-2018-20189)
It was discovered that GraphicsMagick was not properly processing bit-field mask values in BMP image files, which could result in the execution of an infinite loop. If a user or automated system were tricked into processing a specially crafted BMP image file, an attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 14.04 ESM and Ubuntu 16.04 ESM. (CVE-2018-5685)
It was discovered that GraphicsMagick was not properly validating data used in arithmetic operations when processing MNG image files, which could result in a divide-by-zero error. If a user or automated system were tricked into processing a specially crafted MNG image file, an attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 14.04 ESM and Ubuntu 16.04 ESM. (CVE-2018-9018)
It was discovered that GraphicsMagick was not properly performing bounds checks when processing MIFF image files, which could lead to a heap buffer overflow. If a user or automated system were tricked into processing a specially crafted MIFF image file, an attacker could possibly use this issue to cause a denial of service or expose sensitive information. This issue only affected Ubuntu 14.04 ESM and Ubuntu 16.04 ESM. (CVE-2019-11006)
It was discovered that GraphicsMagick did not properly magnify certain MNG image files, which could lead to a heap buffer overflow. If a user or automated system were tricked into processing a specially crafted MNG image file, an attacker could possibly use this issue to cause a denial of service or execute arbitrary code. This issue only affected Ubuntu 20.04 LTS. (CVE-2020-12672)
It was discovered that GraphicsMagick was not properly performing bounds checks when parsing certain MIFF image files, which could lead to a heap buffer overflow. If a user or automated system were tricked into processing a specially crafted MIFF image file, an attacker could possibly use this issue to cause a denial of service or execute arbitrary code. (CVE-2022-1270)
- Record
USN-5974-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
graphicsmagickAlpine:v3.10 |
before 1.3.29-r0 | 1.3.29-r0 |
graphicsmagickAlpine:v3.11 |
before 1.3.29-r0 | 1.3.29-r0 |
graphicsmagickAlpine:v3.12 |
before 1.3.29-r0 | 1.3.29-r0 |
graphicsmagickAlpine:v3.13 |
before 1.3.29-r0 | 1.3.29-r0 |
graphicsmagickAlpine:v3.14 |
before 1.3.29-r0 | 1.3.29-r0 |
graphicsmagickAlpine:v3.15 |
before 1.3.29-r0 | 1.3.29-r0 |
graphicsmagickAlpine:v3.16 |
before 1.3.29-r0 | 1.3.29-r0 |
graphicsmagickAlpine:v3.17 |
before 1.3.29-r0 | 1.3.29-r0 |
graphicsmagickAlpine:v3.18 |
before 1.3.29-r0 | 1.3.29-r0 |
graphicsmagickAlpine:v3.19 |
before 1.3.29-r0 | 1.3.29-r0 |
Show 27 moreShow less
| Package | Affected | Fixed |
|---|---|---|
graphicsmagickAlpine:v3.20 |
before 1.3.29-r0 | 1.3.29-r0 |
graphicsmagickAlpine:v3.21 |
before 1.3.29-r0 | 1.3.29-r0 |
graphicsmagickAlpine:v3.22 |
before 1.3.29-r0 | 1.3.29-r0 |
graphicsmagickAlpine:v3.23 |
before 1.3.29-r0 | 1.3.29-r0 |
graphicsmagickAlpine:v3.24 |
before 1.3.29-r0 | 1.3.29-r0 |
graphicsmagickDebian:12 |
before 1.3.28-2 | 1.3.28-2 |
graphicsmagickDebian:13 |
before 1.3.28-2 | 1.3.28-2 |
graphicsmagickDebian:14 |
before 1.3.28-2 | 1.3.28-2 |
graphicsmagickDebian:7 |
before 1.3.16-1.1+deb7u19, plus listed versions 1.3.16-1.11.3.16-1.1+deb7u11.3.16-1.1+deb7u101.3.16-1.1+deb7u111.3.16-1.1+deb7u12 Show 14 moreShow less1.3.16-1.1+deb7u131.3.16-1.1+deb7u141.3.16-1.1+deb7u151.3.16-1.1+deb7u161.3.16-1.1+deb7u171.3.16-1.1+deb7u181.3.16-1.1+deb7u21.3.16-1.1+deb7u31.3.16-1.1+deb7u41.3.16-1.1+deb7u51.3.16-1.1+deb7u61.3.16-1.1+deb7u71.3.16-1.1+deb7u81.3.16-1.1+deb7u9 |
1.3.16-1.1+deb7u19 |
graphicsmagickDebian:8 |
before 1.3.20-3+deb8u4, plus listed versions 1.3.20-3+deb8u11.3.20-3+deb8u21.3.20-3+deb8u3 |
1.3.20-3+deb8u4 |
graphicsmagickDebian:9 |
before 1.3.30+hg15796-1~deb9u1, plus listed versions 1.3.25-81.3.26-11.3.26-101.3.26-111.3.26-12 Show 24 moreShow less1.3.26-131.3.26-141.3.26-151.3.26-161.3.26-171.3.26-181.3.26-191.3.26-21.3.26-31.3.26-41.3.26-51.3.26-61.3.26-71.3.26-81.3.26-91.3.27-11.3.27-21.3.27-31.3.27-41.3.28-11.3.28-21.3.29+hg15665-11.3.29-11.3.30-1 |
1.3.30+hg15796-1~deb9u1 |
imagemagickMageia:6 |
before 6.9.10.0-1.mga6 | 6.9.10.0-1.mga6 |
GraphicsMagickSUSE:Linux Enterprise Software Development Kit 11 SP4 |
before 1.2.5-78.47.1 | 1.2.5-78.47.1 |
GraphicsMagickSUSE:Studio Onsite 1.3 |
before 1.2.5-78.47.1 | 1.2.5-78.47.1 |
ImageMagickSUSE:Linux Enterprise Software Development Kit 11 SP4 |
before 6.4.3.6-78.45.1 | 6.4.3.6-78.45.1 |
ImageMagickSUSE:Linux Enterprise Server 11 SP4 |
before 6.4.3.6-78.45.1 | 6.4.3.6-78.45.1 |
ImageMagickSUSE:Linux Enterprise Server for SAP Applications 11 SP4 |
before 6.4.3.6-78.45.1 | 6.4.3.6-78.45.1 |
ImageMagickSUSE:Linux Enterprise Desktop 12 SP3 |
before 6.8.8.1-71.54.5 | 6.8.8.1-71.54.5 |
ImageMagickSUSE:Linux Enterprise Software Development Kit 12 SP3 |
before 6.8.8.1-71.54.5 | 6.8.8.1-71.54.5 |
ImageMagickSUSE:Linux Enterprise Server 12 SP3 |
before 6.8.8.1-71.54.5 | 6.8.8.1-71.54.5 |
ImageMagickSUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 6.8.8.1-71.54.5 | 6.8.8.1-71.54.5 |
ImageMagickSUSE:Linux Enterprise Workstation Extension 12 SP3 |
before 6.8.8.1-71.54.5 | 6.8.8.1-71.54.5 |
graphicsmagickUbuntu:Pro:14.04:LTS |
before 1.3.18-1ubuntu3.1+esm8, plus listed versions 1.3.16-1.1ubuntu21.3.16-1.1ubuntu31.3.18-1ubuntu31.3.18-1ubuntu3.11.3.18-1ubuntu3.1+esm1 Show 6 moreShow less1.3.18-1ubuntu3.1+esm21.3.18-1ubuntu3.1+esm31.3.18-1ubuntu3.1+esm41.3.18-1ubuntu3.1+esm51.3.18-1ubuntu3.1+esm61.3.18-1ubuntu3.1+esm7 |
1.3.18-1ubuntu3.1+esm8 |
graphicsmagickUbuntu:Pro:16.04:LTS |
before 1.3.23-1ubuntu0.6+esm2, plus listed versions 1.3.21-31.3.23-11.3.23-1build11.3.23-1ubuntu0.11.3.23-1ubuntu0.1+esm1 Show 6 moreShow less1.3.23-1ubuntu0.21.3.23-1ubuntu0.31.3.23-1ubuntu0.41.3.23-1ubuntu0.51.3.23-1ubuntu0.61.3.23-1ubuntu0.6+esm1 |
1.3.23-1ubuntu0.6+esm2 |
graphicsmagickUbuntu:18.04:LTS |
before 1.3.28-2, plus listed versions 1.3.26-151.3.26-161.3.26-191.3.27-11.3.27-21.3.27-31.3.28-1 |
1.3.28-2 |
graphicsmagickUbuntu:Pro:18.04:LTS |
before 1.3.28-2ubuntu0.2+esm1, plus listed versions 1.3.26-151.3.26-161.3.26-191.3.27-11.3.27-2 Show 6 moreShow less1.3.27-31.3.28-11.3.28-21.3.28-2ubuntu0.11.3.28-2ubuntu0.1+esm11.3.28-2ubuntu0.2 |
1.3.28-2ubuntu0.2+esm1 |
graphicsmagickUbuntu:20.04:LTS |
before 1.4+really1.3.35-1ubuntu0.1, plus listed versions 1.4+really1.3.33+hg16115-11.4+really1.3.33+hg16115-1build11.4+really1.3.33+hg16117-11.4+really1.3.34-11.4+really1.3.34-21.4+really1.3.34+hg16181-11.4+really1.3.35-1 |
1.4+really1.3.35-1ubuntu0.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases, references | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-9018 is a medium vulnerability (CVSS 6.5) in Graphicsmagick, published March 25, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.02%, the 87th percentile. Fixed in graphicsmagick 1.3.29-r0.
References
lists.debian.org/debian-lts-announce/2018/03/msg00025.html
debian.org/security/2018/dsa-4321
sourceforge.net/p/graphicsmagick/bugs/554
lists.debian.org/debian-lts-announce/2018/08/msg00002.html
securityfocus.com/bid/103526
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3IYH7QSNXXOIDFTYLY455ANZ3JWQ7FCS
Show 52 moreShow less
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FS76VNCFL3FVRMGXQEMHBOKA7EE46BTS
nvd.nist.gov/vuln/detail/CVE-2018-9018
lists.fedoraproject.org/archives/list/[email protected]/message/3IYH7QSNXXOIDFTYLY455ANZ3JWQ7FCS
lists.fedoraproject.org/archives/list/[email protected]/message/FS76VNCFL3FVRMGXQEMHBOKA7EE46BTS
github.com/advisories/GHSA-4w24-2qm8-wfcm
security.alpinelinux.org/vuln/CVE-2018-9018
security-tracker.debian.org/tracker/CVE-2018-9018
advisories.mageia.org/MGASA-2018-0285.html
bugs.mageia.org/show_bug.cgi?id=23156
lists.opensuse.org/opensuse-updates/2018-05/msg00026.html
debian.org/security/2018/dsa-4204
usn.ubuntu.com/3681-1
legacy.imagemagick.org/script/changelog.php
github.com/ImageMagick/ImageMagick/issues/1133
github.com/ImageMagick/ImageMagick/issues/1156
suse.com/support/update/announcement/2018/suse-su-20181036-1
bugzilla.suse.com/1086773
bugzilla.suse.com/1087027
bugzilla.suse.com/1087037
suse.com/security/cve/CVE-2017-18251
suse.com/security/cve/CVE-2017-18254
suse.com/security/cve/CVE-2018-9018
suse.com/support/update/announcement/2018/suse-su-20181129-1
bugzilla.suse.com/1047356
bugzilla.suse.com/1086782
bugzilla.suse.com/1087033
bugzilla.suse.com/1089781
suse.com/security/cve/CVE-2017-1000476
suse.com/security/cve/CVE-2017-10928
suse.com/security/cve/CVE-2017-18252
suse.com/security/cve/CVE-2018-10177
suse.com/security/cve/CVE-2018-8960
suse.com/support/update/announcement/2018/suse-su-20181178-1
bugzilla.suse.com/1058635
bugzilla.suse.com/1074117
bugzilla.suse.com/1087039
bugzilla.suse.com/1087825
suse.com/security/cve/CVE-2017-11450
suse.com/security/cve/CVE-2017-14325
suse.com/security/cve/CVE-2017-17887
suse.com/security/cve/CVE-2017-18250
suse.com/security/cve/CVE-2018-9135
ubuntu.com/security/CVE-2018-9018
hg.graphicsmagick.org/hg/GraphicsMagick/rev/84040fada1ee
ubuntu.com/security/notices/USN-5974-1
cve.org/CVERecord?id=CVE-2018-9018
ubuntu.com/security/CVE-2018-5685
ubuntu.com/security/CVE-2018-20184
ubuntu.com/security/CVE-2018-20189
ubuntu.com/security/CVE-2019-11006
ubuntu.com/security/CVE-2020-12672
ubuntu.com/security/CVE-2022-1270