Every CVE Search/ Get API key

CVE-2018-9018

In GraphicsMagick 1.3.28, there is a divide-by-zero in the ReadMNGImage function of coders/png.c....

6.5 MediumFix available

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

3.02%Up 0.4 points since Apr 14, 2021
90%50%10%1%

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 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
graphicsmagick
Alpine:v3.10
before 1.3.29-r0
1.3.29-r0
graphicsmagick
Alpine:v3.11
before 1.3.29-r0
1.3.29-r0
graphicsmagick
Alpine:v3.12
before 1.3.29-r0
1.3.29-r0
graphicsmagick
Alpine:v3.13
before 1.3.29-r0
1.3.29-r0
graphicsmagick
Alpine:v3.14
before 1.3.29-r0
1.3.29-r0
graphicsmagick
Alpine:v3.15
before 1.3.29-r0
1.3.29-r0
graphicsmagick
Alpine:v3.16
before 1.3.29-r0
1.3.29-r0
graphicsmagick
Alpine:v3.17
before 1.3.29-r0
1.3.29-r0
graphicsmagick
Alpine:v3.18
before 1.3.29-r0
1.3.29-r0
graphicsmagick
Alpine:v3.19
before 1.3.29-r0
1.3.29-r0
Show 29 moreShow less
Affected packages
PackageAffectedFixed
graphicsmagick
Alpine:v3.20
before 1.3.29-r0
1.3.29-r0
graphicsmagick
Alpine:v3.21
before 1.3.29-r0
1.3.29-r0
graphicsmagick
Alpine:v3.22
before 1.3.29-r0
1.3.29-r0
graphicsmagick
Alpine:v3.23
before 1.3.29-r0
1.3.29-r0
graphicsmagick
Alpine:v3.24
before 1.3.29-r0
1.3.29-r0
graphicsmagick
Debian:12
before 1.3.28-2
1.3.28-2
graphicsmagick
Debian:13
before 1.3.28-2
1.3.28-2
graphicsmagick
Debian:14
before 1.3.28-2
1.3.28-2
graphicsmagick
Debian:7
From an advisory covering 6 CVEs
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 less
1.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
graphicsmagick
Debian:8
From an advisory covering 31 CVEs
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
graphicsmagick
Debian:9
From an advisory covering 56 CVEs
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 less
1.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
imagemagick
Mageia:6
before 6.9.10.0-1.mga6
6.9.10.0-1.mga6
GraphicsMagick
SUSE:Linux Enterprise Software Development Kit 11 SP4
From an advisory covering 3 CVEs
before 1.2.5-78.47.1
1.2.5-78.47.1
GraphicsMagick
SUSE:Studio Onsite 1.3
From an advisory covering 3 CVEs
before 1.2.5-78.47.1
1.2.5-78.47.1
ImageMagick
SUSE:Linux Enterprise Software Development Kit 11 SP4
From an advisory covering 8 CVEs
before 6.4.3.6-78.45.1
6.4.3.6-78.45.1
ImageMagick
SUSE:Linux Enterprise Server 11 SP4
From an advisory covering 8 CVEs
before 6.4.3.6-78.45.1
6.4.3.6-78.45.1
ImageMagick
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
From an advisory covering 8 CVEs
before 6.4.3.6-78.45.1
6.4.3.6-78.45.1
ImageMagick
SUSE:Linux Enterprise Desktop 12 SP3
From an advisory covering 13 CVEs
before 6.8.8.1-71.54.5
6.8.8.1-71.54.5
ImageMagick
SUSE:Linux Enterprise Software Development Kit 12 SP3
From an advisory covering 13 CVEs
before 6.8.8.1-71.54.5
6.8.8.1-71.54.5
ImageMagick
SUSE:Linux Enterprise Server 12 SP3
From an advisory covering 13 CVEs
before 6.8.8.1-71.54.5
6.8.8.1-71.54.5
ImageMagick
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
From an advisory covering 13 CVEs
before 6.8.8.1-71.54.5
6.8.8.1-71.54.5
ImageMagick
SUSE:Linux Enterprise Workstation Extension 12 SP3
From an advisory covering 13 CVEs
before 6.8.8.1-71.54.5
6.8.8.1-71.54.5
graphicsmagick
Ubuntu: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 less
1.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
graphicsmagick
Ubuntu: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 less
1.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
graphicsmagick
Ubuntu: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
graphicsmagick
Ubuntu:Pro:14.04:LTS
From an advisory covering 7 CVEs
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 less
1.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
graphicsmagick
Ubuntu:Pro:16.04:LTS
From an advisory covering 7 CVEs
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 less
1.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
graphicsmagick
Ubuntu:Pro:18.04:LTS
From an advisory covering 7 CVEs
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 less
1.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
graphicsmagick
Ubuntu:20.04:LTS
From an advisory covering 7 CVEs
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

History
RecordedChangedSources
affected, facts
affected, aliases, referencesOSV
aliasesEUVD
first indexedCVE 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

Show 52 moreShow less
MoveEnter Open