{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-65955","id":"CVE-2025-65955","title":"ImageMagick has a use-after-free/double-free risk in Options::fontFamily when clearing family","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 m","descriptionLong":"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":"2025-12-02T23:02:58.856Z","updated":"2026-11-06T01:21:30.649510499Z","reserved":"2025-11-18T16:14:56.693Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["ImageMagick"],"affectedProducts":[{"vendor":"ImageMagick","product":"ImageMagick","defaultStatus":null,"versions":[{"version":">= 7.0.1-0, < 7.1.2-9","status":"affected"},{"version":"< 6.9.13-34","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"NuGet","name":"Magick.NET-Q16-AnyCPU","purl":"pkg:nuget/Magick.NET-Q16-AnyCPU","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-AnyCPU","purl":"pkg:nuget/Magick.NET-Q16-HDRI-AnyCPU","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-OpenMP-arm64","purl":"pkg:nuget/Magick.NET-Q16-HDRI-OpenMP-arm64","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-OpenMP-x64","purl":"pkg:nuget/Magick.NET-Q16-HDRI-OpenMP-x64","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-arm64","purl":"pkg:nuget/Magick.NET-Q16-HDRI-arm64","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-x64","purl":"pkg:nuget/Magick.NET-Q16-HDRI-x64","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-x86","purl":"pkg:nuget/Magick.NET-Q16-HDRI-x86","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-OpenMP-arm64","purl":"pkg:nuget/Magick.NET-Q16-OpenMP-arm64","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-OpenMP-x64","purl":"pkg:nuget/Magick.NET-Q16-OpenMP-x64","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-arm64","purl":"pkg:nuget/Magick.NET-Q16-arm64","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-x64","purl":"pkg:nuget/Magick.NET-Q16-x64","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-x86","purl":"pkg:nuget/Magick.NET-Q16-x86","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-AnyCPU","purl":"pkg:nuget/Magick.NET-Q8-AnyCPU","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-OpenMP-arm64","purl":"pkg:nuget/Magick.NET-Q8-OpenMP-arm64","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-OpenMP-x64","purl":"pkg:nuget/Magick.NET-Q8-OpenMP-x64","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-arm64","purl":"pkg:nuget/Magick.NET-Q8-arm64","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-x64","purl":"pkg:nuget/Magick.NET-Q8-x64","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-x86","purl":"pkg:nuget/Magick.NET-Q8-x86","ranges":["<=14.9.1"],"fixed":[],"advisory":"GHSA-q3hc-j9x5-mp9m"}],"cwes":["CWE-415","CWE-416"],"aliases":["GHSA-q3hc-j9x5-mp9m"],"references":[{"url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-q3hc-j9x5-mp9m","tags":["x_refsource_CONFIRM","Vendor Advisory","advisory","web"]},{"url":"https://github.com/ImageMagick/ImageMagick/commit/6409f34d637a34a1c643632aa849371ec8b3b5a8","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/ImageMagick/ImageMagick/commit/6f81eb15f822ad86e8255be75efad6f9762c32f8","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/65xxx/CVE-2025-65955.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65955","tags":["advisory"]},{"url":"https://github.com/ImageMagick/ImageMagick","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00171,"epssPercentile":0.06576,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-65955","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65955","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-65955","ok":true,"note":"18 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-q3hc-j9x5-mp9m","ok":true,"note":"GHSA-q3hc-j9x5-mp9m"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-65955","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}