Cloudanix VulnDB

CVE-2014-8354

Medium · 6.5

CVSS

6.5

EPSS

2.9%

Published

Apr 11, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in widely used image-handling software can make programs crash when they open certain specially crafted picture files.

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

The HorizontalFilter function in resize.c performs an out-of-bounds read when processing a crafted image, resulting in a denial of service.

Why it matters to the business

Applications that rely on ImageMagick for image handling may experience crashes or unresponsiveness when ingesting untrusted image files, disrupting services that depend on image processing.

How an attack unfolds

An attacker creates a malicious image file designed to trigger the out-of-bounds read in the HorizontalFilter function and supplies it to any application or service that uses the vulnerable ImageMagick library for image operations.

How to fix it

Upgrade ImageMagick to version 6.8.9-9 or later and rebuild any dependent applications against the patched library.

How to confirm the fix worked

Confirm the installed ImageMagick version is 6.8.9-9 or newer; test image-processing workflows with known triggering files to verify absence of crashes.

Typical attack path

  1. Create a crafted image file that exploits the resize.c HorizontalFilter function
  2. Deliver the image via upload, email attachment, or web request to a target application
  3. Trigger image processing in ImageMagick to induce the out-of-bounds read and crash

How to detect it

Review application and system logs for segmentation faults or out-of-bounds access errors during image resize operations; correlate with inbound image file submissions.

What your security team should do

  • Prioritize upgrading all ImageMagick installations to 6.8.9-9 or later
  • Restrict image processing to trusted sources where feasible
  • Add runtime monitoring for image-processing service crashes

The record

The HorizontalFilter function in resize.c in ImageMagick before 6.8.9-9 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted image file.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 imagemagick 0 8:6.8.9.9-1
Debian:12 imagemagick 0 8:6.8.9.9-1
Debian:13 imagemagick 0 8:6.8.9.9-1
Debian:6.0 imagemagick 0 8:6.6.0.4-3+squeeze6
Debian:7 imagemagick 0 8:6.7.7.10-5+deb7u13
Mageia:3 imagemagick 0 6.8.1.1-2.3.mga3
Mageia:4 imagemagick 0 6.8.7.0-2.3.mga4
Ubuntu:14.04:LTS imagemagick 0 8:6.7.7.10-6ubuntu3.2
Ubuntu:16.04:LTS imagemagick 0 8:6.8.9.9-7ubuntu5.2

Related vulnerabilities