CVE-2026-140366: ImageMagick before 7.1.2-36 Heap Buffer Overflow via C++ readImages and montage
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.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed?
Applications using ImageMagick's C++ readImages and montage API are exposed if they use a version before 6.9.13-61 or a 7.x version before 7.1.2-36. The provided information does not establish exposure for applications that do not call these C++ API functions.
What does an attacker need to do to trigger the issue?
An attacker needs to be able to cause the application to call the affected C++ readImages and montage functions. Exploitation requires local access, high attack complexity, and user interaction according to the supplied vector.
What is the expected impact?
The flaw writes one zero byte past the end of a heap buffer, which can corrupt heap memory and potentially crash the application. The supplied severity vector indicates availability impact only, with no stated confidentiality or integrity impact.
What versions address the issue?
Use ImageMagick 6.9.13-61 or later in the 6.x branch, or 7.1.2-36 or later in the 7.x branch.