CVE-2026-140359: ImageMagick before 7.1.2-36 Heap Buffer Overflow via ShearRotateImage
Vulnerability summary
CVE-2026-140359 is a low (CVSS 2.5) Incorrect Calculation of Buffer Size vulnerability in imagemagick. EPSS estimates a 0.20% chance of exploitation in the next 30 days, higher than 10.4% of scored vulnerabilities.
Not severe (CVSS 2, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 01-12-2026PublishedVulnerability first disclosed.
- 02-12-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 3 sources · 2 versions- NVDNIST2.0LowCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · DebianEcosystem advisory · calculated2.0LowCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- NVDNIST2.5LowCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.20%
Chance of exploitation in the next 30 days
Percentile
10%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- imagemagickAll versions (No fix recorded)
Imagemagick1 product
- imagemagick≥ 7.0.0, < 7.1.2-36 | < 6.9.13-61
Ubuntu1 product
- imagemagickAll versions (No fix recorded)
3 vendors · 3 products