GHSA-xgm3-v4r9-wfgm
Image Magick has a Memory Leak in coders/ashlar.c
Quick fix
GHSA-xgm3-v4r9-wfgm — Magick.NET-Q16-AnyCPU: upgrade to the fixed version with the command below.
dotnet add package Magick.NET-Q16-AnyCPU --version 14.10.3Details
Memory leak exists in `coders/ashlar.c`. The `WriteASHLARImage` allocates a structure. However, when an exception is thrown, the allocated memory is not properly released, resulting in a potential memory leak.
``` ```bash ==78968== Memcheck, a memory error detector ==78968== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al. ==78968== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info ==78968== ==78968== HEAP SUMMARY: ==78968== in use at exit: 17,232 bytes in 4 blocks ==78968== total heap usage: 4,781 allocs, 4,777 frees, 785,472 bytes allocated ```
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 14.10.3dotnet add package Magick.NET-Q16-AnyCPU --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q16-HDRI-AnyCPU --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q16-HDRI-OpenMP-arm64 --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q16-HDRI-OpenMP-x64 --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q16-HDRI-arm64 --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q16-HDRI-x64 --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q16-HDRI-x86 --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q16-OpenMP-arm64 --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q16-OpenMP-x64 --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q16-OpenMP-x86 --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q16-arm64 --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q16-x86 --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q8-AnyCPU --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q8-OpenMP-arm64 --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q8-OpenMP-x64 --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q8-arm64 --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q8-x64 --version 14.10.30Fixed in: 14.10.3dotnet add package Magick.NET-Q8-x86 --version 14.10.3References
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-xgm3-v4r9-wfgm[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2026-25969[ADVISORY]
- https://github.com/ImageMagick/ImageMagick/commit/a253d1b124ebdcc2832daac6f9a35c362635b40e[WEB]
- https://github.com/ImageMagick/ImageMagick[PACKAGE]
- https://github.com/dlemstra/Magick.NET/releases/tag/14.10.3[WEB]