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.
Published: 2026-09-30
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service via uncontrolled recursion
Action: Apply Patch
AI Analysis

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 leading to a crash. This deficiency can be leveraged by a remote attacker to cause a denial‑of‑service condition on the affected system. The weakness corresponds to CWE‑674 and CWE‑404, reflecting improper handling of input data that drives the recursion.

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 CISA KEV catalog. Although the attack vector is reported as remote, the exact conditions—for example, required privileges or network exposure—are not detailed, meaning that 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.

Generated by OpenCVE AI on September 30, 2026 at 14:51 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Install the GraphicsMagick fix by updating to a release that includes commit 627b5b1b2fc2, such as version 1.3.48 or newer.
  • 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 September 30, 2026 at 14:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 30 Sep 2026 13:45:00 +0000

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'}


Subscriptions

Graphicsmagick Graphicsmagick
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-09-30T13:30:05.945Z

Reserved: 2026-09-30T05:57:03.831Z

Link: CVE-2026-103118

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-30T14:17:27.347

Modified: 2026-09-30T16:11:29.603

Link: CVE-2026-103118

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-30T15:00:12Z

Weaknesses
  • CWE-404

    Improper Resource Shutdown or Release

  • CWE-674

    Uncontrolled Recursion