# CVE-2018-9018: graphicsmagick: In GraphicsMagick 1.3.28, there is a divide-by-zero in the ReadMNGImage function of coders/png.c

CVE-2018-9018 is fixed in 6 products on 1 platform, first by graphicsmagick 1.3.28-2, released March 25, 2018. It is not reported as exploited. Patch Radar priority: Routine.

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

## Description

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.

## Where it's fixed

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

---

Data as of 2026-11-07T12:40:37Z 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
