CVE-2026-28688: ImageMagick has a heap use-after-free in the MSL encoder

Published Mar 9, 2026
·
Updated

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

Other sources

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.

— MITRE

Affected Software

25 affected componentsFixes available
ImageMagick ImageMagick<7.1.2-16, <6.9.13-41
nuget/magick.net-q8-x86<14.10.4
14.10.4
nuget/magick.net-q8-x64<14.10.4
14.10.4
nuget/magick.net-q8-arm64<14.10.4
14.10.4
nuget/magick.net-q8-openmp-x64<14.10.4
14.10.4
nuget/magick.net-q8-openmp-arm64<14.10.4
14.10.4
nuget/magick.net-q8-anycpu<14.10.4
14.10.4
nuget/magick.net-q16-hdri-openmp-x64<14.10.4
14.10.4
nuget/magick.net-q16-x86<14.10.4
14.10.4
nuget/magick.net-q16-x64<14.10.4
14.10.4
nuget/magick.net-q16-arm64<14.10.4
14.10.4
nuget/magick.net-q16-openmp-x86<14.10.4
14.10.4
nuget/magick.net-q16-openmp-x64<14.10.4
14.10.4
nuget/magick.net-q16-openmp-arm64<14.10.4
14.10.4
nuget/magick.net-q16-hdri-x86<14.10.4
14.10.4
nuget/magick.net-q16-hdri-x64<14.10.4
14.10.4
nuget/magick.net-q16-hdri-arm64<14.10.4
14.10.4
nuget/magick.net-q16-hdri-openmp-arm64<14.10.4
14.10.4
nuget/magick.net-q16-hdri-anycpu<14.10.4
14.10.4
nuget/magick.net-q16-anycpu<14.10.4
14.10.4
ImageMagick ImageMagick<6.9.13-41
ImageMagick ImageMagick>=7.0.0-0<7.1.2-16
alpine/imagemagick>=7.0.0-0<7.1.2.17-r0
7.1.2.17-r0
alpine/imagemagick>=7.0.0-0<7.1.2.17-r0
7.1.2.17-r0
debian/imagemagick
8:6.9.11.60+dfsg-1.6+deb12u118:6.9.11.60+dfsg-1.6+deb12u158:7.1.1.43+dfsg1-1+deb13u128:7.1.1.43+dfsg1-1+deb13u148:7.1.2.34+dfsg1-18:7.1.2.35+dfsg1-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade nuget/Magick.NET-Q8-x86 to a version that resolves this vulnerability.

    Fixed in 14.10.4
  2. Upgrade

    Upgrade nuget/Magick.NET-Q8-x64 to a version that resolves this vulnerability.

    Fixed in 14.10.4
  3. Upgrade

    Upgrade nuget/Magick.NET-Q8-arm64 to a version that resolves this vulnerability.

    Fixed in 14.10.4
  4. Upgrade

    Upgrade nuget/Magick.NET-Q8-OpenMP-x64 to a version that resolves this vulnerability.

    Fixed in 14.10.4
  5. Upgrade

    Upgrade nuget/Magick.NET-Q8-OpenMP-arm64 to a version that resolves this vulnerability.

    Fixed in 14.10.4
  6. Upgrade

    Upgrade nuget/Magick.NET-Q8-AnyCPU to a version that resolves this vulnerability.

    Fixed in 14.10.4
  7. Upgrade

    Upgrade nuget/Magick.NET-Q16-HDRI-OpenMP-x64 to a version that resolves this vulnerability.

    Fixed in 14.10.4
  8. Upgrade

    Upgrade nuget/Magick.NET-Q16-x86 to a version that resolves this vulnerability.

    Fixed in 14.10.4
  9. Upgrade

    Upgrade nuget/Magick.NET-Q16-x64 to a version that resolves this vulnerability.

    Fixed in 14.10.4
  10. Upgrade

    Upgrade nuget/Magick.NET-Q16-arm64 to a version that resolves this vulnerability.

    Fixed in 14.10.4
  11. Upgrade

    Upgrade nuget/Magick.NET-Q16-OpenMP-x86 to a version that resolves this vulnerability.

    Fixed in 14.10.4
  12. Upgrade

    Upgrade nuget/Magick.NET-Q16-OpenMP-x64 to a version that resolves this vulnerability.

    Fixed in 14.10.4
  13. Upgrade

    Upgrade nuget/Magick.NET-Q16-OpenMP-arm64 to a version that resolves this vulnerability.

    Fixed in 14.10.4
  14. Upgrade

    Upgrade nuget/Magick.NET-Q16-HDRI-x86 to a version that resolves this vulnerability.

    Fixed in 14.10.4
  15. Upgrade

    Upgrade nuget/Magick.NET-Q16-HDRI-x64 to a version that resolves this vulnerability.

    Fixed in 14.10.4
  16. Upgrade

    Upgrade nuget/Magick.NET-Q16-HDRI-arm64 to a version that resolves this vulnerability.

    Fixed in 14.10.4
  17. Upgrade

    Upgrade nuget/Magick.NET-Q16-HDRI-OpenMP-arm64 to a version that resolves this vulnerability.

    Fixed in 14.10.4
  18. Upgrade

    Upgrade nuget/Magick.NET-Q16-HDRI-AnyCPU to a version that resolves this vulnerability.

    Fixed in 14.10.4
  19. Upgrade

    Upgrade nuget/Magick.NET-Q16-AnyCPU to a version that resolves this vulnerability.

    Fixed in 14.10.4
  20. Upgrade

    Upgrade alpine/imagemagick to a version that resolves this vulnerability.

    Fixed in 7.1.2.17-r0
  21. Upgrade

    Upgrade debian/imagemagick to a version that resolves this vulnerability.

    Fixed in 8:6.9.11.60+dfsg-1.6+deb12u11Fixed in 8:6.9.11.60+dfsg-1.6+deb12u15Fixed in 8:7.1.1.43+dfsg1-1+deb13u12Fixed in 8:7.1.1.43+dfsg1-1+deb13u14Fixed in 8:7.1.2.34+dfsg1-1Fixed in 8:7.1.2.35+dfsg1-2
  22. Upgrade

    Upgrade ImageMagick (MSL encoder) to a version that resolves this vulnerability.

    Fixed in 7.1.2-16
  23. Upgrade

    Upgrade ImageMagick (MSL encoder) to a version that resolves this vulnerability.

    Fixed in 6.9.13-41

Event History

Mar 9, 2026
CVE Published
via MITRE·09:38 PM
Data Sourced
via MITRE·09:38 PM
DescriptionSeverityWeakness
Mar 10, 2026
Data Sourced
via NVD·07:43 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·07:43 AM
DescriptionSeverityAffected Software
Mar 12, 2026
Advisory Published
via GitHub·02:11 PM
Data Sourced
via GitHub·02:11 PM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-28688?

CVE-2026-28688 is classified as a high-severity vulnerability due to its potential for exploiting a heap use-after-free condition.

2

How do I fix CVE-2026-28688?

To fix CVE-2026-28688, upgrade ImageMagick to versions 7.1.2-16 or 6.9.13-41 or later.

3

What causes CVE-2026-28688 in ImageMagick?

CVE-2026-28688 is caused by a heap use-after-free condition in the MSL encoder, resulting in a cloned image being destroyed twice.

4

Is my version of ImageMagick affected by CVE-2026-28688?

If you are using ImageMagick versions prior to 7.1.2-16 or 6.9.13-41, you are at risk from CVE-2026-28688.

5

How can CVE-2026-28688 be exploited?

CVE-2026-28688 can potentially be exploited by attackers to execute arbitrary code or crash the application through crafted image files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203