CVE-2017-14625
Critical · 9.8CVSS
9.8
EPSS
3.2%
Published
Sep 21, 2017
CISA due date
—
Cloudanix analysis
A problem in image handling software lets attackers crash programs or potentially seize control by feeding them bad picture files.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- 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 sixel_output_create within coders/sixel.c allows memory corruption that can result in denial of service or remote code execution when processing malicious sixel images.
Why it matters to the business
Systems that process untrusted images face risk of crashes or full compromise; older vulnerable packages increase exposure window despite low observed exploitation rates and stable EPSS scores.
How an attack unfolds
An attacker crafts a sixel image file that triggers the NULL dereference during parsing in ImageMagick's sixel decoder; the malformed input is supplied to any application or service using the affected library, leading to memory corruption and potential arbitrary code execution.
How to fix it
Upgrade affected packages to the fixed versions: rootlesskit (Chainguard) 2.1.0-r1, rootlesskit (Wolfi) 2.1.0-r1, rootlesskit-config-nonroot (Chainguard) 2.1.0-r1, and rootlesskit-config-nonroot (Wolfi) 2.1.0-r1. Rebuild and redeploy any dependent container images.
How to confirm the fix worked
Verify package versions match or exceed the listed fixed releases; test image processing pipelines with known sixel test cases to confirm absence of crashes on malformed input.
Typical attack path
- Identify a target service or application that processes images using the vulnerable ImageMagick library
- Craft a malicious sixel-encoded image file designed to dereference a NULL pointer in sixel_output_create
- Deliver the image via network upload, email attachment, or web request
- Trigger processing of the image to induce memory corruption
- Leverage corruption for denial of service or to execute arbitrary code
How to detect it
Review application logs for segmentation faults or crashes during image processing; inspect process core dumps or stack traces referencing sixel.c; search for sixel file uploads or conversions around crash timestamps.
What your security team should do
- Prioritize upgrade of all listed rootlesskit packages to 2.1.0-r1 within maintenance windows
- Scan container registries and build pipelines for any remaining vulnerable ImageMagick dependencies
- Disable sixel format support if not required by applications
- Monitor EPSS and KEV updates for changes in observed exploitation
The record
ImageMagick 7.0.7-0 Q16 has a NULL Pointer Dereference vulnerability in the function sixel_output_create in coders/sixel.c.
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: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
- CVE-2017-17682 In ImageMagick 7.0.7-12 Q16, a large loop vulnerability was found in the function… Also affects imagemagick
- CVE-2017-17681 In ImageMagick 7.0.7-12 Q16, an infinite loop vulnerability was found in the function… Also affects imagemagick
- CVE-2017-15281 ReadPSDImage in coders/psd.c in ImageMagick 7.0.7-6 allows remote attackers to cause a… Also affects imagemagick
- CVE-2017-15017 ImageMagick 7.0.7-0 Q16 has a NULL pointer dereference vulnerability in ReadOneMNGImage… Also affects imagemagick
- CVE-2017-15015 ImageMagick 7.0.7-0 Q16 has a NULL pointer dereference vulnerability in… Also affects imagemagick
- CVE-2017-14739 The AcquireResampleFilterThreadSet function in magick/resample-private.h in ImageMagick… Also affects imagemagick
- CVE-2017-14741 The ReadCAPTIONImage function in coders/caption.c in ImageMagick 7.0.7-3 allows remote… Also affects imagemagick
- CVE-2017-14626 ImageMagick 7.0.7-0 Q16 has a NULL Pointer Dereference vulnerability in the function… Also affects imagemagick