{"id":"CVE-2026-40169","published":"2026-04-13T21:25:56Z","modified":"2026-04-14T15:52:31Z","title":"ImageMagick: Heap buffer overflow (WRITE) in the YAML and JSON encoders","vendor":"ImageMagick","product":"ImageMagick","tier":"tail","description":{"text":"ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below 7.1.2-19, a crafted image could result in an out of bounds heap write when writing a yaml or json output, resulting in a crash. This issue has been fixed in version 7.1.2-19.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00187,"percentile":0.08529,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"},{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-5592-p365-24xh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ImageMagick/ImageMagick/commit/f86452a8aea37bf2b4bd36127f836dcc5f138b38","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":6.0,"factors":[{"name":"EPSS percentile","points":1.71},{"name":"CVSS severity","points":4.34}]},"vendorSlug":"imagemagick","affectedVersions":[{"vendor":"ImageMagick","product":"ImageMagick","versions":["< 7.1.2-19"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-14T15:52:23.762097Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"Magick.NET-Q16-AnyCPU","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-5592-p365-24xh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-AnyCPU","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-5592-p365-24xh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-OpenMP-arm64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-5592-p365-24xh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-arm64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-5592-p365-24xh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-5592-p365-24xh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x86","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-5592-p365-24xh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-arm64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-5592-p365-24xh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-x64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-5592-p365-24xh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-arm64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-5592-p365-24xh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-x64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-5592-p365-24xh"],"provenance":"source"}],"summary":{"text":"A heap buffer overflow in ImageMagick's YAML and JSON encoders, affecting versions below 7.1.2-19, causes an out-of-bounds heap write when those output formats are written. An attacker with local access and no privileges or user interaction can supply a crafted image to trigger the write, which results in a crash.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:08Z"},"euvd":{"id":"EUVD-2026-22113","exploited":false,"provenance":"source"}}