Every CVE Search/ Get API key

CVE-2018-20189

In GraphicsMagick 1.3.31, the ReadDIBImage function of coders/dib.c has a vulnerability allowing...

6.5 MediumFix available

In GraphicsMagick 1.3.31, the ReadDIBImage function of coders/dib.c has a vulnerability allowing a crash and denial of service via a dib file that is crafted to appear with direct pixel values and also colormapping (which is not available beyond 8-bits/sample), and therefore lacks indexes initialization.

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

2.28%Up 0.5 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 6.5

In GraphicsMagick 1.3.31, the ReadDIBImage function of coders/dib.c has a vulnerability allowing a crash and denial of service via a dib file that is crafted to appear with direct pixel values and also colormapping (which is not available beyond 8-bits/sample), and therefore lacks indexes initialization.

Record
CVE-2018-20189
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-20
Updated
2026-11-02
CVE List No score

In GraphicsMagick 1.3.31, the ReadDIBImage function of coders/dib.c has a vulnerability allowing a crash and denial of service via a dib file that is crafted to appear with direct pixel values and also colormapping (which is not available beyond 8-bits/sample), and therefore lacks indexes initialization.

Record
CVE-2018-20189
Updated
2026-11-02
EUVDEUVD-2018-12756 No score

In GraphicsMagick 1.3.31, the ReadDIBImage function of coders/dib.c has a vulnerability allowing a crash and denial of service via a dib file that is crafted to appear with direct pixel values and also colormapping (which is not available beyond 8-bits/sample), and therefore lacks indexes initialization.

Record
EUVD-2018-12756
Updated
2026-11-03
GitHub AdvisoriesGHSA-g57h-69c2-w5qc 6.5

In GraphicsMagick 1.3.31, the ReadDIBImage function of coders/dib.c has a vulnerability allowing...

In GraphicsMagick 1.3.31, the ReadDIBImage function of coders/dib.c has a vulnerability allowing a crash and denial of service via a dib file that is crafted to appear with direct pixel values and also colormapping (which is not available beyond 8-bits/sample), and therefore lacks indexes initialization.

Record
GHSA-g57h-69c2-w5qc
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-20
Updated
2026-11-02
OSVALPINE-CVE-2018-20189 6.5

In GraphicsMagick 1.3.31, the ReadDIBImage function of coders/dib.c has a vulnerability allowing a crash and denial of service via a dib file that is crafted to appear with direct pixel values and also colormapping (which is not available beyond 8-bits/sample), and therefore lacks indexes initialization.

Record
ALPINE-CVE-2018-20189
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.31, the ReadDIBImage function of coders/dib.c has a vulnerability allowing a crash and denial of service via a dib file that is crafted to appear with direct pixel values and also colormapping (which is not available beyond 8-bits/sample), and therefore lacks indexes initialization.

Record
CVE-2018-20189
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-20189 6.5

In GraphicsMagick 1.3.31, the ReadDIBImage function of coders/dib.c has a vulnerability allowing a crash and denial of service via a dib file that is crafted to appear with direct pixel values and also colormapping (which is not available beyond 8-bits/sample), and therefore lacks indexes initialization.

Record
DEBIAN-CVE-2018-20189
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-20189 6.5

In GraphicsMagick 1.3.31, the ReadDIBImage function of coders/dib.c has a vulnerability allowing a crash and denial of service via a dib file that is crafted to appear with direct pixel values and also colormapping (which is not available beyond 8-bits/sample), and therefore lacks indexes initialization.

Record
UBUNTU-CVE-2018-20189
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-2019-0033 No score

Updated graphicsmagick packages fix security vulnerabilities

It was discovered that graphicsmagick was subject to vulnerabilities.

  • heap-based buffer overflow in the WriteTGAImage function of tga.c (CVE-2018-20184).
  • denial of service vulnerability in ReadDIBImage function of coders/dib.c (CVE-2018-20189).
  • heap-based buffer over-read in the ReadBMPImage function of bmp.c (CVE-2018-20185).
Record
MGASA-2019-0033
Updated
2026-11-02
OSVopenSUSE-SU-2019:0003-1 No score

Security update for GraphicsMagick

This update for GraphicsMagick fixes the following issues:

Security vulnerabilities fixed:

  • CVE-2018-20184: Fixed heap-based buffer overflow in the WriteTGAImage function of tga.c (bsc#1119822)
  • CVE-2018-20189: Fixed denial of service vulnerability in ReadDIBImage function of coders/dib.c (bsc#1119790)

This update was imported from the openSUSE:Leap:15.0:Update update project.

Record
openSUSE-SU-2019:0003-1
Updated
2026-11-02
OSVopenSUSE-SU-2019:1-1 No score

Security update for GraphicsMagick

This update for GraphicsMagick fixes the following issues:

Security vulnerabilities fixed:

  • CVE-2018-20184: Fixed heap-based buffer overflow in the WriteTGAImage function of tga.c (bsc#1119822)
  • CVE-2018-20189: Fixed denial of service vulnerability in ReadDIBImage function of coders/dib.c (bsc#1119790)
Record
openSUSE-SU-2019:1-1
Updated
2026-11-02
OSVUSN-4207-1 No score

graphicsmagick vulnerabilities

It was discovered that GraphicsMagick incorrectly handled certain image files. An attacker could possibly use this issue to cause a denial of service or other unspecified impact.

Record
USN-4207-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.32-r0
1.3.32-r0
graphicsmagick
Alpine:v3.11
before 1.3.32-r0
1.3.32-r0
graphicsmagick
Alpine:v3.12
before 1.3.32-r0
1.3.32-r0
graphicsmagick
Alpine:v3.13
before 1.3.32-r0
1.3.32-r0
graphicsmagick
Alpine:v3.14
before 1.3.32-r0
1.3.32-r0
graphicsmagick
Alpine:v3.15
before 1.3.32-r0
1.3.32-r0
graphicsmagick
Alpine:v3.16
before 1.3.32-r0
1.3.32-r0
graphicsmagick
Alpine:v3.17
before 1.3.32-r0
1.3.32-r0
graphicsmagick
Alpine:v3.18
before 1.3.32-r0
1.3.32-r0
graphicsmagick
Alpine:v3.19
before 1.3.32-r0
1.3.32-r0
Show 16 moreShow less
Affected packages
PackageAffectedFixed
graphicsmagick
Alpine:v3.20
before 1.3.32-r0
1.3.32-r0
graphicsmagick
Alpine:v3.21
before 1.3.32-r0
1.3.32-r0
graphicsmagick
Alpine:v3.22
before 1.3.32-r0
1.3.32-r0
graphicsmagick
Alpine:v3.23
before 1.3.32-r0
1.3.32-r0
graphicsmagick
Alpine:v3.24
before 1.3.32-r0
1.3.32-r0
graphicsmagick
Debian:12
before 1.4~hg15873-1
1.4~hg15873-1
graphicsmagick
Debian:13
before 1.4~hg15873-1
1.4~hg15873-1
graphicsmagick
Debian:14
before 1.4~hg15873-1
1.4~hg15873-1
graphicsmagick
Debian:8
before 1.3.20-3+deb8u5, plus listed versions
1.3.20-3+deb8u11.3.20-3+deb8u21.3.20-3+deb8u31.3.20-3+deb8u4
1.3.20-3+deb8u5
graphicsmagick
Mageia:6
before 1.3.31-1.3.mga6
1.3.31-1.3.mga6
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-2ubuntu0.1, plus listed versions
1.3.26-151.3.26-161.3.26-191.3.27-11.3.27-21.3.27-31.3.28-11.3.28-2
1.3.28-2ubuntu0.1
graphicsmagick
Ubuntu: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 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
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
GraphicsMagick
SUSE:Package Hub 15
before 1.3.29-bp150.2.12.1
1.3.29-bp150.2.12.1

History

History
RecordedChangedSources
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-20189 is a medium vulnerability (CVSS 6.5) in Graphicsmagick, published December 17, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.28%, the 83rd percentile. Fixed in graphicsmagick 1.3.32-r0.

References

Show 34 moreShow less
MoveEnter Open