What’s Vulnerable › Vulnerabilities
CVE-2026-40312: ImageMagick: Off-by-One in MSL decoder could result in crash
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-04-13 · updated 2026-06-17
- Weakness: CWE-193
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below 7.1.2-19, an off by one error in the MSL decoder could result in a crash when a malicous MSL file is read. This issue has been fixed in version 7.1.2-19.
Affected products
- ImageMagick: before 7.1.2-19 — fixed in 7.1.2-19
How to fix
Upgrade to a fixed version: ImageMagick 7.1.2-19. Check the vendor advisory for mitigations.
References
- https://github.com/ImageMagick/ImageMagick/commit/2a06c7be3bba3326caf8b7a8d1fa2e0d4b88998d
- https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-5xg3-585r-9jh5
- https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0
Get alerted when CVE-2026-40312 or the next vulnerability affects your stack