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

Published Feb 24, 2026
·
Updated

Summary

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.

Direct leak of 13512 byte(s) in 1 object(s) allocated from: #0 0x7f5c11e27887 in interceptormalloc ../../../../src/libsanitizer/asan/asanmalloclinux.cpp:145 #1 0x55cdc38f65c4 in AcquireMagickMemory MagickCore/memory.c:536 #2 0x55cdc38f65eb in AcquireCriticalMemory MagickCore/memory.c:612 #3 0x55cdc3899e91 in AcquireImage MagickCore/image.c:154

Other sources

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.

NVD

Affected Software

20 affected componentsFixes available
ImageMagick ImageMagick<7.1.2-15, <6.9.13-40
nuget/Magick.NET-Q8-x86<14.10.3
14.10.3
nuget/Magick.NET-Q8-arm64<14.10.3
14.10.3
nuget/Magick.NET-Q8-OpenMP-arm64<14.10.3
14.10.3
nuget/Magick.NET-Q8-AnyCPU<14.10.3
14.10.3
nuget/Magick.NET-Q16-x86<14.10.3
14.10.3
nuget/Magick.NET-Q16-arm64<14.10.3
14.10.3
nuget/Magick.NET-Q16-OpenMP-x86<14.10.3
14.10.3
nuget/Magick.NET-Q16-OpenMP-x64<14.10.3
14.10.3
nuget/Magick.NET-Q16-OpenMP-arm64<14.10.3
14.10.3
nuget/Magick.NET-Q16-HDRI-x86<14.10.3
14.10.3
nuget/Magick.NET-Q16-HDRI-x64<14.10.3
14.10.3
nuget/Magick.NET-Q16-HDRI-arm64<14.10.3
14.10.3
nuget/Magick.NET-Q16-HDRI-OpenMP-x64<14.10.3
14.10.3
nuget/Magick.NET-Q16-HDRI-OpenMP-arm64<14.10.3
14.10.3
nuget/Magick.NET-Q16-HDRI-AnyCPU<14.10.3
14.10.3
nuget/Magick.NET-Q16-AnyCPU<14.10.3
14.10.3
ImageMagick ImageMagick<6.9.13-40
ImageMagick ImageMagick>=7.0.0-0<7.1.2-15
debian/imagemagick<=8:6.9.11.60+dfsg-1.3+deb11u4, <=8:6.9.11.60+dfsg-1.6+deb12u5, <=8:7.1.1.43+dfsg1-1+deb13u5
8:6.9.11.60+dfsg-1.3+deb11u128:6.9.11.60+dfsg-1.6+deb12u98:7.1.1.43+dfsg1-1+deb13u88:7.1.2.18+dfsg1-18:7.1.2.21+dfsg1-1

Event History

Feb 24, 2026
CVE Published
via MITRE·12:57 AM
Data Sourced
via MITRE·12:57 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 AM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·03:33 PM
Data Sourced
via GitHub·03:33 PM
DescriptionSeverityWeaknessAffected Software
May 13, 2026
Data Sourced
via Debian·04:06 AM
DescriptionAffected Software
Data Sourced
via Launchpad·04:06 AM
Description
May 14, 2026
Data Sourced
via Ubuntu·04:06 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-25796?

CVE-2026-25796 has been classified with a severity that highlights potential memory leaks in the ImageMagick library.

2

How do I fix CVE-2026-25796?

To fix CVE-2026-25796, upgrade to ImageMagick version 14.10.3 or later.

3

Which versions of ImageMagick are affected by CVE-2026-25796?

CVE-2026-25796 affects ImageMagick versions prior to 7.1.2-15 and 6.9.13-40.

4

What type of vulnerability is CVE-2026-25796?

CVE-2026-25796 is a memory leak vulnerability that occurs in the ReadSTEGANOImage function.

5

Is CVE-2026-25796 related to image processing?

Yes, CVE-2026-25796 is related to image processing as it involves a memory leak in an image handling function of ImageMagick.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203