CVE-2026-40312
CVE-2026-40312 — ImageMagick: Off-by-One in MSL decoder could result in crash
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
6.2
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 6.2 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-193
References
4 on the record
- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-5xg3-585r-9jh5
x_refsource_CONFIRM
- github.com/ImageMagick/ImageMagick/commit/2a06c7be3bba3326caf8b7a8d1fa2e0d4b88998d
x_refsource_MISC
- github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19
x_refsource_MISC
- github.com/dlemstra/Magick.NET/releases/tag/14.12.0
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2016-3714 ImageMagick Improper Input Validation VulnerabilityCVSS 8.4 · CISA KEV
- CVE-2016-3718 ImageMagick Server-Side Request Forgery (SSRF) VulnerabilityCVSS 5.5 · CISA KEV
- CVE-2016-3715 ImageMagick Arbitrary File Deletion VulnerabilityCVSS 5.5 · CISA KEV
- CVE-2026-116158 ImageMagick before 7.1.2-33 Memory Leak in magick compareCVSS 2.5
- CVE-2021-3156 Sudo Heap-Based Buffer Overflow VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2026-80483 Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains an Off-by-one Error vulnerabilityCVSS 7.3
Elsewhere on this site
- Imagemagickevery CVE for this vendor
- CWE-193other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.