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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.9, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-12-02 · Modified: 2026-06-23
- Aliases: UBUNTU-CVE-2025-65955, DEBIAN-CVE-2025-65955, openSUSE-SU-2025:15816-1, GHSA-q3hc-j9x5-mp9m
- Record: https://cvemate.com/vulnerability/CVE-2025-65955 · JSON: https://cvemate.com/vulnerability/CVE-2025-65955/json

## Description

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

## Signals

- CVSS: 6.1 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
- EPSS: 0.171%, percentile 6.708%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 22)

- debian imagemagick (Debian): \< 8:6.9.11.60+dfsg-1.6+deb12u5 \| \< 8:7.1.1.43+dfsg1-1+deb13u4 \| \< 8:7.1.2.12+dfsg1-1
- ubuntu imagemagick (Ubuntu): All versions (No fix recorded)
- imagemagick imagemagick: ≥ 7.0.1-0, \< 7.1.2-9 \| \< 6.9.13-34 \| ≥ 7.0.0-0, \< 7.1.2-9
- NuGet Magick.NET-Q16-AnyCPU (NuGet): ≤ 14.9.1
- NuGet Magick.NET-Q16-arm64 (NuGet): ≤ 14.9.1
- NuGet Magick.NET-Q16-HDRI-AnyCPU (NuGet): ≤ 14.9.1
- NuGet Magick.NET-Q16-HDRI-arm64 (NuGet): ≤ 14.9.1
- NuGet Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): ≤ 14.9.1
- NuGet Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet): ≤ 14.9.1
- NuGet Magick.NET-Q16-HDRI-x64 (NuGet): ≤ 14.9.1
- NuGet Magick.NET-Q16-HDRI-x86 (NuGet): ≤ 14.9.1
- NuGet Magick.NET-Q16-OpenMP-arm64 (NuGet): ≤ 14.9.1
- NuGet Magick.NET-Q16-OpenMP-x64 (NuGet): ≤ 14.9.1
- NuGet Magick.NET-Q16-x64 (NuGet): ≤ 14.9.1
- NuGet Magick.NET-Q16-x86 (NuGet): ≤ 14.9.1
- NuGet Magick.NET-Q8-AnyCPU (NuGet): ≤ 14.9.1
- NuGet Magick.NET-Q8-arm64 (NuGet): ≤ 14.9.1
- NuGet Magick.NET-Q8-OpenMP-arm64 (NuGet): ≤ 14.9.1
- NuGet Magick.NET-Q8-OpenMP-x64 (NuGet): ≤ 14.9.1
- NuGet Magick.NET-Q8-x64 (NuGet): ≤ 14.9.1

## References

- <https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-q3hc-j9x5-mp9m>
- <https://github.com/ImageMagick/ImageMagick/commit/6409f34d637a34a1c643632aa849371ec8b3b5a8>
- <https://github.com/ImageMagick/ImageMagick/commit/6f81eb15f822ad86e8255be75efad6f9762c32f8>
- <https://ubuntu.com/security/CVE-2025-65955>
- <https://www.cve.org/CVERecord?id=CVE-2025-65955>
- <https://security-tracker.debian.org/tracker/CVE-2025-65955>
- <https://www.suse.com/security/cve/CVE-2025-65955>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-65955>
- <https://github.com/ImageMagick/ImageMagick>

---

Data as of 2026-12-05T04:47:03.791Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
