Buffer overflow in Imagemagick
CVE-2026-40310
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…
Vulnerability class: Buffer Overflow
EPSS: 0.000 (0.4th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
Affected products
- Imagemagick — versions < 7.1.2-19, < 6.9.13-44
Weakness classification (CWE)
References
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-pwg5-6jfc-crvh (x_refsource_CONFIRM)
- https://github.com/ImageMagick/ImageMagick/commit/3d653bea2df085c728a1c8f775808e1e9249dff9 (x_refsource_MISC)
- https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19 (x_refsource_MISC)
- https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0 (x_refsource_MISC)
Frequently asked questions
- What is CVE-2026-40310?
- CVE-2026-40310 is a medium-severity vulnerability in Imagemagick, classified under Heap-based Buffer Overflow. CVSS score: 5.5/10. Published 2026-04-13.
- How severe is CVE-2026-40310?
- Medium severity. CVSS v3 base score is 5.5 out of 10.