# CVE-2026-123273: ImageMagick infinite loop in SVG decoder

Source: https://junglewise.ai/threats/cve-2026-123273-imagemagick-before-7-1-2-35-and-6-9-13-60-contains-an-infinite  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-11-05. Updated: 2026-11-05  
License: CC BY 4.0 with a link back

CVE-2026-123273 · Severity: medium · CVSS 6.5 · Published 2026-11-05

ImageMagick is a widely-used image manipulation library that processes various image formats including SVG. A crafted SVG file can cause an infinite loop during decoding, consuming CPU and hanging the application that processes the image. An attacker could exploit this for denial of service by submitting malicious SVG files to any service that uses ImageMagick for image processing.

Technologies: [ImageMagick](https://junglewise.ai/threats/technologies/imagemagick). Vendors: [ImageMagick](https://junglewise.ai/threats/vendors/imagemagick).

## Quick answers

**Is CVE-2026-123273 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-123273 being exploited in the wild.

**How severe is CVE-2026-123273?** Medium severity, with a CVSS score of 6.5, published 5 November 2026.

**Which products and versions are affected?** ImageMagick before 7.1.2-35 and 6.9.13-60.

**Is there a fix for CVE-2026-123273?** Yes: fixed in ImageMagick 7.1.2-35, 6.9.13-60. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-123273 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-123273?** Check whether you run ImageMagick at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in ImageMagick 7.1.2-35, 6.9.13-60

## Technical details

The vulnerability exists in the QueueAuthenticPixelCacheNexus function in MagickCore/cache.c, which fails to validate that requested pixel region width and height are non-zero and do not exceed image bounds. An attacker can craft an SVG that repeatedly requests a zero-width or zero-height pixel region, causing an infinite loop. The fix adds validation to reject requests with zero dimensions or out-of-bounds regions.

## Affected products

- ImageMagick ImageMagick before 7.1.2-35 and 6.9.13-60

## Timeline

- 2026-11-05: disclosed

## References

- [https://github.com/ImageMagick/ImageMagick/blob/3a9639c0bd21f61f22fcce4c5f6838f1f0d8f738/MagickCore/cache.c](https://github.com/ImageMagick/ImageMagick/blob/3a9639c0bd21f61f22fcce4c5f6838f1f0d8f738/MagickCore/cache.c)
- [https://github.com/ImageMagick/ImageMagick/commit/c5f2c6c9fb1458f960a506691c9351e9da6d2247](https://github.com/ImageMagick/ImageMagick/commit/c5f2c6c9fb1458f960a506691c9351e9da6d2247)

## Related threats

- [ImageMagick memory leak in XMP profile handling](https://junglewise.ai/threats/cve-2026-116155-imagemagick-before-6-9-13-58-and-7-x-before-7-1-2-33-contains-a)
- [ImageMagick memory leak in XML parsing depth limit](https://junglewise.ai/threats/cve-2026-116154-imagemagick-before-6-9-13-58-and-7-x-before-7-1-2-33-contains-a)
- [ImageMagick memory leak in MAT decoder](https://junglewise.ai/threats/cve-2026-116152-imagemagick-before-7-1-2-33-contains-a-memory-leak-vulnerability)
- [ImageMagick stack buffer overflow in bzip2 decompression](https://junglewise.ai/threats/cve-2026-116149-imagemagick-before-6-9-13-58-and-7-x-before-7-1-2-33-contains-a)
- [ImageMagick policy bypass in UHDR decoder](https://junglewise.ai/threats/cve-2026-116141-imagemagick-before-7-1-2-33-contains-a-policy-bypass)
