CVE-2026-116158
Low · 2.5CVSS
2.5
EPSS
0.1%
Published
Oct 25, 2026
CISA due date
—
Cloudanix analysis
A bug in widely used image software can let someone make the program use up all available memory and stop working.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- High
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Memory leak in the magick compare command due to missing cleanup on operation failure, allowing repeated failed operations to exhaust available memory and trigger denial of service.
Why it matters to the business
Attackers with the ability to invoke the affected command can cause image processing services or applications to become unresponsive, leading to operational disruption and potential downtime for any workflows relying on ImageMagick.
How an attack unfolds
An attacker supplies specially crafted inputs that cause the compare operation to fail repeatedly; each failure leaks memory without cleanup, and sustained repetition exhausts system memory until the process or host becomes unresponsive.
How to fix it
Upgrade ImageMagick to version 7.1.2-33 or later; rebuild and redeploy any dependent applications or containers after the update.
How to confirm the fix worked
Verify the installed version reports 7.1.2-33 or newer; execute compare operations with known failing inputs and confirm memory usage remains stable without leaks.
Typical attack path
- Locate a system or application using a vulnerable ImageMagick version
- Gain the ability to invoke the magick compare command (local execution or via an exposed interface)
- Craft and submit inputs designed to trigger compare failures
- Repeat the failing operation at high volume to accelerate memory exhaustion
- Observe service degradation or crash confirming denial of service
How to detect it
Review process memory usage logs and application error logs for repeated compare command failures; correlate with spikes in memory consumption on hosts running ImageMagick.
What your security team should do
- Prioritize patching ImageMagick installations that process untrusted inputs or are reachable by external users
- Inventory all deployments and containers using ImageMagick and schedule upgrades within standard change windows
- Restrict execution of the compare command to trusted contexts where possible until patches are applied
- Monitor for high memory usage patterns in image-processing workloads as a temporary detection measure
The record
ImageMagick before 7.1.2-33 contains a memory leak vulnerability in the magick compare command caused by missing cleanup when an operation fails. Attackers can supply inputs that trigger repeated failed compare operations to exhaust memory and cause denial of service.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-119286 GraphQL-core is a Python port of the GraphQL.js reference implementation. CWE-401
- CVE-2026-116157 ImageMagick before 7.1.2-33 contains a memory leak vulnerability in PerlMagick that fails… CWE-401
- CVE-2026-116159 ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 contains a memory leak in the… CWE-401
- CVE-2026-116156 ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 contains a memory leak caused by a… CWE-401
- CVE-2026-116151 ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 contains a memory leak in the JNG… CWE-401
- CVE-2026-116155 ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 contains a memory leak in the… CWE-401
- CVE-2026-116152 ImageMagick before 7.1.2-33 contains a memory leak vulnerability in the MAT decoder that… CWE-401
- CVE-2026-116154 ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 contains a memory leak in its XML… CWE-401