CVE-2017-15281
High · 8.8CVSS
8.8
EPSS
2.7%
Published
Oct 12, 2017
CISA due date
—
Cloudanix analysis
A flaw in older image-handling software can make programs crash or behave unexpectedly when they open a specially made picture file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Uninitialized value usage in PSD image parsing leads to conditional jumps based on garbage data, enabling memory corruption that can crash the process or permit further attacker-controlled behavior.
Why it matters to the business
Image processing pipelines handling untrusted PSD files may experience sudden crashes or unexpected behavior, disrupting workflows that rely on ImageMagick for image conversion or editing; the issue affects older builds still present in some containerized deployments.
How an attack unfolds
An attacker creates a specially crafted PSD file that triggers the uninitialized-value condition in ReadPSDImage, then delivers the file to a victim application using the vulnerable ImageMagick library; when the file is opened the corruption occurs, potentially allowing denial of service or escalation to other impacts.
How to fix it
Upgrade affected packages to the fixed versions: tctl-fips, tctl-authorization-plugin-fips, tctl-authorization-plugin-fips-compat, and tctl-fips-compat to 1.18.0-r3 or later; rebuild and redeploy any containers using the patched Chainguard images.
How to confirm the fix worked
Verify installed package versions match or exceed the listed fixed releases; run regression tests with known-triggering PSD samples to confirm absence of the crash condition.
Typical attack path
- Craft malicious PSD file exploiting uninitialized memory in PSD decoder
- Deliver file via email, web download, or upload to target application
- Victim application invokes ImageMagick to process the PSD
- ReadPSDImage encounters conditional jump on uninitialized value
- Process crashes or memory state becomes attacker-influenced
How to detect it
Review application logs for ImageMagick crashes or segmentation faults during PSD processing; search process or container startup logs for version strings below the fixed release; examine file-processing audit trails for unexpected PSD files received around the time of any observed instability.
What your security team should do
- Immediately update all listed Chainguard packages to 1.18.0-r3 or newer
- Scan container registries and build pipelines for any remaining vulnerable ImageMagick versions
- Disable PSD format support via policy if the feature is not required
- Monitor EPSS and KEV status for any future increase in exploit activity
The record
ReadPSDImage in coders/psd.c in ImageMagick 7.0.7-6 allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted file, related to "Conditional jump or move depends on uninitialised value(s)."
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+deb7u18 |
| 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.20.1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.20.1 |
| SUSE:Linux Enterprise Server 11 SP4 | ImageMagick | 0 | 6.4.3.6-7.78.17.1 |
| SUSE:Linux Enterprise Server 12 SP2 | ImageMagick | 0 | 6.8.8.1-71.20.1 |
| SUSE:Linux Enterprise Server 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.20.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | ImageMagick | 0 | 6.8.8.1-71.20.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | ImageMagick | 0 | 6.4.3.6-7.78.17.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | ImageMagick | 0 | 6.8.8.1-71.20.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.20.1 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | ImageMagick | 0 | 6.4.3.6-7.78.17.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | ImageMagick | 0 | 6.8.8.1-71.20.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.20.1 |
| SUSE:Linux Enterprise Workstation Extension 12 SP2 | ImageMagick | 0 | 6.8.8.1-71.20.1 |
| SUSE:Linux Enterprise Workstation Extension 12 SP3 | ImageMagick | 0 | 6.8.8.1-71.20.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-17681 In ImageMagick 7.0.7-12 Q16, an infinite loop vulnerability was found in the function… 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