Vulnerabilities

CVE-2026-40311

Medium 5.5 CVSS 3.1

Description

ImageMagick is free and open-source software used for editing and manipulating digital images. Versions below 7.1.2-19 and 6.9.13-44 contain a heap use-after-free vulnerability that can cause a crash when reading and printing values from an invalid XMP profile. This issue has been fixed in versions 6.9.13-44 and 7.1.2-19.

Description as published by the source, in English.

Key facts

Published
2026-04-13
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.2 % higher than 8 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Magick.NET-Q16-AnyCPU (NuGet) < 14.12.0 Affected
Magick.NET-Q16-arm64 (NuGet) < 14.12.0 Affected
Magick.NET-Q16-HDRI-AnyCPU (NuGet) < 14.12.0 Affected
Magick.NET-Q16-HDRI-arm64 (NuGet) < 14.12.0 Affected
Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet) < 14.12.0 Affected
Magick.NET-Q16-HDRI-x64 (NuGet) < 14.12.0 Affected
Magick.NET-Q16-HDRI-x86 (NuGet) < 14.12.0 Affected
Magick.NET-Q16-OpenMP-arm64 (NuGet) < 14.12.0 Affected
Magick.NET-Q16-OpenMP-x64 (NuGet) < 14.12.0 Affected
Magick.NET-Q16-x64 (NuGet) < 14.12.0 Affected
Magick.NET-Q16-x86 (NuGet) < 14.12.0 Affected
Magick.NET-Q8-AnyCPU (NuGet) < 14.12.0 Affected
Magick.NET-Q8-arm64 (NuGet) < 14.12.0 Affected
Magick.NET-Q8-OpenMP-arm64 (NuGet) < 14.12.0 Affected
Magick.NET-Q8-x64 (NuGet) < 14.12.0 Affected
Magick.NET-Q8-x86 (NuGet) < 14.12.0 Affected
Imagemagick Imagemagick < 6.9.13-44 Affected
Imagemagick Imagemagick ≥ 7.0.0-0, < 7.1.2-19 Affected

Weakness type

  • CWE-416: Use After Free

    The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within…

  • CWE-693: Protection Mechanism Failure

    The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.

Attack techniques

Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.

  • T1040: Network Sniffing credential-access, discovery
  • T1083: File and Directory Discovery discovery
  • T1565.002: Transmitted Data Manipulation impact
  • T1574.005: Executable Installer File Permissions Weakness stealth, execution
  • T1574.010: Services File Permissions Weakness stealth, execution
  • T1611: Escape to Host privilege-escalation

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities