{"id":"CVE-2026-40310","aliases":["GHSA-pwg5-6jfc-crvh"],"url":"https://o3.security/vulnerability/CVE-2026-40310","summary":"ImageMagick: Heap out-of-bounds write in JP2 encoder","details":"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.","published":"2026-04-13T21:32:53.361Z","modified":"2026-08-07T21:27:14.536044Z","cvss":{"score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},"epss":{"score":0.00189,"percentile":0.08756,"asOf":"2026-08-06"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"NuGet","name":"Magick.NET-Q16-AnyCPU","fixedVersion":"14.12.0"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-AnyCPU","fixedVersion":"14.12.0"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-OpenMP-arm64","fixedVersion":"14.12.0"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-x64","fixedVersion":"14.12.0"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-HDRI-x86","fixedVersion":"14.12.0"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-OpenMP-arm64","fixedVersion":"14.12.0"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-OpenMP-x64","fixedVersion":"14.12.0"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-arm64","fixedVersion":"14.12.0"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-x64","fixedVersion":"14.12.0"},{"ecosystem":"NuGet","name":"Magick.NET-Q16-x86","fixedVersion":"14.12.0"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-AnyCPU","fixedVersion":"14.12.0"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-OpenMP-arm64","fixedVersion":"14.12.0"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-OpenMP-x64","fixedVersion":"14.12.0"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-arm64","fixedVersion":"14.12.0"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-x64","fixedVersion":"14.12.0"},{"ecosystem":"NuGet","name":"Magick.NET-Q8-x86","fixedVersion":"14.12.0"}],"fix":{"url":"https://github.com/ImageMagick/ImageMagick/commit/3d653bea2df085c728a1c8f775808e1e9249dff9","label":"ImageMagick/ImageMagick@3d653be"},"references":[{"type":"WEB","url":"https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19"},{"type":"WEB","url":"https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40310.json"},{"type":"ADVISORY","url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-pwg5-6jfc-crvh"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40310"},{"type":"FIX","url":"https://github.com/ImageMagick/ImageMagick/commit/3d653bea2df085c728a1c8f775808e1e9249dff9"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T21:27:14.536044Z"}}