CVE-2017-17681
Medium · 6.5CVSS
6.5
EPSS
3.0%
Published
Dec 14, 2017
CISA due date
—
Cloudanix analysis
A flaw in image processing software lets attackers send a specially made picture file that makes the computer work endlessly on it, slowing everything down or stopping it from working.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Infinite loop in ReadPSDChannelZip during PSD image parsing causes unbounded CPU consumption leading to denial of service.
Why it matters to the business
Systems that process untrusted PSD images can experience sustained high CPU load, degrading performance or causing outages until the process is terminated.
How an attack unfolds
An attacker creates a specially malformed PSD file that triggers the infinite loop inside ReadPSDChannelZip, then supplies the file to any application using the vulnerable ImageMagick library so that parsing consumes all available CPU.
How to fix it
Upgrade affected packages to the fixed versions provided: kubernetes-csi-external-resizer-1.8 (Chainguard) to 1.8.1-r1 or later. Rebuild and redeploy any containers or workloads that embed the vulnerable ImageMagick library.
How to confirm the fix worked
Confirm the installed ImageMagick or dependent package version meets or exceeds the fixed release, then attempt to process a known-triggering PSD sample in a controlled environment to verify the loop no longer occurs.
Typical attack path
- Craft a PSD image containing data that forces ReadPSDChannelZip into an infinite loop
- Deliver the malicious PSD to a target application or service that uses ImageMagick for image processing
- Trigger image parsing, causing CPU exhaustion and service degradation
How to detect it
Monitor for processes consuming sustained high CPU while handling PSD files; inspect application or container logs for repeated PSD parsing attempts around the time of resource exhaustion.
What your security team should do
- Prioritize patching all instances of the affected package to the stated fixed version within normal change windows
- Add ImageMagick version checks to container image scanning and CI pipelines
- Restrict acceptance of PSD files from untrusted sources until patches are deployed
The record
In ImageMagick 7.0.7-12 Q16, an infinite loop vulnerability was found in the function ReadPSDChannelZip in coders/psd.c, which allows attackers to cause a denial of service (CPU exhaustion) via a crafted psd image file.
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:9 | imagemagick | 0 | 8:6.9.7.4+dfsg-11+deb9u9 |
| SUSE:Linux Enterprise Desktop 12 SP2 | ImageMagick | 0 | 6.8.8.1-71.33.1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.33.1 |
| SUSE:Linux Enterprise Server 12 SP2 | ImageMagick | 0 | 6.8.8.1-71.33.1 |
| SUSE:Linux Enterprise Server 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.33.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | ImageMagick | 0 | 6.8.8.1-71.33.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | ImageMagick | 0 | 6.8.8.1-71.33.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.33.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | ImageMagick | 0 | 6.8.8.1-71.33.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.33.1 |
| SUSE:Linux Enterprise Workstation Extension 12 SP2 | ImageMagick | 0 | 6.8.8.1-71.33.1 |
| SUSE:Linux Enterprise Workstation Extension 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.33.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
- CVE-2017-17682 In ImageMagick 7.0.7-12 Q16, a large 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
- CVE-2017-14625 ImageMagick 7.0.7-0 Q16 has a NULL Pointer Dereference vulnerability in the function… Also affects imagemagick