# CVE-2026-107209: ImageMagick double free in RSVG decoder

Source: https://junglewise.ai/threats/cve-2026-107209-imagemagick-is-free-and-open-source-software-used-for-editing  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-07. Updated: 2026-10-21  
License: CC BY 4.0 with a link back

CVE-2026-107209 · Severity: medium · CVSS 5.9 · Published 2026-10-07

ImageMagick is software that processes and edits digital images. When built without Cairo support, a specially crafted RSVG image file can trigger a double-free memory error that causes the application to crash. An attacker could exploit this by providing a malicious image file to crash systems that rely on 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-107209 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-107209 being exploited in the wild.

**How severe is CVE-2026-107209?** Medium severity, with a CVSS score of 5.9, published 7 October 2026.

**Which products and versions are affected?** ImageMagick before 6.9.13-55 and 7.1.2-30.

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

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

**Am I affected by CVE-2026-107209?** 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-55, 7.1.2-30

## Technical details

A double-free vulnerability exists in the RSVG decoder (coders/svg.c) when ImageMagick is compiled without Cairo support. When processing a crafted RSVG image that reaches resource limits, the svg_handle pointer is freed twice—once via rsvg_handle_free() and then again implicitly through reference counting, causing use-after-free. This requires the attacker to supply a malicious RSVG image file as input.

## Affected products

- ImageMagick ImageMagick before 6.9.13-55 and 7.1.2-30

## Timeline

- 2026-10-07: disclosed

## References

- [https://github.com/ImageMagick/ImageMagick/commit/326451aae51ac2dabc99fe66e063de6ec14cf8c8](https://github.com/ImageMagick/ImageMagick/commit/326451aae51ac2dabc99fe66e063de6ec14cf8c8)
- [https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-30](https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-30)

## 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)
