CVE-2026-25796CWE-401

ImageMagick has memory leak of watermark Image object in ReadSTEGANOImage on multiple error/early-return paths

Medium · published February 24, 2026

CVSS v3.1
5.3
EPSS
1%
Percentile
44.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS v4.0
Not supplied
EPSS
0.00534 · 44.3th percentile
Weakness
CWE-401 · Missing Release of Memory after Effective Lifetime
Published
2026-02-24T00:57Z
EPSS history
Timeline
  • 24 FEB 00:57Z
    ImageMagick has memory leak of watermark Image object in ReadSTEGANOImage on multiple error/early-return paths
    cvelistv5