Cloudanix VulnDB

CVE-2017-14532

Critical · 9.8

CVSS

9.8

EPSS

2.6%

Published

Sep 18, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in image processing software can let attackers crash applications or run harmful code by sending a specially made picture file.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Full Compromise
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

NULL pointer dereference in TIFFIgnoreTags during TIFF image processing that can lead to application crash or memory corruption.

Why it matters to the business

Applications that process untrusted images can experience denial of service or potential remote code execution, disrupting services that rely on image handling libraries.

How an attack unfolds

An attacker crafts a malformed TIFF image that triggers the NULL pointer access when the library parses the file, causing the process to crash or potentially allowing arbitrary code execution in the context of the vulnerable application.

How to fix it

Upgrade affected packages to the fixed versions: contour-1.28 (Chainguard) 1.28.0-r2 or later, contour-1.28-bitnami-compat (Chainguard) 1.28.0-r2 or later, and contour-1.28-compat (Chainguard) 1.28.0-r2 or later. Rebuild and redeploy containers using the updated packages.

How to confirm the fix worked

Verify installed package versions match or exceed the fixed releases, run regression tests with TIFF images, and confirm the application no longer crashes on the previously triggering inputs.

Typical attack path

  1. Identify a target application that uses the vulnerable image library to process user-supplied images
  2. Prepare a specially crafted TIFF file containing structures that reach the faulty code path
  3. Deliver the malicious image via upload, email attachment, or network request
  4. Trigger processing of the image to dereference the NULL pointer

How to detect it

Review application logs for segmentation faults or crashes during TIFF image processing, inspect web server or upload service logs for unexpected TIFF file uploads around the time of incidents, and correlate with process termination events.

What your security team should do

  • Prioritize upgrade of all instances to the fixed package versions within the next maintenance window
  • Implement input validation or sandboxing for image processing until patches are applied
  • Monitor EPSS and exploit maturity indicators for any future increase in risk
  • Review downstream dependents for similar exposure if the library is used in other components

The record

ImageMagick 7.0.7-0 has a NULL Pointer Dereference in TIFFIgnoreTags in coders/tiff.c.

Affected packages

Ecosystem Package Introduced Fixed
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:8 imagemagick 0 8:6.8.9.9-5+deb8u16
Debian:9 imagemagick 0 8:6.9.7.4+dfsg-11+deb9u10
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