CVE-2025-55160
Medium · 5.3CVSS
5.3
EPSS
0.4%
Published
Aug 13, 2025
CISA due date
—
Cloudanix analysis
A flaw in image processing software can cause certain builds to stop working when handling images, but normal versions are not affected and the problem is already fixed in newer releases.
- 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
Undefined behavior (function-type-mismatch) during splay tree cloning callback in ImageMagick causes deterministic abort under UBSan sanitizer builds, resulting in denial of service only in those instrumented environments; non-sanitized builds exhibit no crash.
Why it matters to the business
Organizations using sanitizer-enabled builds for image processing may experience service interruptions when handling manipulated images, though standard production builds remain unaffected; low exploit likelihood limits widespread operational risk.
How an attack unfolds
An attacker supplies a specially crafted image that triggers the splay tree cloning path during processing; in UBSan builds this leads to an immediate abort, achieving denial of service without requiring authentication or further privileges.
How to fix it
Upgrade to ImageMagick 6.9.13-27 or 7.1.2-1 (or the exact commits 83b6fc338ae1d38602eb5f6b307393adc3a0e1a7 for main and 61bc270b01a4632a885698ab36055292737073a2 for the 6.x branch). Rebuild any sanitizer-enabled pipelines after updating.
How to confirm the fix worked
Confirm the installed version matches or exceeds 6.9.13-27 / 7.1.2-1 and that the listed commit hashes are present in the source tree; re-run UBSan builds against the patched code to verify the abort no longer occurs on test images.
Typical attack path
- Identify a target service that processes user-supplied images with ImageMagick in a UBSan-instrumented build
- Craft or obtain an image that exercises the splay tree cloning callback
- Submit the image through normal processing channels such as upload or conversion APIs
- Trigger the undefined behavior resulting in process abort
How to detect it
Review application and system logs for unexpected process terminations or sanitizer abort messages during image processing; correlate with image upload or conversion events around the time of any observed crashes.
What your security team should do
- Prioritize upgrade of all ImageMagick instances to the fixed versions within standard change windows
- Audit build pipelines to identify any UBSan or sanitizer-enabled deployments and apply patches first
- Add version checks to dependency scanning tools to flag pre-fix releases
The record
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-27 and 7.1.2-1, there is undefined behavior (function-type-mismatch) in splay tree cloning callback. This results in a deterministic abort under UBSan (DoS in sanitizer builds), with no crash in a non-sanitized build. This issue has been patched in versions 6.9.13-27 and 7.1.2-1.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| NuGet | Magick.NET-Q16-AnyCPU | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-HDRI-AnyCPU | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-HDRI-OpenMP-arm64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-HDRI-OpenMP-x64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-HDRI-arm64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-HDRI-x64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-HDRI-x86 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-OpenMP-arm64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-OpenMP-x64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-arm64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-x64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-x86 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q8-AnyCPU | 0 | 14.8.0 |
| NuGet | Magick.NET-Q8-OpenMP-arm64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q8-OpenMP-x64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q8-arm64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q8-x64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q8-x86 | 0 | 14.8.0 |
| Debian:11 | imagemagick | 0 | No fix |
| Debian:12 | imagemagick | 0 | No fix |
| Debian:13 | imagemagick | 0 | No fix |
| Debian:14 | imagemagick | 0 | No fix |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP6 | ImageMagick | 0 | 7.1.1.21-150600.3.20.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP7 | ImageMagick | 0 | 7.1.1.43-150700.3.13.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP6 | ImageMagick | 0 | 7.1.1.21-150600.3.20.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP7 | ImageMagick | 0 | 7.1.1.43-150700.3.13.1 |
| openSUSE:Leap 15.6 | ImageMagick | 0 | 7.1.1.21-150600.3.20.1 |
| openSUSE:Tumbleweed | ImageMagick | 0 | 7.1.2.1-1.1 |
Related vulnerabilities
- CVE-2026-27799 ImageMagick is free and open-source software used for editing and manipulating digital… Also affects Magick.NET-Q16-AnyCPU
- CVE-2026-27798 ImageMagick is free and open-source software used for editing and manipulating digital… Also affects Magick.NET-Q16-AnyCPU
- GHSA-r99p-5442-q2x2 ImageMagick has a heap Buffer Over-read in its DJVU image format handler Also affects Magick.NET-Q16-AnyCPU
- GHSA-qpgx-jfcq-r59f ImageMagick: Heap Buffer Over-read in WaveletDenoise when processing small images Also affects Magick.NET-Q16-AnyCPU
- GHSA-gq5v-qf8q-fp77 ImageMagick: Heap-based Buffer Overflow in GetPixelIndex due to metadata-cache… Also affects Magick.NET-Q16-AnyCPU
- GHSA-wfx3-6g53-9fgc ImageMagick: Memory Leak in multiple coders that write raw pixel data Also affects Magick.NET-Q16-AnyCPU
- GHSA-3q5f-gmjc-38r8 ImageMagick: Memory leak in coders/txt.c without freetype Also affects Magick.NET-Q16-AnyCPU
- GHSA-xpg8-7m6m-jf56 ImageMagick: SVG-to-MVG Command Injection via coders/svg.c Also affects Magick.NET-Q16-AnyCPU