CVE-2017-12935: High severity GraphicsMagick Graphicsmagick vulnerability

Published Aug 18, 2017
·
Updated

Last updated 24 July 2024

Other sources

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.

Affected Software

20 affected componentsFixes available
GraphicsMagick Graphicsmagick=1.3.26
Debian Debian Linux=8.0
Debian Debian Linux=9.0
alpine/graphicsmagick<1.3.26-r2
1.3.26-r2
alpine/graphicsmagick<1.3.26-r2
1.3.26-r2
alpine/graphicsmagick<1.3.26-r2
1.3.26-r2
alpine/graphicsmagick<1.3.26-r2
1.3.26-r2
alpine/graphicsmagick<1.3.26-r2
1.3.26-r2
alpine/graphicsmagick<1.3.26-r2
1.3.26-r2
alpine/graphicsmagick<1.3.26-r2
1.3.26-r2
alpine/graphicsmagick<1.3.26-r2
1.3.26-r2
alpine/graphicsmagick<1.3.26-r2
1.3.26-r2
alpine/graphicsmagick<1.3.26-r2
1.3.26-r2
alpine/graphicsmagick<1.3.26-r2
1.3.26-r2
alpine/graphicsmagick<1.3.26-r2
1.3.26-r2
alpine/graphicsmagick<1.3.26-r2
1.3.26-r2
alpine/graphicsmagick<1.3.26-r2
1.3.26-r2
alpine/graphicsmagick<1.3.26-r2
1.3.26-r2
alpine/graphicsmagick<1.3.26-r2
1.3.26-r2
debian/graphicsmagick
1.4+really1.3.40-4+deb12u11.4+really1.3.45+hg17696-11.4+really1.3.49-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/graphicsmagick to a version that resolves this vulnerability.

    Fixed in 1.3.26-r2
  2. Upgrade

    Upgrade debian/graphicsmagick to a version that resolves this vulnerability.

    Fixed in 1.4+really1.3.40-4+deb12u1Fixed in 1.4+really1.3.45+hg17696-1Fixed in 1.4+really1.3.49-1

Event History

Aug 18, 2017
CVE Published
via MITRE·12:00 PM
Data Sourced
via MITRE·12:00 PM
Description
Data Sourced
via NVD·12:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·12:29 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2017-12935?

CVE-2017-12935 is a vulnerability in GraphicsMagick 1.3.26 that mishandles large MNG images, leading to an invalid memory read.

2

What is the severity of CVE-2017-12935?

The severity of CVE-2017-12935 is high, with a CVSS score of 8.8.

3

How does CVE-2017-12935 affect the affected software?

CVE-2017-12935 affects GraphicsMagick 1.3.26 and may also affect other versions specified in the affected software section.

4

How can I fix CVE-2017-12935 in GraphicsMagick?

To fix CVE-2017-12935 in GraphicsMagick, you should update to version 1.4+really1.3.35-1~deb10u2 or higher, 1.4+really1.3.35-1~deb10u3 or higher, 1.4+really1.3.36+hg16481-2+deb11u1 or higher, 1.4+really1.3.40-4 or higher, or 1.4+really1.3.42-1 or higher, depending on your system.

5

Are there any additional resources about CVE-2017-12935?

Yes, you can find more information about CVE-2017-12935 at the following references: [1] http://hg.code.sf.net/p/graphicsmagick/code/rev/cd699a44f188 [2] https://blogs.gentoo.org/ago/2017/08/05/graphicsmagick-invalid-memory-read-in-setimagecolorcallback-image-c/ [3] https://lists.debian.org/debian-lts-announce/2018/08/msg00002.html

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203