VDB

CVE-2026-40310

CVE-2026-40310 PUBLISHED CVSS 5.5 MEDIUM

ImageMagick: Heap out-of-bounds write in JP2 encoder

Reported by github_m · Published April 13, 2026

Magick.NET-Q8-x86 is fixed in 14.12.0 (NuGet)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
Magick.NET-Q8-x86NuGet14.12.0
Magick.NET-Q8-AnyCPUNuGet14.12.0
Magick.NET-Q16-OpenMP-arm64NuGet14.12.0
Magick.NET-Q8-OpenMP-x64NuGet14.12.0
Magick.NET-Q8-OpenMP-arm64NuGet14.12.0
Magick.NET-Q16-x86NuGet14.12.0
Magick.NET-Q8-arm64NuGet14.12.0
Magick.NET-Q16-OpenMP-x64NuGet14.12.0
magick.net-q16-anycpuNuGet14.12.0
Magick.NET-Q16-arm64NuGet14.12.0
ImageMagick-develAmazon Linux1:6.9.13.44-1.amzn2023.0.1
ImageMagick-c++Amazon Linux1:6.9.13.44-1.amzn2023.0.1

5 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
5.5
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
ImageMagickImageMagick< 7.1.2-19, < 6.9.13-44
NuGetMagick.NET-Q8-x860
NuGetMagick.NET-Q8-AnyCPU0
amazon:2023ImageMagick-devel0
amazon:2023ImageMagick-c++0
amazon:2023ImageMagick-libs0
NuGetMagick.NET-Q8-OpenMP-arm640
alpineimagemagick0
amazon:2023ImageMagick-perl0
NuGetMagick.NET-Q8-arm640
NuGetmagick.net-q16-anycpu0
NuGetMagick.NET-Q16-arm640
NuGetMagick.NET-Q16-HDRI-x860
NuGetmagick.net-q8-x640
amazon:2ImageMagick-devel0
NuGetMagick.NET-Q16-AnyCPU0
NuGetMagick.NET-Q16-OpenMP-arm640
NuGetmagick.net-q8-openmp-x640
amazon:2ImageMagick0
amazon:2ImageMagick-doc0

…and 18 more

Timeline

  • Apr 13, 2026 CVE Published
  • Apr 14, 2026 EPSS Score (30 in total, the first dated here)
  • Jun 1, 2026 Security Advisory (5 in total, the first dated here)
  • Jul 1, 2026 Coalition ESS Score
  • Aug 11, 2026 Distribution Patch (2 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-40310
vulnetix vdb fixes CVE-2026-40310

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-40310/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›