CVE-2025-55005
NoneCVSS
—
EPSS
0.3%
Published
Aug 13, 2025
CISA due date
—
Cloudanix analysis
A bug in widely used image editing software can let attackers crash programs or take control of systems by feeding them specially crafted pictures.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Data Tampering
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds write during Log-to-sRGB colorspace logmap construction when reference-black or reference-white exceeds 1024, corrupting adjacent heap memory.
Why it matters to the business
Image processing applications may crash or allow arbitrary code execution, disrupting services that handle user-supplied images and increasing risk of system compromise.
How an attack unfolds
An attacker supplies an image file containing Log colorspace metadata with reference-black or reference-white values larger than 1024; when ImageMagick prepares the transformation to sRGB it allocates an undersized logmap buffer and writes beyond its end, enabling memory corruption that can be leveraged for code execution.
How to fix it
Upgrade ImageMagick to version 7.1.2-1 or apply commit 83b6fc338ae1d38602eb5f6b307393adc3a0e1a7 in the GIT repository; rebuild any dependent applications against the patched library.
How to confirm the fix worked
Confirm installed version is at least 7.1.2-1 or contains commit 83b6fc338ae1d38602eb5f6b307393adc3a0e1a7; test processing of Log colorspace images with reference values above 1024 and verify absence of crashes or memory errors.
Typical attack path
- Craft image with oversized Log colorspace reference values
- Deliver image to target application using ImageMagick
- Trigger colorspace conversion from Log to sRGB
- Trigger out-of-bounds write during logmap initialization
- Leverage corruption for control-flow hijack or denial of service
How to detect it
Review application and system logs for ImageMagick crashes or segmentation faults during colorspace conversion; inspect image-processing pipelines for unexpected terminations when handling Log colorspace inputs.
What your security team should do
- Apply the fixed commit or version 7.1.2-1 immediately on all systems processing images
- Inventory and update all downstream packages that embed ImageMagick
- Restrict untrusted image uploads until patching is complete
- Monitor for image-processing crashes that may indicate attempted exploitation
The record
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to version 7.1.2-1, when preparing to transform from Log to sRGB colorspaces, the logmap construction fails to handle cases where the reference-black or reference-white value is larger than 1024. This leads to corrupting memory beyond the end of the allocated logmap buffer. This issue has been patched in version 7.1.2-1.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Chainguard | imagemagick-6-dev | 0 | 6.9.13.33-r0 |
| Chainguard | imagemagick-6-doc | 0 | 6.9.13.33-r0 |
| Chainguard | imagemagick-6-static | 0 | 6.9.13.33-r0 |
| 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 |
Related vulnerabilities
- GHSA-7rvh-xqp3-pr8j ImageMagick's failure to limit MVG mutual causes Stack Overflow Also affects imagemagick-6-dev
- GHSA-p27m-hp98-6637 ImageMagick's failure to limit the depth of SVG file reads caused a DoS attack Also affects imagemagick-6-dev
- CVE-2025-69204 ImageMagick converting a malicious MVG file to SVG caused an integer overflow. Also affects imagemagick-6-dev
- CVE-2025-68618 ImageMagick's failure to limit the depth of SVG file reads caused a DoS attack Also affects imagemagick-6-dev
- CVE-2025-68950 ImageMagick's failure to limit MVG mutual causes Stack Overflow Also affects imagemagick-6-dev
- CVE-2025-66628 ImageMagick is vulnerable to an Integer Overflow in TIM decoder leading to out of bounds… Also affects imagemagick-6-dev
- GHSA-6hjr-v6g4-3fm8 ImageMagick is vulnerable to an integer Overflow in TIM decoder leading to out of bounds… Also affects imagemagick-6-dev
- CVE-2025-62594 ImageMagick CLAHE : Unsigned underflow and division-by-zero lead to OOB pointer… Also affects imagemagick-6-dev