Skip to main content

ImageMagick CVE-2026-140367

| EUVDEUVD-2026-140186 MEDIUM
Use of Uninitialized Resource (CWE-908)
2026-12-01 VulnCheck GHSA-2pgr-9pmj-wqch
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted PGX/FITS image to app
  2. Delivery
    Application invokes ImageMagick decoder
  3. Exploit
    Decoder emits uninitialized memory into output
  4. Execution
    Attacker retrieves decoded image
  5. Impact
    Extract leaked process memory contents

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Variable initialization
Exploitation Conditions

The target application must actually decode attacker-supplied PGX or FITS images with ImageMagick (before 6.9.13-61 on the 6.x branch, or 7.x before 7.1.2-36) and must return or expose the decoded output back to the attacker for the leak to be observable. PGX and FITS are niche formats (JPEG2000 raw component and astronomical imaging, respectively), so exposure is limited to deployments that permit these coders on untrusted input - environments that restrict ImageMagick's enabled delegates/coders via policy.xml to exclude PGX/FITS are not exploitable. The CVSS vector indicates no authentication (PR:N) and no user interaction (UI:N), but the practical limiting factor is reachability of the decoder and whether the rendered output is readable; impact is confined to disclosure of uninitialized memory (VC:L), with no code execution or integrity/availability effect.

Impact

This is a moderate-severity information-disclosure flaw (CWE-908, use of uninitialized memory) in ImageMagick's PGX and FITS decoders, with signals that consistently point to a 'patch in normal cycle' priority rather than an emergency. The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) scores 6.9 but with only low confidentiality impact (VC:L) and no integrity/availability or scope impact, matching the SSVC assessment of Technical Impact: partial. SSVC also records Exploitation: none and the vuln.today Decision label is 'this_month', not act_now/emergency. There is no CISA KEV listing and no confirmed public exploit code - only vendor/advisory references (GitHub Security Advisory and a VulnCheck advisory), which are documentation, not weaponized PoC. EPSS is not provided in the input, so exploitation probability cannot be quantified here. The one amplifying signal is SSVC Automatable: yes, meaning the decode path could be triggered at scale against services that accept image uploads. Net: a real but non-urgent issue - prioritize for the current patch cycle. Caveat on signals: AV:N assumes the decoder is reachable with attacker-supplied input (e.g., an upload pipeline); the actual reachability depends on whether the deploying application invokes the PGX/FITS decoders on untrusted input.

Exploit ScenarioDerived

An attacker uploads or submits a crafted PGX or FITS image to a service that uses ImageMagick for server-side image processing (thumbnailing, conversion, preview generation). When ImageMagick decodes the file, uninitialized process memory is copied into the decoded output, and the attacker retrieves that output to read fragments of server memory that may contain other users' data, secrets, or pointers. No authentication or user interaction is indicated by the CVSS vector, but no public exploit code was identified at time of analysis; only vendor advisory references exist.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

ImageMagick decoders for the PGX and FITS image formats can copy uninitialized process memory into the decoded image output, so a crafted image supplied by an attacker may disclose residual heap or stack contents to whoever receives the rendered result. All releases before 6.9.13-61 on the 6.x branch and 7.x releases before 7.1.2-36 are affected per the vendor advisory GHSA-rm4h-gcc3-55wx. The CVSS 4.0 vector scores 6.9 with confidentiality-only impact (VC:L) and no authentication or user-interaction prerequisite, but exploitation requires the target service to actually decode attacker-supplied PGX or FITS data and to return the decoded output to the attacker; SSVC rates exploitation as none and no public exploit was identified at time of analysis, which places this in a normal patch cycle rather than an emergency.

RemediationAI

Upgrade to ImageMagick 7.1.2-36 or later on the 7.x branch, or 6.9.13-61 or later on the 6.x branch, as specified in advisory GHSA-rm4h-gcc3-55wx (https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-rm4h-gcc3-55wx); vendor patch data confirms a fix is available, and distributors that backport should apply the corresponding upstream changes. Where upgrading is delayed, restrict the attack surface by editing policy.xml to deny the PGX and FITS coders (rights="none") or by removing those delegates entirely, which makes the vulnerable decoders unreachable; the trade-off is that legitimate PGX and FITS processing stops working on that host. Limiting which image formats an untrusted-input pipeline accepts, and ensuring decoded output is not returned to the uploader, further reduces the chance that a leak is observable, but such filtering is only a stopgap and should not replace applying the vendor fix.

Affected VersionsENISA

ImageMagick 7.0.0 <7.1.2-36
ImageMagick 0 <6.9.13-61

Affected Packages

euvd imagemagick fix: 6.9.13-61, 7.1.2-36

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is CWE-908 (use of uninitialized memory) in ImageMagick's coder modules for two niche formats: PGX, a raw component/grayscale format used with JPEG2000 workflows, and FITS, the astronomical imaging format. When the decoder allocates buffers larger than the data actually present in the input and then writes the resulting image without fully initializing those buffers, the uninitialized bytes are emitted as pixel data, leaking memory contents from the ImageMagick process. Because the leak surfaces only through the decoded image itself, exploitability depends on the deployment: a service must reach the PGX or FITS coder with untrusted input and must expose the decoded output back to the requester. ImageMagick's policy.xml mechanism can disable individual coders, so installations that exclude PGX and FITS from the permitted set never reach the vulnerable code path. The supplied CPE records (cpe:2.3:a:imagemagick:imagemagick) confirm the ImageMagick upstream package as the affected component, and the CISA SSVC assessment marks the issue automatable with partial technical impact, consistent with a memory-disclosure bug that requires no special preconditions beyond decoding the file.

Know when Imagemagick gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.3 MEDIUM

Remote attacker-supplied image decoded without auth or interaction (AV:N/AC:L/PR:N/UI:N); only limited, uncontrolled memory disclosure, so C:L and I:A:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Dec 01, 2026 - 16:02 EUVD
CVE Published
Dec 01, 2026 - 14:29 cve.org
MEDIUM 6.9

DescriptionCVE.org

ImageMagick before 6.9.13-61 and 7.x before 7.1.2-36 expose uninitialized memory in the PGX and FITS image decoders. Attackers can supply a crafted PGX or FITS image that, when decoded, leaks uninitialized process memory contents into the decoded image output.

Threat Intelligence Overview

EPSS Score
0.5%
Top 53% exploitable
Prevalence
High
ImageMagick is a near-default server-side image processing library across web and CMS stacks
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2016-3718 MEDIUM POC
5.5 May 05

The (1) HTTP and (2) FTP coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to conduct

CVE-2016-3715 MEDIUM POC
5.5 May 05

The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to delete arbitrary fi

CVE-2017-15277 MEDIUM POC
6.5 Oct 12

ReadGIFImage in coders/gif.c in ImageMagick 7.0.6-1 and GraphicsMagick 1.3.26 leaves the palette uninitialized when proc

CVE-2016-5841 CRITICAL POC
9.8 Dec 13

Integer overflow in MagickCore/profile.c in ImageMagick before 7.0.2-1 allows remote attackers to cause a denial of serv

CVE-2016-3717 MEDIUM POC
5.5 May 05

The LABEL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to read arbitrary files vi

CVE-2016-5118 CRITICAL
9.8 Jun 10

The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbit

CVE-2016-5689 CRITICAL POC
9.8 Dec 13

The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b

CVE-2016-5690 CRITICAL POC
9.8 Dec 13

The ReadDCMImage function in DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to

CVE-2016-5691 CRITICAL POC
9.8 Dec 13

The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b

CVE-2026-122006 CRITICAL POC
9.8 Nov 04

Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi

CVE-2017-14138 CRITICAL POC
9.8 Sep 04

ImageMagick 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in cer

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy