{"id":"CVE-2026-40310","published":"2026-04-13T21:32:53Z","modified":"2026-04-14T16:28:25Z","title":"ImageMagick: Heap out-of-bounds write in JP2 encoder","vendor":"ImageMagick","product":"ImageMagick","tier":"tail","description":{"text":"ImageMagick is free and open-source software used for editing and manipulating digital images. Versions below both 7.1.2-19 and 6.9.13-44, contain a heap out-of-bounds write in the JP2 encoder with when a user specifies an invalid sampling index. 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.00193,"percentile":0.09106,"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-pwg5-6jfc-crvh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ImageMagick/ImageMagick/commit/3d653bea2df085c728a1c8f775808e1e9249dff9","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.7,"factors":[{"name":"EPSS percentile","points":1.82},{"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:33:34.221037Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"Magick.NET-Q16-AnyCPU","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-pwg5-6jfc-crvh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-AnyCPU","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-pwg5-6jfc-crvh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-OpenMP-arm64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-pwg5-6jfc-crvh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-pwg5-6jfc-crvh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x86","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-pwg5-6jfc-crvh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-arm64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-pwg5-6jfc-crvh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-x64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-pwg5-6jfc-crvh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-arm64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-pwg5-6jfc-crvh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-x64","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-pwg5-6jfc-crvh"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-x86","vulnerableRanges":["<14.12.0"],"patched":["14.12.0"],"from":["GHSA-pwg5-6jfc-crvh"],"provenance":"source"}],"summary":{"text":"A heap out-of-bounds write in the JPEG 2000 (JP2) encoder of ImageMagick, the open-source image editing and manipulation software, is triggered when a user supplies an invalid sampling index. An attacker can exploit this with local access and no privileges, but only if a user takes an action (such as processing a crafted request or image), with the impact limited to availability (a crash or denial of service).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:13Z"},"euvd":{"id":"EUVD-2026-22116","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-23952","published":"2026-01-22","fixed":"14.10.2","kev":false,"link":{"from":"CVE-2026-23952","to":"CVE-2026-40310","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q16-x86","fromFixed":"14.10.2","toFixed":"14.12.0","daysApart":81}]}},{"cve":"CVE-2026-33900","published":"2026-04-13","fixed":"14.12.0","kev":false},{"cve":"CVE-2026-34238","published":"2026-04-13","fixed":"14.12.0","kev":false},{"cve":"CVE-2026-40310","published":"2026-04-13","fixed":"14.12.0","kev":false},{"cve":"CVE-2026-53466","published":"2026-07-01","fixed":"14.15.0","kev":false},{"cve":"CVE-2026-53467","published":"2026-07-01","fixed":"14.15.0","kev":false},{"cve":"CVE-2026-55510","published":"2026-07-01","fixed":"14.15.0","kev":false}],"package":"NuGet:Magick.NET-Q16-x86"}}