# CVE-2019-13304

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2019-07-05 · Modified: 2024-08-04
- Aliases: ALPINE-CVE-2019-13304, UBUNTU-CVE-2019-13304, DEBIAN-CVE-2019-13304
- Record: https://cvemate.com/vulnerability/CVE-2019-13304 · JSON: https://cvemate.com/vulnerability/CVE-2019-13304/json

## Description

```text
ImageMagick 7.0.8-50 Q16 has a stack-based buffer overflow at coders/pnm.c in WritePNMImage because of a misplaced assignment.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 2.082%, percentile 82.179%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine imagemagick (Alpine Linux): \< 6.9.10.53-r0 \| \< 7.0.8.53-r0
- alpine imagemagick6 (Alpine Linux): \< 6.9.10.53-r0
- canonical ubuntu\_linux: 16.04 \| 18.04 \| 19.04 \| 19.10
- debian imagemagick (Debian): \< 8:6.9.11.24+dfsg-1
- ubuntu imagemagick (Ubuntu): \< 8:6.7.7.10-6ubuntu3.13+esm10 \| \< 8:6.8.9.9-7ubuntu5.15 \| \< 8:6.9.7.4+dfsg-16ubuntu6.8 \| \< 8:6.9.10.23+dfsg-2.1ubuntu9
- debian debian\_linux: 8.0 \| 9.0 \| 10.0
- imagemagick imagemagick: 7.0.8-50:q16
- opensuse leap: 15.0 \| 15.1

## References

- <https://github.com/ImageMagick/ImageMagick/issues/1614>
- <https://github.com/ImageMagick/ImageMagick6/commit/bfa3b9610c83227894c92b0d312ad327fceb6241>
- <https://github.com/ImageMagick/ImageMagick/commit/7689875ef64f34141e7292f6945efdf0530b4a5e>
- <https://lists.debian.org/debian-lts-announce/2019/08/msg00021.html>
- <http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00069.html>
- <https://usn.ubuntu.com/4192-1/>
- <https://www.debian.org/security/2020/dsa-4712>
- <https://www.debian.org/security/2020/dsa-4715>
- <https://security.alpinelinux.org/vuln/CVE-2019-13304>
- <https://ubuntu.com/security/CVE-2019-13304>
- <https://ubuntu.com/security/notices/USN-4192-1>
- <https://www.cve.org/CVERecord?id=CVE-2019-13304>
- <https://ubuntu.com/security/notices/USN-7053-1>
- <https://security-tracker.debian.org/tracker/CVE-2019-13304>

---

Data as of 2026-12-05T04:58:27.354Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
