CVE-2016-8678
Medium · 5.5CVSS
5.5
EPSS
1.6%
Published
Feb 15, 2017
CISA due date
—
Cloudanix analysis
A bug in older image-handling software can make programs crash when they try to open certain specially crafted picture files, which may briefly interrupt any services that rely on those programs.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- No Fix Yet
- Effort
- Other
- Patch risk
- Other
What it actually does
The flaw triggers an out-of-bounds read inside the IsPixelMonochrome pixel accessor, causing an immediate process crash and denial of service when a malformed image file is processed.
Why it matters to the business
Organizations using the listed packages may experience unplanned outages or degraded image-processing workloads if untrusted files reach the vulnerable code path; the issue has been present for years with no observed exploitation, keeping immediate operational risk low.
How an attack unfolds
An attacker crafts a specially formed image file that reaches the monochrome pixel check, then supplies the file to any local process that uses the affected ImageMagick code; the read occurs on the first access attempt and terminates the process without further attacker control.
How to fix it
Upgrade every affected package to the listed fixed version: crossplane-provider-azure (Chainguard) 1.0.1-r1, crossplane-provider-azure (Wolfi) 1.0.1-r1, and the corresponding authorization, family, managedidentity, sql, and storage variants at the same 1.0.1-r1 level for both Chainguard and Wolfi distributions.
How to confirm the fix worked
Query installed package versions on build and runtime images; confirm each crossplane-provider-azure component reports a version at or above 1.0.1-r1 and re-test image-processing workflows with known-good and edge-case files.
Typical attack path
- Obtain or generate a malicious image file that triggers the monochrome accessor path
- Place the file in a location reachable by a local user or service that invokes image processing
- Trigger the vulnerable code path through normal file handling or automated processing
- Observe process termination and resulting denial of service
How to detect it
Search process and application logs for abrupt terminations immediately after image-file operations; because the vulnerability is local-only and has no public exploits, focus on crash dumps or segfault entries that coincide with new or untrusted image files.
What your security team should do
- Apply the 1.0.1-r1 updates to all listed packages in the next maintenance window
- Add the fixed package versions to automated dependency scanners and build pipelines
- Review any custom image-processing code paths that accept untrusted files and apply least-privilege execution contexts
- Monitor EPSS and exploit maturity signals quarterly; no urgent action required given stable low scores and absence from KEV
The record
The IsPixelMonochrome function in MagickCore/pixel-accessor.h in ImageMagick 7.0.3.0 allows remote attackers to cause a denial of service (out-of-bounds read and crash) via a crafted file. NOTE: the vendor says "This is a Q64 issue and we do not support Q64."
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | imagemagick | 0 | No fix |
| Debian:11 | imagemagick | 0 | No fix |
| Debian:12 | imagemagick | 0 | No fix |
| Debian:13 | imagemagick | 0 | No fix |
| Mageia:6 | converseen | 0 | 0.9.6.2-1.3.mga6 |
| Mageia:6 | cuneiform-linux | 0 | 1.1.0-9.2.mga6 |
| Mageia:6 | dvdauthor | 0 | 0.7.2-2.2.mga6 |
| Mageia:6 | emacs | 0 | 24.5-8.3.mga6 |
| Mageia:6 | imagemagick | 0 | 6.9.9.41-1.mga6 |
| Mageia:6 | inkscape | 0 | 0.92.1-2.2.mga6 |
| Mageia:6 | k3d | 0 | 0.8.0.5-5.2.mga6 |
| Mageia:6 | kxstitch | 0 | 2.0.0-2.2.mga6 |
| Mageia:6 | libopenshot | 0 | 0.1.8-1.2.mga6 |
| Mageia:6 | ocaml-glmlite | 0 | 0.03.51-17.2.mga6 |
| Mageia:6 | perl-Image-SubImageFind | 0 | 0.30.0-6.2.mga6 |
| Mageia:6 | pfstools | 0 | 2.0.6-3.2.mga6 |
| Mageia:6 | php-imagick | 0 | 3.4.1-6.2.mga6 |
| Mageia:6 | php-magickwand | 0 | 1.0.9.2-10.2.mga6 |
| Mageia:6 | psiconv | 0 | 0.9.8-26.2.mga6 |
| Mageia:6 | pythonmagick | 0 | 0.9.12-7.2.mga6 |
| Mageia:6 | ruby-rmagick | 0 | 2.15.4-12.2.mga6 |
| Mageia:6 | synfig | 0 | 1.2.1-2.2.mga6 |
| Mageia:6 | vdr-plugin-skinelchi | 0 | 0.2.8-8.2.mga6 |
| Mageia:6 | vdr-plugin-skinenigmang | 0 | 0.1.2-10.2.mga6 |
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