Skip to content
Fencer Vulns
medium 4.9

CVE-2025-65955 json

ImageMagick has a use-after-free/double-free risk in Options::fontFamily when clearing family

published 2025-12-02 11 mo ago modified 2026-11-04 4 d ago also GHSA-q3hc-j9x5-mp9m , EUVD-2025-200466

cvss
4.9
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 6%
public exploits
0
none known

Summary

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to 7.1.2-9 and 6.9.13-34, there is a vulnerability in ImageMagick’s Magick++ layer that manifests when Options::fontFamily is invoked with an empty string. Clearing a font family calls RelinquishMagickMemory on _drawInfo->font, freeing the font string but leaving _drawInfo->font pointing to freed memory while _drawInfo->family is set to that (now-invalid) pointer. Any later cleanup or reuse of _drawInfo->font re-frees or dereferences dangling memory. DestroyDrawInfo and other setters (Options::font, Image::font) assume _drawInfo->font remains valid, so destruction or subsequent updates trigger crashes or heap corruption. This vulnerability is fixed in 7.1.2-9 and 6.9.13-34.

Patch / fix

  • imagemagick imagemagick 6.9.13-34, 7.1.2-9
  • imagemagick Debian 12 8:6.9.11.60+dfsg-1.6+deb12u5
  • imagemagick Debian 13 8:7.1.1.43+dfsg1-1+deb13u4
  • imagemagick Debian 14 8:7.1.2.12+dfsg1-1

debian advisories DEBIAN-CVE-2025-65955

  • ImageMagick SLES for SAP applications 16.0, SLES 16.0 7.1.2.0-160000.5.1
  • ImageMagick SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 7.1.0.9-150400.6.58.1
  • ImageMagick SLES for SAP 15 SP6, SLES 15 SP6-LTSS, openSUSE Leap 15.6 7.1.1.21-150600.3.32.1
  • ImageMagick SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 7.0.7.34-150200.10.68.1
  • ImageMagick SLE Module for Development Tools 15 SP7, SLE Module for Desktop Applications 15 SP7 7.1.1.43-150700.3.27.1

suse advisories SUSE-SU-2026:20183-1SUSE-SU-2026:0013-1SUSE-SU-2026:0011-1SUSE-SU-2025:4428-1SUSE-SU-2025:4427-1

  • ImageMagick openSUSE Leap 16.0 7.1.2.0-160000.5.1
  • ImageMagick openSUSE Tumbleweed 7.1.2.10-1.1

opensuse advisories openSUSE-SU-2026:20118-1openSUSE-SU-2025:15816-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-65955 updated cvss 4.9

imagemagick: ImageMagick use-after-free/double-free

  • Red Hat Enterprise Linux 6 ImageMagick, ImageMagick-c++, ImageMagick-perl Red Hat Enterprise Linux 7 ImageMagick, ImageMagick-c++, ImageMagick-perl
    affected: workaround, no fix planned “Out of support scope”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
11 mo ago

Exploit prediction

0.17% chance of exploitation in the next 30 days, higher than 6% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 4.9 CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
NVD 3.1 6.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H

Affected products

  • ImageMagick ImageMagick

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.