CVE-2026-25796 MEDIUM

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

Vendor Imagemagick
Product ImageMagick
Weakness CWE-401
Published February 24, 2026
Last update February 26, 2026

CVSS base score

5.3/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality None
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

February 24, 2026 CVE published
February 26, 2026 Record updated