Cloudanix VulnDB

CVE-2017-14739

High · 7.5

CVSS

7.5

EPSS

3.0%

Published

Sep 26, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in widely used image-handling software lets attackers send specially crafted pictures that make programs using it crash, interrupting any service that relies on those programs.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Denial of service
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Failed memory allocation in AcquireResampleFilterThreadSet is mishandled, resulting in a NULL pointer dereference inside DistortImage that terminates the process.

Why it matters to the business

Remote attackers can trigger repeated application crashes, causing denial of service for any service that processes untrusted images with the affected ImageMagick build.

How an attack unfolds

An attacker supplies an image or request that forces the resampling filter allocation to fail; the subsequent NULL dereference in the distortion code path immediately crashes the process. No authentication or special privileges are required.

How to fix it

Upgrade addon-resizer-fips and addon-resizer-fips-compat to version 1.8.20-r1 or later; rebuild any containers that embed the vulnerable ImageMagick 7.0.7-4 code.

How to confirm the fix worked

Confirm package versions match the fixed releases, then exercise image-distortion operations under memory-pressure conditions to verify absence of the crash.

Typical attack path

  1. Deliver a crafted image or API request that exercises the resample filter path
  2. Trigger memory allocation failure inside AcquireResampleFilterThreadSet
  3. Dereference the resulting NULL pointer in DistortImage
  4. Cause immediate process termination

How to detect it

Review application and system logs for abrupt terminations originating from MagickCore/distort.c or resample-private.h; correlate with inbound image-processing requests that coincide with the crashes.

What your security team should do

  • Apply the 1.8.20-r1 updates immediately on all affected deployments
  • Add memory-pressure and malformed-image test cases to CI pipelines
  • Monitor process crash logs for DistortImage NULL dereference signatures

The record

The AcquireResampleFilterThreadSet function in magick/resample-private.h in ImageMagick 7.0.7-4 mishandles failed memory allocation, which allows remote attackers to cause a denial of service (NULL Pointer Dereference in DistortImage in MagickCore/distort.c, and application crash) via unspecified vectors.

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
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 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 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 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