CVE-2014-8354
Medium · 6.5CVSS
6.5
EPSS
2.9%
Published
Apr 11, 2017
CISA due date
—
Cloudanix analysis
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
- Create a crafted image file that exploits the resize.c HorizontalFilter function
- Deliver the image via upload, email attachment, or web request to a target application
- 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
- CVE-2014-2030 Stack-based buffer overflow in the WritePSDImage function in coders/psd.c in ImageMagick… Also affects imagemagick
- CVE-2017-15277 ReadGIFImage in coders/gif.c in ImageMagick 7.0.6-1 and GraphicsMagick 1.3.26 leaves the… Also affects imagemagick
- CVE-2017-14528 The TIFFSetProfiles function in coders/tiff.c in ImageMagick 7.0.6 has incorrect… Also affects imagemagick
- CVE-2017-13144 In ImageMagick before 6.9.7-10, there is a crash (rather than a "width or height exceeds… Also affects imagemagick
- CVE-2017-10928 In ImageMagick 7.0.6-0, a heap-based buffer over-read in the GetNextToken function in… Also affects imagemagick
- CVE-2017-7606 coders/rle.c in ImageMagick 7.0.5-4 has an "outside the range of representable values of… Also affects imagemagick
- CVE-2017-6498 An issue was discovered in ImageMagick 6.9.7. Also affects imagemagick
- CVE-2016-10062 The ReadGROUP4Image function in coders/tiff.c in ImageMagick does not check the return… Also affects imagemagick