Home › CVE › Vulnerabilities
CVE-2026-140366 — ImageMagick
One of 27 ImageMagick vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesSummary
ImageMagick before 6.9.13-61 and 7.x before 7.1.2-36 contains a heap buffer overflow in the C++ readImages and montage API that writes a single zero byte past the end of a heap buffer. Attackers able to call these C++ API functions can trigger the out-of-bounds write, corrupting heap memory and potentially crashing the application.
Severity breakdown
Low · 2.0
An attacker without an account can exploit this with local access if a user views or visits something, but only under specific conditions.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- high (only works under specific conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- yes, a user must view or visit something
- Impact
- low on availability, none on confidentiality and integrity
- Impact on other systems
- none
Weakness
- CWE-787: Out-of-bounds Write
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| ImageMagick | ≥ 7.0.0, < 7.1.2-36 | 7.1.2-36 |
| ImageMagick | < 6.9.13-61 | 6.9.13-61 |
References by type
Vendor advisories
Other references
Affected
- ImageMagick
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-140366?
ImageMagick before 6.9.13-61 and 7.x before 7.1.2-36 contains a heap buffer overflow in the C++ readImages and montage API that writes a single zero byte past the end of a heap buffer. Attackers able to call these C++ API functions can trigger the out-of-bounds write, corrupting heap memory and potentially crashing the application. Weakness type: Out-of-bounds Write (CWE-787).
How severe is CVE-2026-140366?
CVE-2026-140366 has a CVSS 4.0 base score of 2.0 (low), from the CNA (vulncheck.com). An attacker without an account can exploit this with local access if a user views or visits something, but only under specific conditions.
Is CVE-2026-140366 being exploited?
Not as far as is known: CVE-2026-140366 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026.
Which versions are affected by CVE-2026-140366?
ImageMagick ≥ 7.0.0, < 7.1.2-36 (fixed in 7.1.2-36); ImageMagick < 6.9.13-61 (fixed in 6.9.13-61).
How do I fix CVE-2026-140366?
Update to a fixed release: ImageMagick 7.1.2-36; ImageMagick 6.9.13-61.