CVE-2026-40312: imagemagick Off-by-one Error
CVSS: 6.2v3.1MediumAnalyzed
AliasesUBUNTU-CVE-2026-40312DEBIAN-CVE-2026-40312CGA-5r28-6x7x-c954CGA-5x8h-82vx-gg89CGA-6r42-w7w7-wfrwCGA-7qcw-f37g-6w6cCGA-96vp-3952-ffjvCGA-cp7j-x9m5-8jf8CGA-mgfh-hjwp-6756GHSA-5xg3-585r-9jh5CGA-x76w-jr6j-rwg4
Published 13-04-2026Last modified 14-04-2026
Vulnerability summary
CVE-2026-40312 is a medium (CVSS 6.2) Off-by-one Error vulnerability in imagemagick. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 6.8% of scored vulnerabilities.
CVSS score
6.2/10
010
Medium · v3.1 (CVE.org)EPSS score
0.18%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Advisory lineage
Upstream 0 · Downstream 5 · Related 6Timeline
- 13-04-2026PublishedVulnerability first disclosed.
- 14-04-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 versionMedium 6.2Preferred score · CVE.org (CNA)
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HSources6 sources · 5.5–6.2
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HDiffers
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HDiffers
- OSV · ChainguardEcosystem advisory · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · NugetEcosystem advisory · calculated6.2MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
0.18%
Chance of exploitation in the next 30 days
Percentile
7%
Versus all other CVEs
30-day change
0.00 pp
From 0.18% on 19-09-2026
19-09-202619-10-2026
EPSS score0.18%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
NuGet17 products
- magick.net-q16-anycpu< 14.12.0
- Magick.NET-Q16-arm64< 14.12.0
- magick.net-q16-hdri-anycpu< 14.12.0
- Magick.NET-Q16-HDRI-arm64< 14.12.0
- Magick.NET-Q16-HDRI-OpenMP-arm64< 14.12.0
Chainguard4 products
- imagemagick-6All versions (No fix recorded)
- imagemagick-6-dev< 6.9.13.46-r1
- imagemagick-6-doc< 6.9.13.46-r1
- imagemagick-6-static< 6.9.13.46-r1
Debian1 product
- imagemagick< 8:7.1.1.43+dfsg1-1+deb13u8 | < 8:7.1.2.19+dfsg1-1
Imagemagick1 product
- imagemagick< 7.1.2-19
Ubuntu1 product
- imagemagick< 8:6.7.7.10-6ubuntu3.13+esm25 | < 8:6.9.7.4+dfsg-16ubuntu6.15+esm16 | < 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm14 | < 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm14 | < 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm13 | All versions (No fix recorded) | < 8:7.1.2.18+dfsg1-1ubuntu0.1~esm3
5 vendors · 24 products
References
11 links- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-5xg3-585r-9jh5X Refsource CONFIRMREPORTAdvisoryWEBVendor Advisory
- github.com/ImageMagick/ImageMagick/commit/2a06c7be3bba3326caf8b7a8d1fa2e0d4b88998dX Refsource MISCREPORTFIXWEBPatch