CVE-2025-65955 Details
Description
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.
A use-after-free vulnerability has been identified in ImageMagick's Magick++ layer, affecting versions prior to 7.1.2-9 and 6.9.13-34. The issue arises when the Options::fontFamily method is called with an empty string, leading to a double-free condition. This occurs because the font family option is cleared by freeing the font string, but the draw information still points to the now-freed memory. Subsequent operations that clean up or reuse the font information can inadvertently free or dereference this dangling pointer, causing crashes or heap corruption.
Users can update to ImageMagick versions 7.1.2-9 or 6.9.13-34, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-415 | Double Free | [email protected] |
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| imagemagick imagemagick | < 6.9.13-34 >= 7.0.0-0, < 7.1.2-9 |
CPE
Remediation
| |
Change History
10 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 4, 2026 | CVE Translated | [email protected] |
| Jun 23, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jan 13, 2026 | Modified Analysis | [email protected] |
| Dec 11, 2025 | CVE Unrejected | [email protected] |
| Dec 11, 2025 | CVE Modified | [email protected] |
| Dec 6, 2025 | CVE Rejected | [email protected] |
| Dec 6, 2025 | CVE Modified | [email protected] |
| Dec 5, 2025 | Initial Analysis | [email protected] |
| Dec 2, 2025 | New CVE Received | [email protected] |