ImageMagick before 6.9.13-61 and 7.x before 7.1.2-36 contains a heap buffer overflow in the ShearRotateImage method, where a specific argument causes a write beyond the bounds of a heap buffer. Attackers able to pass a crafted argument to ShearRotateImage, which is only reachable through the API, can corrupt heap memory and crash the application.
CVE-2026-140359
CVSS base score
2.5 (v3.1)
Severity
LOW
Attack vector
Local
Weakness
CWE-131
Last modified
December 2, 2026
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L