CVE-2017-12877: Use After Free

Published Aug 28, 2017
·
Updated

Last updated 24 July 2024

Other sources

Use-after-free vulnerability in the DestroyImage function in image.c i ...

— Debian

Affected Software

9 affected componentsFixes available
ImageMagick ImageMagick<6.9.9-6
ImageMagick ImageMagick>=7.0.0-0<7.0.6-6
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=17.10
Canonical Ubuntu Linux=18.04
debian/imagemagick
8:6.7.7.10-5+deb7u168:6.8.9.9-5+deb8u118:6.9.7.4+dfsg-11+deb9u48:6.9.9.34+dfsg-3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 8:6.7.7.10-5+deb7u16Fixed in 8:6.8.9.9-5+deb8u11Fixed in 8:6.9.7.4+dfsg-11+deb9u4Fixed in 8:6.9.9.34+dfsg-3
  2. Upgrade

    Upgrade ImageMagick to a version that resolves this vulnerability.

    Fixed in 7.0.6-6

Event History

Aug 28, 2017
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
Description
Apr 28, 2021
Data Sourced
06:12 PM
Weakness
Data Sourced
via NVD·06:12 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·06:12 PM
Affected Software
Nov 21, 2024
Updated
via NVD·03:10 AM
RemedyAffected Software
Apr 20, 2025
Updated
via NVD·01:37 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2017-12877?

The severity of CVE-2017-12877 is medium with a severity value of 6.5.

2

How does CVE-2017-12877 affect ImageMagick?

CVE-2017-12877 affects ImageMagick versions before 7.0.6-6.

3

How can remote attackers exploit CVE-2017-12877?

Remote attackers can exploit CVE-2017-12877 by using a crafted file to cause a denial of service.

4

Is there a fix available for CVE-2017-12877 in Ubuntu?

Yes, Ubuntu provides fixes for CVE-2017-12877 with the following versions: 8:6.9.7.4+dfsg-16ubuntu2.2, 8:6.9.7.4+dfsg-16ubuntu6.2, 8:6.9.9.34+dfsg-3, 8:6.8.9.9-7ubuntu5.11, and 8:6.7.7.10-6ubuntu3.11.

5

Where can I find more information about CVE-2017-12877?

You can find more information about CVE-2017-12877 at the following references: http://www.openwall.com/lists/oss-security/2017/08/16/2, https://blogs.gentoo.org/ago/2017/08/10/imagemagick-use-after-free-in-destroyimage-image-c/, and https://github.com/ImageMagick/ImageMagick/commit/04178de2247e353fc095846784b9a10fefdbf890.

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