Skip to main content

GraphicsMagick EUVDEUVD-2026-89954

| CVE-2026-103118 MEDIUM
Uncontrolled Recursion (CWE-674)
2026-09-30 VulDB GHSA-4c5c-7x65-ccwp
5.3
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious WPG file
  2. Delivery
    Deliver to image-processing target
  3. Exploit
    GraphicsMagick invokes ExtractPostscript in coders/wpg.c
  4. Execution
    Uncontrolled recursion exhausts stack
  5. Impact
    Process crash / denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Exploitation requires that GraphicsMagick be used to parse or convert an attacker-controlled WordPerfect Graphics (WPG) file through the WPG coder path that reaches ExtractPostscript() in coders/wpg.c. The limiting factor is user/pipeline interaction (CVSS UI:P): a victim, or an automated service accepting uploaded images, must actually process the malicious file - there is no self-propagating or fully passive trigger. No authentication is needed against the file itself (PR:N), and the vector is network-reachable in the sense that the malicious file can be delivered remotely, but impact is confined to availability (a crash of the processing worker); confidentiality and integrity are unaffected. Deployments that never handle untrusted WPG input, or that sandbox/limit stack for conversion workers, face reduced practical risk.

Impact

This is a genuinely low-to-moderate real-world risk. The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L, score 5.3) describes an availability-only impact (VA:L, with confidentiality and integrity explicitly N) triggered when a victim processes an attacker-supplied WPG file - the UI:P (Passive user interaction) reflects that a user or automated pipeline must be induced to open/convert the malicious file. The CWE-674 (Uncontrolled Recursion) classification is consistent with a crash/denial-of-service through stack exhaustion in ExtractPostscript() of coders/wpg.c, NOT code execution or data disclosure. Signals are consistent among themselves but NOT with the metadata: no EPSS score is provided, this is not in CISA KEV (no active exploitation), and no public exploit code is referenced - only a VulDB advisory and the vendor patch. Note a clear labeling conflict: the input Tags say 'Information Disclosure', which directly contradicts the CVSS vector (VC:N, VA:L) and the recursion CWE - this is a denial-of-service issue, not information disclosure. Overall: a real but low-severity bug worth patching in image-processing pipelines, not an urgent priority.

Exploit ScenarioDerived

An attacker crafts a malformed WordPerfect Graphics (WPG) file containing structures that trigger unbounded recursion in ExtractPostscript(), then uploads or emails it to a service or user that automatically renders or converts images with GraphicsMagick. When the file is parsed, recursion exhausts the stack and crashes the worker process, causing a denial of service for that conversion job or service. No public exploit code is identified at time of analysis, though the deterministic nature of the parsing bug makes a proof-of-concept file straightforward to construct.

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 – Sep 30, 2026

Uncontrolled recursion in GraphicsMagick's WordPerfect Graphics (WPG) decoder (ExtractPostscript in coders/wpg.c) lets remote attackers crash image-processing workers by supplying a crafted WPG file; confidentiality and integrity are unaffected, making this a low-severity availability issue. All releases through 1.3.47 are affected per EUVD, and exploitation is unauthenticated but requires the victim or an automated pipeline to actually parse the malicious file (CVSS UI:P). No public exploit code or active exploitation has been identified at time of analysis, and the vendor has published a fix as commit 627b5b1b2fc2.

RemediationAI

Vendor-released fix is upstream commit 627b5b1b2fc2 (https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/627b5b1b2fc2); note that the exact patched release version number is not specified in the available data ("Upstream fix available (PR/commit); released patched version not independently confirmed"), so rebuild or upgrade to a GraphicsMagick build that contains this commit and confirm the WPG coder includes the depth limit before relying on it. Until that build is deployed, restrict the exposure path: block or allowlist file types on any upload, thumbnail, or conversion endpoint so untrusted WPG input never reaches GraphicsMagick, and if WPG support is not required, build or configure without the WPG coder - accepting loss of legitimate WPG conversion as the trade-off. Where conversion of untrusted images is unavoidable, run it in a sandboxed worker with an enforced stack limit (for example ulimit -s or a constrained container memory limit) so a stack-exhaustion crash is contained to a disposable process rather than the parent service, and apply rate limiting and worker restarts to blunt denial-of-service effects. Vendor advisory pointers for tracking patch status are https://vuldb.com/vuln/411874 and https://vuldb.com/cve/CVE-2026-103118.

Affected VersionsENISA

GraphicsMagick 1.3.27
GraphicsMagick 1.3.1
GraphicsMagick 1.3.31
GraphicsMagick 1.3.9
GraphicsMagick 1.3.41
GraphicsMagick 1.3.37
GraphicsMagick 1.3.5
GraphicsMagick 1.3.28
GraphicsMagick 1.3.8
GraphicsMagick 1.3.7
GraphicsMagick 1.3.30
GraphicsMagick 1.3.43
GraphicsMagick 1.3.25
GraphicsMagick 1.3.6
GraphicsMagick 1.3.33
GraphicsMagick 1.3.14
GraphicsMagick 1.3.39
GraphicsMagick 1.3.17
GraphicsMagick 1.3.12
GraphicsMagick 1.3.20
GraphicsMagick 1.3.4
GraphicsMagick 1.3.32
GraphicsMagick 1.3.13
GraphicsMagick 1.3.16
GraphicsMagick 1.3.10
GraphicsMagick 1.3.44
GraphicsMagick 1.3.19
GraphicsMagick 1.3.47
GraphicsMagick 1.3.42
GraphicsMagick 1.3.40
GraphicsMagick 1.3.34
GraphicsMagick 1.3.11
GraphicsMagick 1.3.2
GraphicsMagick 1.3.0
GraphicsMagick 1.3.15
GraphicsMagick 1.3.23
GraphicsMagick 1.3.18
GraphicsMagick 1.3.38
GraphicsMagick 1.3.35
GraphicsMagick 1.3.46
GraphicsMagick 1.3.3
GraphicsMagick 1.3.26
GraphicsMagick 1.3.24
GraphicsMagick 1.3.36
GraphicsMagick 1.3.21
GraphicsMagick 1.3.22
GraphicsMagick 1.3.29
GraphicsMagick 1.3.45

Affected Packages

euvd graphicsmagick no fix

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

GraphicsMagick is a widely deployed image manipulation toolkit whose coders/wpg.c implements support for the WordPerfect Graphics (WPG) raster format; the ExtractPostscript() routine inside that coder processes embedded PostScript content and can recurse without a depth bound. This maps to CWE-674 (Uncontrolled Recursion): attacker-controlled nesting in a crafted WPG file drives unbounded call-stack growth until the process exhausts its stack and crashes, rather than corrupting memory. The CPE entry cpe:2.3:a:n/a:graphicsmagick:*:*:*:*:*:*:*:* is a generic vendor field ("n/a") that covers all GraphicsMagick release branches, and EUVD enumerates affected versions from 1.3.0 onward through 1.3.47; the code path is reached whenever those versions are used to decode or convert WPG input on a network-reachable service or endpoint. Both the submitted CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L) and the independent CVSS 3.1 assessment (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L) agree that impact is confined to low availability, with no confidentiality or integrity effect; the accompanying "Information Disclosure" tag is not supported by either vector.

Know when Graphicsmagick 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 (VulDB) PRIMARY 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 4.3 MEDIUM

Remotely delivered malicious file processed by the victim (UI:R) triggers a recursion crash; availability-only low impact (A:L), no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Red Hat 4.3 MEDIUM

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

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

DescriptionCVE.org

A vulnerability was detected in GraphicsMagick up to 1.3.47. Affected by this vulnerability is the function ExtractPostscript of the file coders/wpg.c of the component WPG File Handler. Performing a manipulation results in uncontrolled recursion. The attack may be initiated remotely. The patch is named 627b5b1b2fc2. It is suggested to install a patch to address this issue. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.

Threat Intelligence Overview

EPSS Score
0.5%
Top 59% exploitable
Prevalence
Medium
widely-used server-side image library, but narrower footprint than ImageMagick
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL VulDB

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
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
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-2017-16352 HIGH POC
8.8 Nov 01

GraphicsMagick 1.3.26 is vulnerable to a heap-based buffer overflow vulnerability found in the "Display visual image dir

CVE-2017-16353 MEDIUM POC
6.5 Nov 01

GraphicsMagick 1.3.26 is vulnerable to a memory information disclosure vulnerability found in the DescribeImage function

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-2019-19951 CRITICAL POC
9.8 Dec 24

In GraphicsMagick 1.4 snapshot-20190423 Q8, there is a heap-based buffer overflow in the function ImportRLEPixels of cod

CVE-2019-19950 CRITICAL POC
9.8 Dec 24

In GraphicsMagick 1.4 snapshot-20190403 Q8, there is a use-after-free in ThrowException and ThrowLoggedException of magi

CVE-2019-11005 CRITICAL POC
9.8 Apr 08

In GraphicsMagick 1.4 snapshot-20190322 Q8, there is a stack-based buffer overflow in the function SVGStartElement of co

CVE-2019-19953 CRITICAL POC
9.1 Dec 24

In GraphicsMagick 1.4 snapshot-20191208 Q8, there is a heap-based buffer over-read in the function EncodeImage of coders

CVE-2019-11006 CRITICAL POC
9.1 Apr 08

In GraphicsMagick 1.4 snapshot-20190322 Q8, there is a heap-based buffer over-read in the function ReadMIFFImage of code

CVE-2017-16669 HIGH POC
8.8 Nov 09

coders/wpg.c in GraphicsMagick 1.3.26 allows remote attackers to cause a denial of service (heap-based buffer overflow a

CVE-2019-11506 HIGH POC
8.8 Apr 24

In GraphicsMagick from version 1.3.30 to 1.4 snapshot-20190403 Q8, there is a heap-based buffer overflow in the function

CVE-2019-11505 HIGH POC
8.8 Apr 24

In GraphicsMagick from version 1.3.8 to 1.4 snapshot-20190403 Q8, there is a heap-based buffer overflow in the function

Vendor StatusVendor

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