Logo
vulnerabilityCVE-2025-65955
Name
CVE-2025-65955
Source
NVD ( link)Debian ( link)
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.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
imagemagick
Exploitable

Vulnerability Ratings#


4.9
CVSSv31
6.1
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
7.1.2-23
Not Affected
buildroot
master
7.1.2-23
Not Affected
openwrt
master
7.1.2.21-r1
Not Affected
openwrt
openwrt-25.12
7.1.2.1-r1
Not Affected
yocto
master
7.1.2-25
Not Affected
yocto
scarthgap
7.1.1-47
Patched

Resolved with patches#


imagemagick (yocto:scarthgap)

#
Title
Author
Resolve
1
Correct incorrect free (GHSA-q3hc-j9x5-mp9m)
Dirk Lemstra <dirk@lemstra.org>
CVE-2025-65955