USN-8739-1: ImageMagick vulnerabilities

Publication date

8 September 2026

Overview

Several security issues were fixed in ImageMagick.


Packages

  • imagemagick - Image manipulation programs and library

Details

It was discovered that ImageMagick incorrectly handled certain images. An
attacker could possibly use this issue to cause a denial of service. This
issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS,
Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS. (CVE-2026-56366, CVE-2026-56368,
CVE-2026-56371, CVE-2026-56373)

It was discovered that ImageMagick incorrectly handled certain images. An
attacker could possibly use this issue to cause a denial of service or
execute arbitrary code. This issue only affected Ubuntu 22.04 LTS and
Ubuntu 26.04 LTS. (CVE-2026-56370)

It was discovered that ImageMagick incorrectly handled certain images. An
attacker could possibly use this issue to cause a denial of service or
expose sensitive...

It was discovered that ImageMagick incorrectly handled certain images. An
attacker could possibly use this issue to cause a denial of service. This
issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS,
Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS. (CVE-2026-56366, CVE-2026-56368,
CVE-2026-56371, CVE-2026-56373)

It was discovered that ImageMagick incorrectly handled certain images. An
attacker could possibly use this issue to cause a denial of service or
execute arbitrary code. This issue only affected Ubuntu 22.04 LTS and
Ubuntu 26.04 LTS. (CVE-2026-56370)

It was discovered that ImageMagick incorrectly handled certain images. An
attacker could possibly use this issue to cause a denial of service or
expose sensitive information. This issue only affected Ubuntu 14.04 LTS,
Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS.
(CVE-2026-56378)

It was discovered that ImageMagick incorrectly handled certain images. An
attacker could possibly use this issue to execute arbitrary code. This
issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS,
Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS. (CVE-2026-56379)

It was discovered that ImageMagick incorrectly handled memory allocation in
certain operations. An attacker could possibly use this issue to cause a
denial of service. This issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04
LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, and Ubuntu 26.04 LTS.
(CVE-2026-61465)

It was discovered that ImageMagick incorrectly handled certain images. An
attacker could possibly use this issue to cause a denial of service. This
issue only affected Ubuntu 22.04 LTS and Ubuntu 26.04 LTS. (CVE-2026-61857)

It was discovered that ImageMagick incorrectly handled certain images. An
attacker could possibly use this issue to cause a denial of service.
(CVE-2026-61863, CVE-2026-61864, CVE-2026-61865, CVE-2026-61870)

It was discovered that ImageMagick incorrectly handled certain images. An
attacker could possibly use this issue to cause a denial of service. This
issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS,
Ubuntu 22.04 LTS, and Ubuntu 26.04 LTS. (CVE-2026-61866)

It was discovered that ImageMagick incorrectly handled certain images on
32-bit systems. An attacker could possibly use this issue to cause a denial
of service or execute arbitrary code. This issue only affected Ubuntu 16.04
LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, and Ubuntu 26.04
LTS. (CVE-2026-62946)


Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
26.04 LTS resolute imagemagick –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
imagemagick-7-common –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
imagemagick-7-doc –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
imagemagick-7.q16 –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
imagemagick-7.q16hdri –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libimage-magick-perl –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libimage-magick-q16-perl –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libimage-magick-q16hdri-perl –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagick++-7-headers –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagick++-7.q16-5 –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagick++-7.q16-dev –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagick++-7.q16hdri-5 –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagick++-7.q16hdri-dev –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagick++-dev –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagickcore-7-arch-config –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagickcore-7-headers –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagickcore-7.q16-10 –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagickcore-7.q16-10-extra –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagickcore-7.q16-dev –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagickcore-7.q16hdri-10 –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagickcore-7.q16hdri-10-extra –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagickcore-7.q16hdri-dev –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagickcore-dev –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagickwand-7-headers –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagickwand-7.q16-10 –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagickwand-7.q16-dev –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagickwand-7.q16hdri-10 –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagickwand-7.q16hdri-dev –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
libmagickwand-dev –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
perlmagick –  8:7.1.2.18+dfsg1-1ubuntu0.1~esm2  
22.04 LTS jammy imagemagick –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
imagemagick-6-common –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
imagemagick-6-doc –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
imagemagick-6.q16 –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
imagemagick-6.q16hdri –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
imagemagick-common –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
imagemagick-doc –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libimage-magick-perl –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libimage-magick-q16-perl –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libimage-magick-q16hdri-perl –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagick++-6-headers –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagick++-6.q16-8 –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagick++-6.q16-dev –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagick++-6.q16hdri-8 –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagick++-6.q16hdri-dev –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagick++-dev –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagickcore-6-arch-config –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagickcore-6-headers –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagickcore-6.q16-6 –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagickcore-6.q16-6-extra –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagickcore-6.q16-dev –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagickcore-6.q16hdri-6 –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagickcore-6.q16hdri-6-extra –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagickcore-6.q16hdri-dev –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagickcore-dev –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagickwand-6-headers –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagickwand-6.q16-6 –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagickwand-6.q16-dev –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagickwand-6.q16hdri-6 –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagickwand-6.q16hdri-dev –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
libmagickwand-dev –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
perlmagick –  8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14  
20.04 LTS focal imagemagick –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
imagemagick-6-common –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
imagemagick-6-doc –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
imagemagick-6.q16 –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
imagemagick-6.q16hdri –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
imagemagick-common –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
imagemagick-doc –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libimage-magick-perl –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libimage-magick-q16-perl –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libimage-magick-q16hdri-perl –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagick++-6-headers –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagick++-6.q16-8 –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagick++-6.q16-dev –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagick++-6.q16hdri-8 –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagick++-6.q16hdri-dev –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagick++-dev –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagickcore-6-arch-config –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagickcore-6-headers –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagickcore-6.q16-6 –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagickcore-6.q16-6-extra –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagickcore-6.q16-dev –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagickcore-6.q16hdri-6 –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagickcore-6.q16hdri-6-extra –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagickcore-6.q16hdri-dev –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagickcore-dev –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagickwand-6-headers –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagickwand-6.q16-6 –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagickwand-6.q16-dev –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagickwand-6.q16hdri-6 –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagickwand-6.q16hdri-dev –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
libmagickwand-dev –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
perlmagick –  8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14  
18.04 LTS bionic imagemagick –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
imagemagick-6-common –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
imagemagick-6-doc –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
imagemagick-6.q16 –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
imagemagick-6.q16hdri –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
imagemagick-common –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
imagemagick-doc –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libimage-magick-perl –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libimage-magick-q16-perl –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libimage-magick-q16hdri-perl –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagick++-6-headers –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagick++-6.q16-7 –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagick++-6.q16-dev –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagick++-6.q16hdri-7 –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagick++-6.q16hdri-dev –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagick++-dev –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagickcore-6-arch-config –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagickcore-6-headers –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagickcore-6.q16-3 –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagickcore-6.q16-3-extra –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagickcore-6.q16-dev –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagickcore-6.q16hdri-3 –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagickcore-6.q16hdri-3-extra –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagickcore-6.q16hdri-dev –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagickcore-dev –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagickwand-6-headers –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagickwand-6.q16-3 –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagickwand-6.q16-dev –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagickwand-6.q16hdri-3 –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagickwand-6.q16hdri-dev –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
libmagickwand-dev –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
perlmagick –  8:6.9.7.4+dfsg-16ubuntu6.15+esm16  
16.04 LTS xenial imagemagick –  8:6.8.9.9-7ubuntu5.16+esm24  
imagemagick-6.q16 –  8:6.8.9.9-7ubuntu5.16+esm24  
imagemagick-common –  8:6.8.9.9-7ubuntu5.16+esm24  
imagemagick-doc –  8:6.8.9.9-7ubuntu5.16+esm24  
libimage-magick-perl –  8:6.8.9.9-7ubuntu5.16+esm24  
libimage-magick-q16-perl –  8:6.8.9.9-7ubuntu5.16+esm24  
libmagick++-6-headers –  8:6.8.9.9-7ubuntu5.16+esm24  
libmagick++-6.q16-5v5 –  8:6.8.9.9-7ubuntu5.16+esm24  
libmagick++-6.q16-dev –  8:6.8.9.9-7ubuntu5.16+esm24  
libmagick++-dev –  8:6.8.9.9-7ubuntu5.16+esm24  
libmagickcore-6-arch-config –  8:6.8.9.9-7ubuntu5.16+esm24  
libmagickcore-6-headers –  8:6.8.9.9-7ubuntu5.16+esm24  
libmagickcore-6.q16-2 –  8:6.8.9.9-7ubuntu5.16+esm24  
libmagickcore-6.q16-2-extra –  8:6.8.9.9-7ubuntu5.16+esm24  
libmagickcore-6.q16-dev –  8:6.8.9.9-7ubuntu5.16+esm24  
libmagickcore-dev –  8:6.8.9.9-7ubuntu5.16+esm24  
libmagickwand-6-headers –  8:6.8.9.9-7ubuntu5.16+esm24  
libmagickwand-6.q16-2 –  8:6.8.9.9-7ubuntu5.16+esm24  
libmagickwand-6.q16-dev –  8:6.8.9.9-7ubuntu5.16+esm24  
libmagickwand-dev –  8:6.8.9.9-7ubuntu5.16+esm24  
perlmagick –  8:6.8.9.9-7ubuntu5.16+esm24  
14.04 LTS trusty imagemagick –  8:6.7.7.10-6ubuntu3.13+esm25  
imagemagick-common –  8:6.7.7.10-6ubuntu3.13+esm25  
imagemagick-doc –  8:6.7.7.10-6ubuntu3.13+esm25  
libmagick++-dev –  8:6.7.7.10-6ubuntu3.13+esm25  
libmagick++5 –  8:6.7.7.10-6ubuntu3.13+esm25  
libmagickcore-dev –  8:6.7.7.10-6ubuntu3.13+esm25  
libmagickcore5 –  8:6.7.7.10-6ubuntu3.13+esm25  
libmagickcore5-extra –  8:6.7.7.10-6ubuntu3.13+esm25  
libmagickwand-dev –  8:6.7.7.10-6ubuntu3.13+esm25  
libmagickwand5 –  8:6.7.7.10-6ubuntu3.13+esm25  
perlmagick –  8:6.7.7.10-6ubuntu3.13+esm25  

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›