{"id":"CVE-2025-55298","published":"2025-08-26T17:20:17Z","modified":"2025-11-03T18:13:41Z","title":"ImageMagick Format String Bug in InterpretImageFilename leads to arbitrary code execution","vendor":"ImageMagick","product":"ImageMagick","tier":"tail","description":{"text":"ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to ImageMagick versions 6.9.13-28 and 7.1.2-2, a format string bug vulnerability exists in InterpretImageFilename function where user input is directly passed to FormatLocaleString without proper sanitization. An attacker can overwrite arbitrary memory regions, enabling a wide range of attacks from heap overflow to remote code execution. This issue has been patched in versions 6.9.13-28 and 7.1.2-2.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01555,"percentile":0.75461,"provenance":"source"},"cwes":[{"id":"CWE-123","name":"Write-what-where Condition"},{"id":"CWE-134","name":"Use of Externally-Controlled Format String"}],"references":[{"url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-9ccg-6pjw-x645","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ImageMagick/ImageMagick/commit/439b362b93c074eea6c3f834d84982b43ef057d5","tags":["x_refsource_MISC"]},{"url":"https://github.com/dlemstra/Magick.NET/releases/tag/14.8.1","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/09/msg00012.html","tags":[]}],"priority":{"score":20.3,"factors":[{"name":"EPSS percentile","points":15.09},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"imagemagick","affectedVersions":[{"vendor":"ImageMagick","product":"ImageMagick","versions":["< 7.1.2-2","< 6.9.13-28"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-08-26T20:36:37.310582Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"Magick.NET-Q16-AnyCPU","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-9ccg-6pjw-x645"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-AnyCPU","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-9ccg-6pjw-x645"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-OpenMP-arm64","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-9ccg-6pjw-x645"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-OpenMP-x64","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-9ccg-6pjw-x645"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-arm64","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-9ccg-6pjw-x645"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x64","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-9ccg-6pjw-x645"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x86","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-9ccg-6pjw-x645"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-arm64","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-9ccg-6pjw-x645"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-x64","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-9ccg-6pjw-x645"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-arm64","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-9ccg-6pjw-x645"],"provenance":"source"}],"summary":{"text":"The flaw is a format string bug in the InterpretImageFilename function of ImageMagick, where user-supplied input is passed directly to FormatLocaleString without proper sanitisation. An attacker with low-privilege access over the network, who can get the target to process a crafted input and with the attack complexity being high, can overwrite arbitrary memory, which may lead to heap overflow or remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:39:41Z"},"euvd":{"id":"EUVD-2025-25836","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-imagemagick-cve-2016-4562","parents":[{"from":"CVE-2025-53014","to":"CVE-2025-55298","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["MagickCore/image.c"],"commits":["https://github.com/ImageMagick/ImageMagick/commit/29d82726c7ec20c07c49ba263bdcea16c2618e03","https://github.com/ImageMagick/ImageMagick/commit/439b362b93c074eea6c3f834d84982b43ef057d5"],"basis":"shared function","functions":["InterpretImageFilename"]}]},{"from":"CVE-2025-53101","to":"CVE-2025-55298","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["MagickCore/image.c"],"commits":["https://github.com/ImageMagick/ImageMagick/commit/66dc8f51c11b0ae1f1cdeacd381c3e9a4de69774","https://github.com/ImageMagick/ImageMagick/commit/439b362b93c074eea6c3f834d84982b43ef057d5"],"basis":"shared function","functions":["InterpretImageFilename"]}]}],"packageHistory":[{"cve":"CVE-2025-55004","published":"2025-08-13","fixed":"14.8.0","kev":false},{"cve":"CVE-2025-55160","published":"2025-08-13","fixed":"14.8.0","kev":false,"link":{"from":"CVE-2025-55160","to":"CVE-2025-55298","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q16-AnyCPU","fromFixed":"14.8.0","toFixed":"14.8.1","daysApart":13},{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q16-HDRI-AnyCPU","fromFixed":"14.8.0","toFixed":"14.8.1","daysApart":13}]}},{"cve":"CVE-2025-55212","published":"2025-08-26","fixed":"14.8.1","kev":false},{"cve":"CVE-2025-55298","published":"2025-08-26","fixed":"14.8.1","kev":false},{"cve":"CVE-2025-57803","published":"2025-08-26","fixed":"14.8.1","kev":false},{"cve":"CVE-2025-62171","published":"2025-10-17","fixed":"14.9.0","kev":false},{"cve":"CVE-2025-66628","published":"2025-12-10","fixed":"14.10.0","kev":false}],"package":"NuGet:Magick.NET-Q16-AnyCPU"}}