CVE-2026-103118

GraphicsMagick WPG File wpg.c ExtractPostscript recursion

Published Sep 30, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability resides in the ExtractPostscript function within the GraphicsMagick WPG file handler. When a crafted WPG file is processed, the function can enter an uncontrolled recursion loop, potentially exhausting stack memory or causing a crash. This deficiency can be leveraged by a remote attacker to cause a denial‑of‑service condition on the affected system. The weak points correspond to CWE‑404, CWE‑674, and CWE‑835, reflecting improper input handling and lack of recursion limits.

Affected Systems

GraphicsMagick versions up to and including 1.3.47 are affected. The issue appears in the wpg.c component of the WPG file handler. Systems that use older GraphicsMagick releases and accept untrusted WPG files should consider the risk. A patch (commit 627b5b1b2fc2) has been released to fix the recursion problem.

Risk and Exploitability

The CVSS score of 5.3 indicates a medium severity. EPSS information is not available, and the vulnerability is not yet listed in the CISA KEV catalog. Although the attack vector is reported as remote, the exact conditions—for example, required privileges or network exposure—are not detailed, so if a system processes WPG files from an external source, the risk remains. Due to the medium score and lack of exploit data, the likelihood of exploitation appears low but should not be dismissed, especially in environments where WPG files are routinely handled.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the GraphicsMagick patch that implements commit 627b5b1b2fc2, updating to any version that includes this fix.
  • If an immediate upgrade is not possible, disable or limit the ability of the system to open or parse WPG files from untrusted sources.
  • Monitor application logs and system stability for signs of repeated crashes or abnormal memory consumption that would indicate an attempt to exploit the recursion flaw.

Generated by OpenCVE AI on October 1, 2026 at 03:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title GraphicsMagick WPG File wpg.c ExtractPostscript recursion
First Time appeared Graphicsmagick
Graphicsmagick graphicsmagick
Weaknesses CWE-404
CWE-674
CPEs cpe:2.3:a:graphicsmagick:graphicsmagick:*:*:*:*:*:*:*:*
Vendors & Products Graphicsmagick
Graphicsmagick graphicsmagick
References
Metrics cvssV2_0

{'score': 5, 'vector': 'AV:N/AC:L/Au:N/C:N/I:N/A:P/E:ND/RL:OF/RC:C'}

cvssV3_0

{'score': 4.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C'}

cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C'}

cvssV4_0

{'score': 5.3, 'vector': '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/E:X'}

Weaknesses
  • CWE-404

    Improper Resource Shutdown or Release

  • CWE-674

    Uncontrolled Recursion

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Oct 2, 2026, 4:13 PM
Reserved
Sep 30, 2026, 5:57 AM
Status
Awaiting Analysis
Published
Sep 30, 2026, 2:17 PM
Modified
Oct 2, 2026, 5:17 PM
Severity
Moderate
Public date
Sep 30, 2026, 1:30 PM