Skip to content
OpenAdvisories
Low · 2.5 CVE-2026-140366 EUVD-2026-140187GHSA-3953-vpgh-6w8f

ImageMagick before 7.1.2-36 Heap Buffer Overflow via C++ readImages and montage

Published Dec 1, 2026 · Updated Dec 1, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
ImageMagick ImageMagick 7.0.0 – < 7.1.2-36, < 6.9.13-61 7.1.2-36

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 imagemagick No fix yet —
Debian 13 imagemagick No fix yet —
Debian 12 imagemagick No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 imagemagick No fix yet —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS imagemagick No fix yet —
Ubuntu Pro 24.04 LTS imagemagick No fix yet —
Ubuntu Pro 22.04 LTS imagemagick No fix yet —
Ubuntu Pro 20.04 LTS imagemagick No fix yet —
Ubuntu Pro 18.04 LTS imagemagick No fix yet —
Ubuntu Pro 16.04 LTS imagemagick No fix yet —
Ubuntu Pro 14.04 LTS imagemagick No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ImageMagick 7.1.2.36-1.1 openSUSE-SU-2026:12760-1

Advisories 2

References