# CVE-2018-20184: graphicsmagick: In GraphicsMagick 1.4 snapshot-20181209 Q8, there is a heap-based buffer overflow in the WriteTGAImage function of tg...

CVE-2018-20184 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-20184
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0231
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Dec 17, 2018

## Description

In GraphicsMagick 1.4 snapshot-20181209 Q8, there is a heap-based buffer overflow in the WriteTGAImage function of tga.c, which allows attackers to cause a denial of service via a crafted image file, because the number of rows or columns can exceed the pixel-dimension restrictions of the TGA specification.

## 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-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
