{"id":"CVE-2026-40311","published":"2026-04-13T21:36:44Z","modified":"2026-04-14T15:48:36Z","title":"ImageMagick: Heap-use-after-free via XMP profile could result in a crash when printing values","vendor":"ImageMagick","product":"ImageMagick","tier":"tail","description":{"text":"ImageMagick is free and open-source software used for editing and manipulating digital images. Versions below 7.1.2-19 and 6.9.13-44 contain a heap use-after-free vulnerability that can cause a crash when reading and printing values from an invalid XMP profile. This issue has been fixed in versions 6.9.13-44 and 7.1.2-19.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00187,"percentile":0.08522,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"},{"id":"CWE-693","name":"Protection Mechanism Failure"}],"references":[{"url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-r83h-crwp-3vm7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ImageMagick/ImageMagick/commit/5facfecf1abb3fed46a08f614dcc43d1e548e20d","tags":["x_refsource_MISC"]},{"url":"https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19","tags":["x_refsource_MISC"]},{"url":"https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0","tags":["x_refsource_MISC"]}],"priority":{"score":5.6,"factors":[{"name":"EPSS percentile","points":1.7},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"imagemagick","affectedVersions":[{"vendor":"ImageMagick","product":"ImageMagick","versions":["< 7.1.2-19","< 6.9.13-44"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-14T15:48:25.480967Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"Magick.NET-Q16-AnyCPU","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-r83h-crwp-3vm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-AnyCPU","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-r83h-crwp-3vm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-OpenMP-arm64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-r83h-crwp-3vm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-arm64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-r83h-crwp-3vm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-r83h-crwp-3vm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x86","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-r83h-crwp-3vm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-arm64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-r83h-crwp-3vm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-x64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-r83h-crwp-3vm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-arm64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-r83h-crwp-3vm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-x64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-r83h-crwp-3vm7"],"provenance":"source"}],"summary":{"text":"The flaw is a heap use-after-free in ImageMagick's handling of XMP profiles, which affects the ImageMagick product itself. An attacker who can get a user to process a crafted image with an invalid XMP profile can crash the application when it reads and prints the profile's values, which requires local access and some user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:26Z"},"euvd":{"id":"EUVD-2026-22130","exploited":false,"provenance":"source"}}