Cloudanix VulnDB

CVE-2017-13768

Medium · 6.5

CVSS

6.5

EPSS

2.1%

Published

Aug 30, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in widely used image software lets attackers crash programs simply by supplying a specially made picture file.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Null pointer dereference in IdentifyImage causes process crash when a specially crafted image is parsed.

Why it matters to the business

Applications that process user-supplied images can be forced offline, interrupting services that rely on image handling and requiring restarts or failover.

How an attack unfolds

An attacker prepares a malformed image file that triggers the null dereference in the IdentifyImage path and delivers it to any service that invokes ImageMagick on untrusted input.

How to fix it

Upgrade imagemagick6 to the commit 2f74aa6457d35e511175b1f86b80012d5d4751c7 or later; rebuild and redeploy dependent packages.

How to confirm the fix worked

Confirm the installed library reports a commit after 2f74aa6457d35e511175b1f86b80012d5d4751c7 and test that the crafted image no longer crashes the identify process.

Typical attack path

  1. Craft a minimal image file that reaches IdentifyImage with a null pointer condition
  2. Submit the file to an application endpoint that calls ImageMagick identify or similar operations
  3. Observe process termination or service unavailability

How to detect it

Monitor for unexpected ImageMagick process crashes or segmentation faults in logs when image files are processed; correlate with web or API request logs containing image uploads.

What your security team should do

  • Apply the fixed commit in all build pipelines within the next maintenance window
  • Add image-processing sandboxes or resource limits to limit blast radius until patched
  • Review image upload paths for direct calls to ImageMagick identify

The record

Null Pointer Dereference in the IdentifyImage function in MagickCore/identify.c in ImageMagick through 7.0.6-10 allows an attacker to perform denial of service by sending a crafted image file.

Affected packages

Ecosystem Package Introduced Fixed
Debian:10 imagemagick 0 8:6.9.9.34+dfsg-3
Debian:11 imagemagick 0 8:6.9.9.34+dfsg-3
Debian:12 imagemagick 0 8:6.9.9.34+dfsg-3
Debian:13 imagemagick 0 8:6.9.9.34+dfsg-3
Debian:7 imagemagick 0 8:6.7.7.10-5+deb7u17
Debian:8 imagemagick 0 8:6.8.9.9-5+deb8u16
Debian:9 imagemagick 0 8:6.9.7.4+dfsg-11+deb9u10
Mageia:6 converseen 0 0.9.6.2-1.3.mga6
Mageia:6 cuneiform-linux 0 1.1.0-9.2.mga6
Mageia:6 dvdauthor 0 0.7.2-2.2.mga6
Mageia:6 emacs 0 24.5-8.3.mga6
Mageia:6 imagemagick 0 6.9.9.41-1.mga6
Mageia:6 inkscape 0 0.92.1-2.2.mga6
Mageia:6 k3d 0 0.8.0.5-5.2.mga6
Mageia:6 kxstitch 0 2.0.0-2.2.mga6
Mageia:6 libopenshot 0 0.1.8-1.2.mga6
Mageia:6 ocaml-glmlite 0 0.03.51-17.2.mga6
Mageia:6 perl-Image-SubImageFind 0 0.30.0-6.2.mga6
Mageia:6 pfstools 0 2.0.6-3.2.mga6
Mageia:6 php-imagick 0 3.4.1-6.2.mga6
Mageia:6 php-magickwand 0 1.0.9.2-10.2.mga6
Mageia:6 psiconv 0 0.9.8-26.2.mga6
Mageia:6 pythonmagick 0 0.9.12-7.2.mga6
Mageia:6 ruby-rmagick 0 2.15.4-12.2.mga6
Mageia:6 synfig 0 1.2.1-2.2.mga6
Mageia:6 vdr-plugin-skinelchi 0 0.2.8-8.2.mga6
Mageia:6 vdr-plugin-skinenigmang 0 0.1.2-10.2.mga6
SUSE:Linux Enterprise Desktop 12 SP2 ImageMagick 0 6.8.8.1-71.47.1
SUSE:Linux Enterprise Desktop 12 SP3 ImageMagick 0 6.8.8.1-71.47.1
SUSE:Linux Enterprise Server 11 SP4 ImageMagick 0 6.4.3.6-78.40.1
SUSE:Linux Enterprise Server 12 SP2 ImageMagick 0 6.8.8.1-71.47.1
SUSE:Linux Enterprise Server 12 SP3 ImageMagick 0 6.8.8.1-71.47.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 ImageMagick 0 6.8.8.1-71.47.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 ImageMagick 0 6.4.3.6-78.40.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 ImageMagick 0 6.8.8.1-71.47.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 ImageMagick 0 6.8.8.1-71.47.1
SUSE:Linux Enterprise Software Development Kit 11 SP4 ImageMagick 0 6.4.3.6-78.40.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 ImageMagick 0 6.8.8.1-71.47.1
SUSE:Linux Enterprise Software Development Kit 12 SP3 ImageMagick 0 6.8.8.1-71.47.1
SUSE:Linux Enterprise Workstation Extension 12 SP2 ImageMagick 0 6.8.8.1-71.47.1
SUSE:Linux Enterprise Workstation Extension 12 SP3 ImageMagick 0 6.8.8.1-71.47.1
Ubuntu:14.04:LTS imagemagick 0 8:6.7.7.10-6ubuntu3.11
Ubuntu:16.04:LTS imagemagick 0 8:6.8.9.9-7ubuntu5.11
Ubuntu:18.04:LTS imagemagick 0 8:6.9.7.4+dfsg-16ubuntu6.2

Related vulnerabilities