CVE-2026-25796: ImageMagick has memory leak of watermark Image object in ReadSTEGANOImage on multiple error/early-return paths
Vulnerability summary
CVE-2026-25796 is a high (CVSS 7.5) vulnerability in imagemagick. EPSS estimates a 0.42% chance of exploitation in the next 30 days, higher than 37.9% of scored vulnerabilities.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 12 · Related 8Timeline
- 24-02-2026PublishedVulnerability first disclosed.
- 26-02-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- CVE.orgCNA5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · NugetEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LDiffers
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.42%
Chance of exploitation in the next 30 days
Percentile
38%
Versus all other CVEs
30-day change
Decrease -0.01 pp
From 0.43% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
NuGet18 products
- Magick.NET-Q16-AnyCPU< 14.10.3
- Magick.NET-Q16-arm64< 14.10.3
- Magick.NET-Q16-HDRI-AnyCPU< 14.10.3
- Magick.NET-Q16-HDRI-arm64< 14.10.3
- Magick.NET-Q16-HDRI-OpenMP-arm64< 14.10.3
Alpine1 product
- imagemagick≥ 7.0.0-0, < 7.1.2.15-r0 | < 7.1.2.15-r0
Debian1 product
- imagemagick< 8:6.9.11.60+dfsg-1.6+deb12u8 | < 8:7.1.1.43+dfsg1-1+deb13u6 | < 8:7.1.2.15+dfsg1-1
Imagemagick1 product
- imagemagick≥ 7.0.0, < 7.1.2-15 | < 6.9.13-40 | ≥ 7.0.0-0, < 7.1.2-15
Ubuntu1 product
- imagemagick< 8:6.7.7.10-6ubuntu3.13+esm20 | < 8:6.8.9.9-7ubuntu5.16+esm19 | < 8:6.9.7.4+dfsg-16ubuntu6.15+esm11 | < 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm9 | < 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm9 | < 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm8 | < 8:7.1.2.3+dfsg1-1ubuntu0.1
5 vendors · 22 products
References
11 links- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-g2pr-qxjg-7r2wX Refsource CONFIRMREPORTWEBVendor Advisory