# CVE-2018-20189: graphicsmagick: In GraphicsMagick 1.3.31, the ReadDIBImage function of coders/dib.c has a vulnerability allowing a crash and denial o...

CVE-2018-20189 is fixed in 6 products on 1 platform, first by graphicsmagick 1.3.28-2ubuntu0.1, released April 24, 2019. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2018-20189
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0228
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Dec 17, 2018

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | graphicsmagick Ubuntu 18.04.6 LTS (bionic) | 1.3.28-2ubuntu0.1 | [graphicsmagick 1.3.28-2ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-graphicsmagick-1.3.28-2ubuntu0.1.md) | Apr 24, 2019 |
| Linux | graphicsmagick-imagemagick-compat Ubuntu 18.04.6 LTS (bionic) | 1.3.28-2ubuntu0.1 | [graphicsmagick-imagemagick-compat 1.3.28-2ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-graphicsmagick-imagemagick-compat-1.3.28-2ubuntu0.1.md) | Apr 24, 2019 |
| Linux | graphicsmagick-libmagick-dev-compat Ubuntu 18.04.6 LTS (bionic) | 1.3.28-2ubuntu0.1 | [graphicsmagick-libmagick-dev-compat 1.3.28-2ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-graphicsmagick-libmagick-dev-compat-1.3.28-2ubuntu0.1.md) | Apr 24, 2019 |
| Linux | libgraphics-magick-perl Ubuntu 18.04.6 LTS (bionic) | 1.3.28-2ubuntu0.1 | [libgraphics-magick-perl 1.3.28-2ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libgraphics-magick-perl-1.3.28-2ubuntu0.1.md) | Apr 24, 2019 |
| Linux | libgraphicsmagick++-q16-12 Ubuntu 18.04.6 LTS (bionic) | 1.3.28-2ubuntu0.1 | [libgraphicsmagick++-q16-12 1.3.28-2ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libgraphicsmagick-q16-12-1.3.28-2ubuntu0.1.md) | Apr 24, 2019 |
| Linux | libgraphicsmagick-q16-3 Ubuntu 18.04.6 LTS (bionic) | 1.3.28-2ubuntu0.1 | [libgraphicsmagick-q16-3 1.3.28-2ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libgraphicsmagick-q16-3-1.3.28-2ubuntu0.1.md) | Apr 24, 2019 |

---

Data as of 2026-11-07T06:34:28Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo
