| Name | CVE-2026-25796 |
| 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, in `ReadSTEGANOImage()` (`coders/stegano.c`), the `watermark` Image object is not freed on three early-return paths, resulting in a definite memory leak (~13.5KB+ per invocation) that can be exploited for denial of service. Versions 7.1.2-15 and 6.9.13-40 contain a patch. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-4497-1, DSA-6158-1, DSA-6159-1 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| imagemagick (PTS) | bullseye | 8:6.9.11.60+dfsg-1.3+deb11u4 | vulnerable |
| bullseye (security) | 8:6.9.11.60+dfsg-1.3+deb11u10 | fixed | |
| bookworm | 8:6.9.11.60+dfsg-1.6+deb12u5 | vulnerable | |
| bookworm (security) | 8:6.9.11.60+dfsg-1.6+deb12u7 | fixed | |
| trixie | 8:7.1.1.43+dfsg1-1+deb13u5 | vulnerable | |
| trixie (security) | 8:7.1.1.43+dfsg1-1+deb13u6 | fixed | |
| forky | 8:7.1.2.15+dfsg1-2 | fixed | |
| sid | 8:7.1.2.16+dfsg1-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| imagemagick | source | bullseye | 8:6.9.11.60+dfsg-1.3+deb11u10 | DLA-4497-1 | ||
| imagemagick | source | bookworm | 8:6.9.11.60+dfsg-1.6+deb12u7 | DSA-6159-1 | ||
| imagemagick | source | trixie | 8:7.1.1.43+dfsg1-1+deb13u6 | DSA-6158-1 | ||
| imagemagick | source | (unstable) | 8:7.1.2.15+dfsg1-1 |
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-g2pr-qxjg-7r2w
Fixed by: https://github.com/ImageMagick/ImageMagick/commit/93ad259ce4f6d641eea0bee73f374af90f35efc3 (7.1.2-14)
Fixed by: https://github.com/ImageMagick/ImageMagick6/commit/29aeed740553ed4e5c544e101ac468be55a919ff (6.9.13-39)
Followup: https://github.com/ImageMagick/ImageMagick6/commit/2024ae1d10a7481d04fb717b3fa9170fd294a8f3 (6.9.13-41)