ImageMagick before 7.1.2-36 Heap Buffer Overflow When Encoding 12-Bit Images
Summary
| CVE | CVE-2026-140368 |
|---|---|
| State | PUBLISHED |
| Assigner | VulnCheck |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-01 15:17:59 UTC |
| Updated | 2026-12-03 01:24:58 UTC |
| Description | ImageMagick before 6.9.13-61 and 7.x before 7.1.2-36 contains a heap buffer overflow in encoders that export pixels for 12-bit images before encoding the image data. Attackers can supply a crafted image that, when processed and encoded, triggers an out-of-bounds heap write, causing crashes or memory corruption. |
Risk And Classification
Primary CVSS: v4.0 2 LOW from [email protected]
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS: 0.002000000 probability, percentile 0.104330000 (date 2026-12-02)
Problem Types: CWE-787 | CWE-787 Out-of-bounds Write
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | [email protected] | Secondary | 2 | LOW | CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/C... |
| 4.0 | CNA | CVSS | 2 | LOW | CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N |
| 3.1 | [email protected] | Primary | 6.1 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H |
| 3.1 | [email protected] | Secondary | 3.6 | LOW | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L |
| 3.1 | CNA | CVSS | 3.6 | LOW | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L |
CVSS v4.0 Breakdown
Attack Vector
LocalAttack Complexity
HighAttack Requirements
PresentPrivileges Required
NoneUser Interaction
PassiveConfidentiality
NoneIntegrity
LowAvailability
LowSub Conf.
NoneSub Integrity
NoneSub Availability
NoneCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
NoneIntegrity
LowAvailability
HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Imagemagick | Imagemagick | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | ImageMagick | ImageMagick | affected 7.0.0 7.1.2-36 semver | Not specified |
| CNA | ImageMagick | ImageMagick | unaffected 7.1.2-36 semver | Not specified |
| CNA | ImageMagick | ImageMagick | affected 6.9.13-61 semver | Not specified |
| CNA | ImageMagick | ImageMagick | unaffected 6.9.13-61 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| www.vulncheck.com/advisories/imagemagick-before-7.1.2-36-heap-buffer-overflow-w... | [email protected] | www.vulncheck.com | Third Party Advisory |
| github.com/ImageMagick/ImageMagick/security/advisories/GHSA-cf7p-m88c-h9jh | [email protected] | github.com | Vendor Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: occia (en)
CNA: 0xyj (en)
There are currently no legacy QID mappings associated with this CVE.