---
title: "CVE-2017-12935\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2017-12935?format=md
keywords: index, follow
---

# CVE-2017-12935

Publication date 18 August 2017

Last updated 25 August 2025

---

Ubuntu priority

**Low**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**8.8 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2017-12935?format=md#impact-score)

Toggle side navigation

## Description

The ReadMNGImage function in coders/png.c in GraphicsMagick 1.3.26
mishandles large MNG images, leading to an invalid memory read in the
SetImageColorCallBack function in magick/image.c.

### From the Ubuntu Security Team

It was discovered that GraphicsMagick incorrectly handled certain image
files. An attacker could possibly use this issue to cause a denial of
service or other unspecified impact.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| graphicsmagick | 22.04 LTS jammy | Not affected |
| 21.10 impish | Not affected |
| 21.04 hirsute | Not affected |
| 20.10 groovy | Not affected |
| 20.04 LTS focal | Not affected |
| 19.10 eoan | Not affected |
| 19.04 disco | Not affected |
| 18.10 cosmic | Not affected |
| 18.04 LTS bionic | Not affected |
| 17.10 artful | Ignored end of life |
| 17.04 zesty | Ignored end of life |
| 16.04 LTS xenial | Fixed 1.3.23-1ubuntu0.3 |
| 14.04 LTS trusty | Fixed 1.3.18-1ubuntu3.1+esm3  Ubuntu Pro |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2017-12935?format=md#patch-details)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| graphicsmagick | * Upstream:   <http://hg.code.sf.net/p/graphicsmagick/code/rev/cd699a44f188> |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

8.8 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | Required |
  | Scope | Unchanged |
  | Confidentiality impact | High |
  | Integrity impact | High |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 8.8 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-12935)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2017-12935)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2017-12935)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2017-12935)

### Related Ubuntu Security Notices (USN)

+ [USN-4222-1](https://usn.ubuntu.com/USN-4222-1)
+ GraphicsMagick vulnerabilities
+ 16 December 2019

### Other references

* <http://www.openwall.com/lists/oss-security/2017/08/18/4>
* <http://hg.code.sf.net/p/graphicsmagick/code/rev/cd699a44f188>
* <https://blogs.gentoo.org/ago/2017/08/05/graphicsmagick-invalid-memory-read-in-setimagecolorcallback-image-c/>
* <https://www.cve.org/CVERecord?id=CVE-2017-12935>
