CVE-2017-6335: Medium severity GraphicsMagick Graphicsmagick vulnerability

Published Mar 1, 2017
·
Updated

ImageMagick and GraphicsMagick encounter a read beyond an allocated heap buffer when reading CMYKA TIFF files which claim to offer fewer samples per pixel than required. A maliciously crafted file could cause the application to crash.

References:

http://seclists.org/oss-sec/2017/q1/494

Upstream patch:

https://sourceforge.net/p/graphicsmagick/code/ci/6156b4c2992d855ece6079653b3b93c3229fc4b8/

Other sources

The QuantumTransferMode function in coders/tiff.c in GraphicsMagick 1.3.25 and earlier allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a small samples per pixel value in a CMYKA TIFF file.

Launchpad

Affected Software

2 affected componentsFixes available
GraphicsMagick Graphicsmagick<=1.3.25
debian/graphicsmagick
1.4+really1.3.36+hg16481-2+deb11u11.4+really1.3.40-4+deb12u11.4+really1.3.45+hg17696-11.4+really1.3.46-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 1.4+really1.3.36+hg16481-2+deb11u1Fixed in 1.4+really1.3.40-4+deb12u1Fixed in 1.4+really1.3.45+hg17696-1Fixed in 1.4+really1.3.46-2
  2. Upgrade

    Upgrade GraphicsMagick to a version that resolves this vulnerability.

    Fixed in 1.3.25
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 6156b4c2992d855ece6079653b3b93c3229fc4b8

Event History

Mar 1, 2017
Data Sourced
via Red Hat·03:59 PM
DescriptionSeverityAffected Software
Mar 14, 2017
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description
Data Sourced
via NVD·02:59 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:38 PM
Description
Feb 20, 2026
Data Sourced
via Ubuntu·08:04 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·08:04 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2017-6335?

CVE-2017-6335 has a moderate severity rating due to the potential for application crashes from crafted CMYKA TIFF files.

2

How do I fix CVE-2017-6335?

To fix CVE-2017-6335, you should upgrade to a version of GraphicsMagick that is not affected, ideally one that is 1.3.26 or later.

3

Which versions of GraphicsMagick are affected by CVE-2017-6335?

Versions of GraphicsMagick prior to 1.3.26 are affected by CVE-2017-6335.

4

What is the nature of the vulnerability in CVE-2017-6335?

CVE-2017-6335 is a read beyond an allocated heap buffer, leading to potential crashes when processing malformed CMYKA TIFF files.

5

Is ImageMagick also affected by CVE-2017-6335?

Yes, both ImageMagick and GraphicsMagick are impacted by CVE-2017-6335 in similar ways regarding the processing of CMYKA TIFF files.

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