CVE-2025-65955: imagemagick Double Free
Vulnerability summary
CVE-2025-65955 is a medium (CVSS 6.1) Double Free vulnerability in imagemagick. EPSS estimates a 0.16% chance of exploitation in the next 30 days, higher than 4.6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 7 · Related 6Timeline
- 02-12-2025PublishedVulnerability first disclosed.
- 23-06-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA4.9MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated4.9MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
- OSV · NugetEcosystem advisory · calculated4.9MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
EPSS trend
Probability
0.16%
Chance of exploitation in the next 30 days
Percentile
5%
Versus all other CVEs
30-day change
0.00 pp
From 0.16% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-415Double FreeThe product calls free() twice on the same memory address.
- CWE-416Use After FreeThe product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
Affected systems
NuGet18 products
- magick.net-q16-anycpu≤ 14.9.1
- Magick.NET-Q16-arm64≤ 14.9.1
- magick.net-q16-hdri-anycpu≤ 14.9.1
- Magick.NET-Q16-HDRI-arm64≤ 14.9.1
- Magick.NET-Q16-HDRI-OpenMP-arm64≤ 14.9.1
Debian1 product
- imagemagick< 8:6.9.11.60+dfsg-1.6+deb12u5 | < 8:7.1.1.43+dfsg1-1+deb13u4 | < 8:7.1.2.12+dfsg1-1
Imagemagick1 product
- imagemagick≥ 7.0.1-0, < 7.1.2-9 | < 6.9.13-34 | ≥ 7.0.0-0, < 7.1.2-9
Opensuse1 product
- ImageMagick&distro=openSUSE Tumbleweed< 7.1.2.10-1.1
Ubuntu1 product
- imagemagickAll versions (No fix recorded)
5 vendors · 22 products
References
9 links- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-q3hc-j9x5-mp9mX Refsource CONFIRMREPORTWEBVendor Advisory
- github.com/ImageMagick/ImageMagick/commit/6409f34d637a34a1c643632aa849371ec8b3b5a8X Refsource MISCREPORTWEBPatch
- github.com/ImageMagick/ImageMagick/commit/6f81eb15f822ad86e8255be75efad6f9762c32f8X Refsource MISCREPORTWEBPatch