CVE-2026-140366: ImageMagick Out-of-bounds Write
Published 2026-12-01 · Updated 2026-12-01 · Source disclosure@vulncheck.com
Not known to be exploited · low severity — update ImageMagick to a fixed release (6.9.13-61, 7.1.2-36) when convenient.
What to do
- Update ImageMagick to a fixed release: 6.9.13-61 or 7.1.2-36 (whichever matches your release branch).
- Until it is patched, limit who has a local account on systems running ImageMagick.
- Avoid processing untrusted input with the affected component until it is updated.
- Exploitation needs a victim to act, so warn users of the affected system about unexpected links and files.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| ImageMagick | Releases before the fixed versions | 6.9.13-61 or 7.1.2-36 (whichever matches your release branch) |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
Exploiting it requires local access to the system, or getting a user to open a crafted file; the attacker does not need an account, and a victim has to take an action such as opening a link or file. Attack complexity is high, so exploitation depends on conditions the attacker does not control. The impact is limited: availability is rated low.
| Attack vector | Local | Exploiting it requires local access to the system, or getting a user to open a crafted file. |
|---|---|---|
| Attack complexity | High | Success depends on conditions outside the attacker's control. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | Required | A victim has to take an action, such as opening a link or file. |
| Confidentiality | None | No effect on confidentiality. |
| Integrity | None | No effect on integrity. |
| Availability | Low | Partial loss of availability. |
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L
Weakness: Out-of-bounds Write
The software writes past the end of a buffer, corrupting memory in a way that can crash it or allow code execution.
Classified as CWE-787.
Description
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.
Advisory text as published in the NVD record.