CVE-2017-14741
Medium · 6.5CVSS
6.5
EPSS
1.4%
Published
Sep 26, 2017
CISA due date
—
Cloudanix analysis
A flaw in image-handling software can make systems using it freeze or slow down dramatically if they encounter certain specially prepared font files.
- 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
The ReadCAPTIONImage function in ImageMagick enters an infinite loop when processing a specially crafted font file, leading to denial of service through unbounded CPU consumption.
Why it matters to the business
Applications relying on vulnerable image processing components may experience service outages or degraded performance when handling untrusted font inputs, increasing operational costs and potential downtime for dependent services.
How an attack unfolds
An attacker crafts a malicious font file that triggers the infinite loop in the caption image decoder and supplies it to any functionality that invokes ImageMagick's caption coder, such as rendering text overlays on images.
How to fix it
Upgrade kubernetes-dashboard (Chainguard) and kubernetes-dashboard (Wolfi) to version 2.7.0-r13 or later, which resolves the infinite loop in the caption decoder. Where direct upgrades are not feasible, isolate image-processing workloads and apply strict input validation or sandboxing around font handling.
How to confirm the fix worked
Confirm the installed ImageMagick version is at or above the fixed release, reprocess a known-triggering font sample in a controlled environment to verify termination, and review application dependency manifests for the updated package versions.
Typical attack path
- Identify an application endpoint or feature that processes user-supplied images or fonts through ImageMagick
- Prepare a minimal font file engineered to cause the caption decoder to loop indefinitely
- Upload or submit the crafted font via the vulnerable code path
- Observe resource exhaustion and service unavailability on the target system
How to detect it
Review application and container logs for repeated invocations of caption or font-related processing that coincide with high CPU usage; examine any stored or uploaded font files for anomalous structures if exploitation is suspected.
What your security team should do
- Prioritize upgrade of affected kubernetes-dashboard packages to 2.7.0-r13 within standard change windows
- Audit any custom image-processing pipelines for direct or indirect use of ImageMagick caption functionality
- Implement runtime resource limits and monitoring for image-processing containers to contain potential loops
- Add the CVE to vulnerability scanners and block builds that pull pre-fix package versions
The record
The ReadCAPTIONImage function in coders/caption.c in ImageMagick 7.0.7-3 allows remote attackers to cause a denial of service (infinite loop) via a crafted font 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:7 | imagemagick | 0 | 8:6.7.7.10-5+deb7u17 |
| Debian:8 | imagemagick | 0 | 8:6.8.9.9-5+deb8u16 |
| Debian:9 | imagemagick | 0 | 8:6.9.7.4+dfsg-11+deb9u10 |
| 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 |
| 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-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