CVE-2026-40312: ImageMagick: Off-by-One in MSL decoder could result in crash
CVE-2026-40312 is a vulnerability in ImageMagick: Off-by-One in MSL decoder could result in crash, rated Moderate by Microsoft, with a CVSS 3.1 base score of 5.5 (Medium). An attacker can exploit it by an attacker with local access, without any privileges and only if a user takes an action. Microsoft has not reported exploitation in the wild. The EPSS model estimates a 0.18% probability of exploitation activity in the next 30 days, higher than 8% of all scored vulnerabilities. Microsoft released the fix on 12 November 2026, outside Patch Tuesday. It affects 1 product in 1 product family (Open Source Software).
Key facts
- CVE ID
- CVE-2026-40312
- Severity
- Medium CVSS 5.5
- Microsoft severity
- Moderate
- Exploited in the wild
- No
- Publicly disclosed
- No
- Weakness
- CWE-193
- EPSS
- 0.18% (percentile 8%)
- CISA KEV
- Not listed
- Released
- Last updated
- Patch Tuesday
- April 2026 Patch Tuesday
- Product families
- Open Source Software
CVSS score and vector
Microsoft scores CVE-2026-40312 at 5.5 (temporal 5.5) using CVSS 3.1. Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
| Metric | Value |
|---|---|
| Attack vector | Local |
| Attack complexity | Low |
| Privileges required | None |
| User interaction | Required |
| Scope | Unchanged |
| Confidentiality impact | None |
| Integrity impact | None |
| Availability impact | High |
Affected products (1)
Open Source Software
| Product | Security update | Type | Fixed build | Restart |
|---|---|---|---|---|
| azl4 ImageMagick 1:7.1.1.47-10.azl4 on Azure Linux 4.0 | Release Notes | Security Update | 1:7.1.2.32-6.azl4 |
NIST NVD data
- NVD status
- Analyzed
- NVD CVSS
- 5.5 (MEDIUM)
- NVD weakness
- CWE-193
- Published to NVD
- NVD last modified
Affected configurations (CPE)
| Product | Vulnerable versions |
|---|---|
| imagemagick | before 7.1.2-19 |
References
- https://github.com/ImageMagick/ImageMagick/commit/2a06c7be3bba3326caf8b7a8d1fa2e0d4b88998d (Patch)
- https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19 (Release Notes)
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-5xg3-585r-9jh5 (Vendor Advisory)
- https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0 (Release Notes)
Revision history
| Version | Date | Description |
|---|---|---|
| 1.0 | Information published. |