Cloudanix VulnDB

CVE-2016-10062

Medium · 5.5

CVSS

5.5

EPSS

1.9%

Published

Mar 2, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in image software can make it stop working when it tries to open certain specially created image files.

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

What it actually does

The ReadGROUP4Image function in coders/tiff.c fails to check the return value of fwrite, allowing unhandled errors from a crafted TIFF file to trigger an application crash.

Why it matters to the business

Image processing workflows can be interrupted by unexpected application crashes when handling certain image files, leading to downtime for users and systems relying on ImageMagick.

How an attack unfolds

An attacker creates a specially crafted TIFF image that causes fwrite to fail inside ReadGROUP4Image; when the file is opened, the missing error check results in a crash. No known threat actors or campaigns are associated with this issue.

How to fix it

Upgrade to ImageMagick commit 2615e69b7e7d72e3bd5eef828708d08d1490b7fe or a later version that properly validates the fwrite return value.

How to confirm the fix worked

Confirm the fix is present by inspecting the source for error checking after fwrite in tiff.c or by testing with a crafted file that previously caused a crash.

Typical attack path

  1. Craft a malicious TIFF file that triggers fwrite failure in ReadGROUP4Image
  2. Deliver the file to a target system or user
  3. Trick the victim into opening the file using ImageMagick
  4. Trigger denial-of-service crash

How to detect it

Review application and system logs for unexpected crashes or terminations during TIFF image processing; correlate with file open events involving untrusted images.

What your security team should do

  • Upgrade all ImageMagick installations to the fixed commit or newer release
  • Review and restrict image file processing to trusted sources
  • Monitor for application crashes during TIFF handling

The record

The ReadGROUP4Image function in coders/tiff.c in ImageMagick does not check the return value of the fwrite function, which allows remote attackers to cause a denial of service (application crash) via a crafted file.

Affected packages

Ecosystem Package Introduced Fixed
Chainguard imagemagick 0 0
Chainguard imagemagick-6 0 0
Chainguard imagemagick-6-dev 0 0
Chainguard imagemagick-6-doc 0 0
Chainguard imagemagick-6-static 0 0
Chainguard imagemagick-7 0 0
Chainguard imagemagick-7-dev 0 0
Chainguard imagemagick-7-doc 0 0
Chainguard imagemagick-7-static 0 0
Chainguard imagemagick-dev 0 0
Chainguard imagemagick-doc 0 0
Chainguard imagemagick-static 0 0
Debian:11 imagemagick 0 8:6.9.7.4+dfsg-1
Debian:12 imagemagick 0 8:6.9.7.4+dfsg-1
Debian:13 imagemagick 0 8:6.9.7.4+dfsg-1
Debian:7 imagemagick 0 8:6.7.7.10-5+deb7u12
Debian:8 imagemagick 0 8:6.8.9.9-5+deb8u7
SUSE:Linux Enterprise Desktop 12 SP1 ImageMagick 0 6.8.8.1-59.1
SUSE:Linux Enterprise Desktop 12 SP2 ImageMagick 0 6.8.8.1-59.1
SUSE:Linux Enterprise Server 12 SP1 ImageMagick 0 6.8.8.1-59.1
SUSE:Linux Enterprise Server 12 SP2 ImageMagick 0 6.8.8.1-59.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 ImageMagick 0 6.8.8.1-59.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 ImageMagick 0 6.8.8.1-59.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 ImageMagick 0 6.8.8.1-59.1
SUSE:Linux Enterprise Software Development Kit 12 SP1 ImageMagick 0 6.8.8.1-59.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 ImageMagick 0 6.8.8.1-59.1
SUSE:Linux Enterprise Workstation Extension 12 SP1 ImageMagick 0 6.8.8.1-59.1
SUSE:Linux Enterprise Workstation Extension 12 SP2 ImageMagick 0 6.8.8.1-59.1
Ubuntu:14.04:LTS imagemagick 0 8:6.7.7.10-6ubuntu3.5
Ubuntu:16.04:LTS imagemagick 0 8:6.8.9.9-7ubuntu5.5
Wolfi imagemagick 0 0
Wolfi imagemagick-7 0 0
Wolfi imagemagick-7-dev 0 0
Wolfi imagemagick-7-doc 0 0
Wolfi imagemagick-7-static 0 0
Wolfi imagemagick-dev 0 0
Wolfi imagemagick-doc 0 0
Wolfi imagemagick-static 0 0

Related vulnerabilities