# CVE-2026-109262: ImageMagick memory leak in SVG encoder WriteSVGImage

Source: https://junglewise.ai/threats/cve-2026-109262-imagemagick-before-6-9-13-57-and-7-x-before-7-1-2-32-contains-a  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-12. Updated: 2026-10-16  
License: CC BY 4.0 with a link back

CVE-2026-109262 · Severity: medium · CVSS 5.3 · Published 2026-10-12

ImageMagick is an image processing library used by web servers, CMS platforms, and other applications to manipulate images. A memory leak in its SVG encoder allows attackers to supply specially crafted image files that consume increasing amounts of memory, eventually causing the application to crash or become unresponsive, resulting in a denial of service.

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

## Quick answers

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

**How severe is CVE-2026-109262?** Medium severity, with a CVSS score of 5.3, published 12 October 2026.

**Which products and versions are affected?** ImageMagick 6.9.13-57 and earlier; 7.x before 7.1.2-32.

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

**How is CVE-2026-109262 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-109262?** 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 6.9.13-57, 7.1.2-32

## Technical details

The SVG encoder's WriteSVGImage function fails to release allocated memory (token and primitive_info) when handling certain error conditions with malformed SVG constructs. An attacker can supply a crafted image file processed via the SVG encoder to trigger repeated memory allocations without deallocation, leading to resource exhaustion and denial of service. The fix adds proper memory cleanup before throwing the exception.

## Affected products

- ImageMagick ImageMagick 6.9.13-57 and earlier; 7.x before 7.1.2-32

## Timeline

- 2026-09-27: disclosed
- 2026-10-12: advisory

## References

- [https://github.com/ImageMagick/ImageMagick/commit/2eff6be3785d980bb5190244ad432fe6282d29e3](https://github.com/ImageMagick/ImageMagick/commit/2eff6be3785d980bb5190244ad432fe6282d29e3)
- [https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-w288-jj5x-hhvp](https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-w288-jj5x-hhvp)

## Related threats

- [ImageMagick infinite loop in SVG decoder](https://junglewise.ai/threats/cve-2026-123273-imagemagick-before-7-1-2-35-and-6-9-13-60-contains-an-infinite)
- [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)
