CVE-2026-28688
JSON

4.0medium

ImageMagick has a heap use-after-free in the MSL encoder

Severity
4.0medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.37% (higher than 23% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-xxw5-m53x-j38c

Description

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-16 and 6.9.13-41, a heap-use-after-free vulnerability exists in the MSL encoder, where a cloned image is destroyed twice. The MSL coder does not support writing MSL so the write capability has been removed. This vulnerability is fixed in 7.1.2-16 and 6.9.13-41.

Affected

Product or packageVersionsReported by
ImageMagick ImageMagick>= 7.0.0, < 7.1.2-16, < 6.9.13-41, before 6.9.13-41, from 7.0.0-0 before 7.1.2-16CVE List, NVD
Magick.NET-Q16-AnyCPU (NuGet)before 14.10.4GitHub Advisory Database
Magick.NET-Q16-HDRI-AnyCPU (NuGet)before 14.10.4GitHub Advisory Database
Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet)before 14.10.4GitHub Advisory Database
Magick.NET-Q16-HDRI-arm64 (NuGet)before 14.10.4GitHub Advisory Database
Magick.NET-Q16-HDRI-x64 (NuGet)before 14.10.4GitHub Advisory Database
Magick.NET-Q16-HDRI-x86 (NuGet)before 14.10.4GitHub Advisory Database
Magick.NET-Q16-OpenMP-arm64 (NuGet)before 14.10.4GitHub Advisory Database
Magick.NET-Q16-OpenMP-x64 (NuGet)before 14.10.4GitHub Advisory Database
Magick.NET-Q16-OpenMP-x86 (NuGet)before 14.10.4GitHub Advisory Database
Magick.NET-Q16-arm64 (NuGet)before 14.10.4GitHub Advisory Database
Magick.NET-Q16-x64 (NuGet)before 14.10.4GitHub Advisory Database

All scores

GitHub_M4.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub4.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, 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 versions 7.1.2-16 and 6.9.13-41, a heap-use-after-free vulnerability exists in the MSL encoder, where a cloned image is destroyed twice. The MSL coder does not support writing MSL so the write capability has been removed. This vulnerability is fixed in 7.1.2-16 and 6.9.13-41.

GitHub Advisory Database

A heap-use-after-free vulnerability exists in the MSL encoder, where a cloned image is destroyed twice. The MSL coder does not support writing MSL so the write capability has been removed.

SUMMARY: AddressSanitizer: heap-use-after-free MagickCore/image.c:1195 in DestroyImage
Shadow bytes around the buggy address:
  0x0a4e80007450: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0a4e80007460: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0a4e80007470: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0a4e80007480: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0a4e80007490: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
=>0x0a4e800074a0: fd fd fd fd fd fd fd fd fd fd[fd]fd fd fd fd fd
  0x0a4e800074b0: fd fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa
  0x0a4e800074c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0a4e800074d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0a4e800074e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0a4e800074f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
NVD (es)

ImageMagick es un software libre y de código abierto utilizado para editar y manipular imágenes digitales. Antes de las versiones 7.1.2-16 y 6.9.13-41, existe una vulnerabilidad de uso después de liberación de heap en el codificador MSL, donde una imagen clonada es destruida dos veces. El codificador MSL no soporta la escritura de MSL, por lo que la capacidad de escritura ha sido eliminada. Esta vulnerabilidad está corregida en 7.1.2-16 y 6.9.13-41.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-28688 changed 2026-03-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-xxw5-m53x-j38c changed 2026-03-14CC-BY-4.0
NVDCVE-2026-28688 changed 2026-06-17Public domain