Heap-based buffer overflow in ImageMagick - CVE-2026-40310

 

Heap-based buffer overflow in ImageMagick - CVE-2026-40310

Published: April 14, 2026


Vulnerability identifier: #VU125869
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-40310
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: ImageMagick.org
Affected software:
ImageMagick

Detailed vulnerability description

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to heap-based buffer overflow in the JP2 encoder when processing input with an invalid sampling index. A remote attacker can trick the victim into processing a crafted file to cause a denial of service.

User interaction is required to process the crafted input.


How to mitigate CVE-2026-40310

Install security update from vendor's website.

Sources