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

- Severity: High 7.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-30T16:02:27.435Z
- Modified: 2026-07-30T18:35:38.203Z
- Related: CVE-2026-25796, EUVD-2026-7446, GHSA-g2pr-qxjg-7r2w

## Description

### 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
```

(As written by Julia Security Advisories.)

## Affected

- ImageMagick_jll (Julia): before 7.1.2023+0

## References

- <https://github.com/ImageMagick/ImageMagick/commit/93ad259ce4f6d641eea0bee73f374af90f35efc3> (web)
- <https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-g2pr-qxjg-7r2w> (web)
- <https://github.com/advisories/GHSA-g2pr-qxjg-7r2w> (web)
- <https://github.com/dlemstra/Magick.NET/releases/tag/14.10.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25796> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-946](https://osv.dev/vulnerability/JLSEC-2026-946), CC-BY-4.0, modified 2026-07-30

---

Page: https://cve.day/JLSEC-2026-946 · Whole record: https://cve.day/JLSEC-2026-946.json · Rebuilt by cve.day 2026-11-25T22:56:26.298Z
