CVE-2026-40310
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.21% (higher than 6% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-pwg5-6jfc-crvh

Description

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.

Affected

Product or packageVersionsReported by
ImageMagick ImageMagick< 7.1.2-19, < 6.9.13-44, before 6.9.13-44, from 7.0.0-0 before 7.1.2-19CVE List, NVD
Magick.NET-Q16-AnyCPU (NuGet)before 14.12.0GitHub Advisory Database
Magick.NET-Q16-HDRI-AnyCPU (NuGet)before 14.12.0GitHub Advisory Database
Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet)before 14.12.0GitHub Advisory Database
Magick.NET-Q16-HDRI-x64 (NuGet)before 14.12.0GitHub Advisory Database
Magick.NET-Q16-HDRI-x86 (NuGet)before 14.12.0GitHub Advisory Database
Magick.NET-Q16-OpenMP-arm64 (NuGet)before 14.12.0GitHub Advisory Database
Magick.NET-Q16-OpenMP-x64 (NuGet)before 14.12.0GitHub Advisory Database
Magick.NET-Q16-arm64 (NuGet)before 14.12.0GitHub Advisory Database
Magick.NET-Q16-x64 (NuGet)before 14.12.0GitHub Advisory Database
Magick.NET-Q16-x86 (NuGet)before 14.12.0GitHub Advisory Database
Magick.NET-Q8-AnyCPU (NuGet)before 14.12.0GitHub Advisory Database

All scores

GitHub_M5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
GitHub5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Classification

CWE-122CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

Heap out-of-bounds write in the JP2 encoder with when a user specifies an invalid sampling index.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-40310 changed 2026-04-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-pwg5-6jfc-crvh changed 2026-04-21CC-BY-4.0
NVDCVE-2026-40310 changed 2026-06-17Public domain