5.3medium
ImageMagick has Memory Leak in coders/ashlar.c
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.40% (higher than 36% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-xgm3-v4r9-wfgm
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to version 7.1.2-15, a 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. Version 7.1.2-15 contains a patch.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ImageMagick ImageMagick | < 7.1.2-15, before 7.1.2-15 | CVE List, NVD |
| Magick.NET-Q16-AnyCPU (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-HDRI-AnyCPU (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-HDRI-arm64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-HDRI-x64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-HDRI-x86 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-OpenMP-arm64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-OpenMP-x64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-OpenMP-x86 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-arm64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q16-x86 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q8-AnyCPU (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q8-OpenMP-arm64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q8-OpenMP-x64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q8-arm64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q8-x64 (NuGet) | before 14.10.3 | GitHub Advisory Database |
| Magick.NET-Q8-x86 (NuGet) | before 14.10.3 | GitHub Advisory Database |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to version 7.1.2-15, a 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. Version 7.1.2-15 contains a patch.
GitHub Advisory Database
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
NVD (es)
ImageMagick es un software libre y de código abierto utilizado para editar y manipular imágenes digitales. Antes de la versión 7.1.2-15, existe una fuga de memoria en `coders/ashlar.c`. La `WriteASHLARImage` asigna una estructura. Sin embargo, cuando se lanza una excepción, la memoria asignada no se libera correctamente, lo que resulta en una posible fuga de memoria. La versión 7.1.2-15 contiene un parche.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-25969 changed 2026-06-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xgm3-v4r9-wfgm changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-25969 changed 2026-06-23 | Public domain |