Advisory

GHSA-g2pr-qxjg-7r2w

Also known as: CVE-2026-25796

Summary

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

Details

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 __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-02-24 15:33 UTC
Modified
2026-02-24 16:26 UTC

Affected packages and fixes

18 affected packages; all NuGet · All systems; affected: earlier versions
PackageFix
Magick.NET-Q16-AnyCPUThe export has no generic command for this ecosystem.
Magick.NET-Q16-HDRI-AnyCPUThe export has no generic command for this ecosystem.
Magick.NET-Q16-HDRI-OpenMP-arm64The export has no generic command for this ecosystem.
Magick.NET-Q16-HDRI-OpenMP-x64The export has no generic command for this ecosystem.
Magick.NET-Q16-HDRI-arm64The export has no generic command for this ecosystem.
Magick.NET-Q16-HDRI-x64The export has no generic command for this ecosystem.
Magick.NET-Q16-HDRI-x86The export has no generic command for this ecosystem.
Magick.NET-Q16-OpenMP-arm64The export has no generic command for this ecosystem.
Magick.NET-Q16-OpenMP-x64The export has no generic command for this ecosystem.
Magick.NET-Q16-OpenMP-x86The export has no generic command for this ecosystem.
Magick.NET-Q16-arm64The export has no generic command for this ecosystem.
Magick.NET-Q16-x64The export has no generic command for this ecosystem.
Magick.NET-Q16-x86The export has no generic command for this ecosystem.
Magick.NET-Q8-AnyCPUThe export has no generic command for this ecosystem.
Magick.NET-Q8-OpenMP-arm64The export has no generic command for this ecosystem.
Magick.NET-Q8-arm64The export has no generic command for this ecosystem.
Magick.NET-Q8-x64The export has no generic command for this ecosystem.
Magick.NET-Q8-x86The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences