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

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. 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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.