# CVE-2017-12640

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2017-08-07 · Modified: 2024-08-05
- Aliases: UBUNTU-CVE-2017-12640, DEBIAN-CVE-2017-12640
- Record: https://cvemate.com/vulnerability/CVE-2017-12640 · JSON: https://cvemate.com/vulnerability/CVE-2017-12640/json

## Description

```text
ImageMagick 7.0.6-1 has an out-of-bounds read vulnerability in ReadOneMNGImage in coders/png.c.
```

## Signals

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

## Affected

- debian imagemagick (Debian): \< 8:6.9.7.4+dfsg-15
- ubuntu imagemagick (Ubuntu): \< 8:6.7.7.10-6ubuntu3.11 \| \< 8:6.8.9.9-7ubuntu5.11
- debian debian\_linux: 8.0 \| 9.0
- imagemagick imagemagick: 7.0.6-1

## References

- <https://www.debian.org/security/2017/dsa-4040>
- <https://usn.ubuntu.com/3681-1/>
- <https://github.com/ImageMagick/ImageMagick/issues/542>
- <http://www.securityfocus.com/bid/100155>
- <https://www.debian.org/security/2017/dsa-4019>
- <https://github.com/ImageMagick/ImageMagick/commit/307fa45d512641fcd105f0d57ca50c1437cd1b81>
- <https://ubuntu.com/security/CVE-2017-12640>
- <https://ubuntu.com/security/notices/USN-3681-1>
- <https://www.cve.org/CVERecord?id=CVE-2017-12640>
- <https://security-tracker.debian.org/tracker/CVE-2017-12640>

---

Data as of 2026-12-05T05:05:21.123Z. 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
