Vulnerabilities / CVE-2026-25897

critical

CVE-2026-25897

ImageMagick: ImageMagick: Out-of-bounds heap write via integer overflow in sun decoder

Published Modified CWE 122, 190
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA6.5CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H
Red Hat6.5CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H
Julia9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Julia, Photon OS. Rated lower by GHSA (medium), Red Hat (medium), Ubuntu (medium).

Description

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, an Integer Overflow vulnerability exists in the sun decoder. On 32-bit systems/builds, a carefully crafted image can lead to an out of bounds heap write. Versions 7.1.2-15 and 6.9.13-40 contain a patch.

Affected packages and fixed versions

SourcePackageFixed in
julia::Julia Ecosystem Security AdvisoriesImageMagick_jll7.1.2023+0
Photon OS 4.0ImageMagick, ImageMagick-c++, ImageMagick-c++-devel and 3 more7.1.2.16-1.ph4
Photon OS 5.0ImageMagick, ImageMagick-c++, ImageMagick-c++-devel and 3 more7.1.2.16-1.1.ph5
alpine 3.22imagemagick7.1.2.15-r0
alpine 3.23imagemagick7.1.2.15-r0
alpine 3.24imagemagick7.1.2.15-r0
alpine edgeimagemagick7.1.2.15-r0
debian 11imagemagick8:6.9.11.60+dfsg-1.3+deb11u10
debian 12imagemagick8:6.9.11.60+dfsg-1.6+deb12u7
debian 13imagemagick8:7.1.1.43+dfsg1-1+deb13u6
debian 14imagemagick8:7.1.2.15+dfsg1-1
echoimagemagick8:6.9.11.60+dfsg-1.6+deb12u7
Show all 94 entries from 34 sources
SourcePackageFixed in
julia::Julia Ecosystem Security AdvisoriesImageMagick_jll7.1.2023+0
Photon OS 4.0ImageMagick7.1.2.16-1.ph4
Photon OS 4.0ImageMagick-c++7.1.2.16-1.ph4
Photon OS 4.0ImageMagick-c++-devel7.1.2.16-1.ph4
Photon OS 4.0ImageMagick-devel7.1.2.16-1.ph4
Photon OS 4.0ImageMagick-doc7.1.2.16-1.ph4
Photon OS 4.0ImageMagick-libs7.1.2.16-1.ph4
Photon OS 5.0ImageMagick7.1.2.16-1.1.ph5
Photon OS 5.0ImageMagick-c++7.1.2.16-1.1.ph5
Photon OS 5.0ImageMagick-c++-devel7.1.2.16-1.1.ph5
Photon OS 5.0ImageMagick-devel7.1.2.16-1.1.ph5
Photon OS 5.0ImageMagick-doc7.1.2.16-1.1.ph5
Photon OS 5.0ImageMagick-libs7.1.2.16-1.1.ph5
alpine 3.22imagemagick7.1.2.15-r0
alpine 3.23imagemagick7.1.2.15-r0
alpine 3.24imagemagick7.1.2.15-r0
alpine edgeimagemagick7.1.2.15-r0
debian 11imagemagick8:6.9.11.60+dfsg-1.3+deb11u10
debian 12imagemagick8:6.9.11.60+dfsg-1.6+deb12u7
debian 13imagemagick8:7.1.1.43+dfsg1-1+deb13u6
debian 14imagemagick8:7.1.2.15+dfsg1-1
echoimagemagick8:6.9.11.60+dfsg-1.6+deb12u7
minimosimagemagick7.1.2.0-r0
nuget::GitHub Security Advisory NuGetMagick.NET-Q16-AnyCPU14.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q16-HDRI-AnyCPU14.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q16-HDRI-OpenMP-arm6414.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q16-HDRI-OpenMP-x6414.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q16-HDRI-arm6414.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q16-HDRI-x6414.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q16-HDRI-x8614.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q16-OpenMP-arm6414.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q16-OpenMP-x6414.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q16-OpenMP-x8614.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q16-arm6414.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q16-x6414.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q16-x8614.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q8-AnyCPU14.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q8-OpenMP-arm6414.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q8-OpenMP-x6414.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q8-arm6414.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q8-x6414.10.3
nuget::GitHub Security Advisory NuGetMagick.NET-Q8-x8614.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q16-anycpu14.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q16-arm6414.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q16-hdri-anycpu14.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q16-hdri-arm6414.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q16-hdri-openmp-arm6414.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q16-hdri-openmp-x6414.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q16-hdri-x6414.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q16-hdri-x8614.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q16-openmp-arm6414.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q16-openmp-x6414.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q16-openmp-x8614.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q16-x6414.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q16-x8614.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q8-anycpu14.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q8-arm6414.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q8-openmp-arm6414.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q8-openmp-x6414.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q8-x6414.10.3
nuget::GitHub Security Advisory NuGetmagick.net-q8-x8614.10.3
rapidfort alpine 3.20imagemagick7.1.2.15-r0
rapidfort alpine 3.21imagemagick7.1.2.15-r0
rapidfort debian 12imagemagick0:7.1.1.43+dfsg1-1+deb13u6, 8:7.1.2.15+dfsg1-1
rapidfort debian 12rf-imagemagick0:7.1.1.43+dfsg1-1+deb13u6, 8:7.1.1.43+dfsg1-1+deb13u6, 8:7.1.2.15+dfsg1-1
rapidfort debian 13imagemagick0:7.1.1.43+dfsg1-1+deb13u6, 8:7.1.2.15+dfsg1-1
rapidfort debian 13rf-imagemagick0:7.1.1.43+dfsg1-1+deb13u6, 8:7.1.1.43+dfsg1-1+deb13u6, 8:7.1.2.15+dfsg1-1
rapidfort ubuntu 20.04imagemagick8:7.1.2.3+dfsg1-1ubuntu0.1
rapidfort ubuntu 20.04rf-imagemagick8:7.1.2.3+dfsg1-1ubuntu0.1
rapidfort ubuntu 22.04imagemagick8:7.1.2.3+dfsg1-1ubuntu0.1
rapidfort ubuntu 22.04rf-imagemagick8:7.1.2.3+dfsg1-1ubuntu0.1
rapidfort ubuntu 24.04imagemagick8:7.1.2.3+dfsg1-1ubuntu0.1
rapidfort ubuntu 24.04rf-imagemagick8:7.1.2.3+dfsg1-1ubuntu0.1
Red HatImageMagickno fix listed
Red HatImageMagick-c++no fix listed
Red HatImageMagick-c++-develno fix listed
Red HatImageMagick-develno fix listed
Red HatImageMagick-docno fix listed
Red HatImageMagick-perlno fix listed
root.io debian 11rootio-imagemagick8:6.9.11.60+dfsg-1.3+deb11u10
root.io debian 12imagemagick8:6.9.11.60+dfsg-1.6+deb12u7
root.io debian 12rootio-imagemagick8:6.9.11.60+dfsg-1.6+deb12u7
root.io debian 13imagemagick8:7.1.1.43+dfsg1-1+deb13u6
root.io debian 13rootio-imagemagick8:7.1.1.43+dfsg1-1+deb13u6
seal Red Hat 7imagemagick6.9.10.68-6.el7_9+sp999
seal Red Hat 7seal-imagemagick6.9.10.68-6.el7_9+sp999
ubuntu 16.04-ESMimagemagick8:6.8.9.9-7ubuntu5.16+esm18
ubuntu 18.04-ESMimagemagick8:6.9.7.4+dfsg-16ubuntu6.15+esm10
ubuntu 20.04-ESMimagemagick8:6.9.10.23+dfsg-2.1ubuntu11.11+esm8
ubuntu 22.04imagemagickno fix listed
ubuntu 24.04imagemagickno fix listed
ubuntu 25.10imagemagick8:7.1.2.3+dfsg1-1ubuntu0.1
ubuntu 26.04imagemagick8:7.1.2.13+dfsg1-1ubuntu1
ubuntu 26.10imagemagick8:7.1.2.13+dfsg1-1ubuntu1

References

All 10 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.