PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2024-29507: 
Ghostscript vulnerability analysis and mitigation

Overview

Artifex Ghostscript before version 10.03.0 contains a stack-based buffer overflow vulnerability identified as CVE-2024-29507. The vulnerability exists in the handling of CIDFSubstPath and CIDFSubstFont parameters, where under specific conditions these parameters are used to load substitute fonts without proper bounds checking (Debian Tracker, NVD).

Technical details

The vulnerability occurs in the pdfi_open_CIDFont_substitute_file function where the values of cidfsubstpath and cidfsubstfont parameters are copied into the fontfname buffer using memcpy without proper bounds checks. The fontfname buffer has a fixed size of 4096 bytes (gp_file_name_sizeof), and an attacker can trigger a stack buffer overflow by passing values larger than this buffer size (OSS Security).

Impact

The vulnerability has been assigned a CVSS v3.1 Base Score of 5.4 (Medium), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L. This indicates that the vulnerability can be exploited remotely, requires low attack complexity, and can result in limited impact to both integrity and availability of the affected system (NVD).

Exploitability

The vulnerability was discovered and reported by security researchers, and a fix was implemented in Ghostscript version 10.03.0. The issue was introduced in ghostpdl-9.55.0rc1 and fixed by commit 7745dbe24514710b0cfba925e608e607dee9eb0f in ghostpdl-10.03.0 (Debian Tracker).

Mitigation and workarounds

The vulnerability has been fixed in Ghostscript version 10.03.0 and later. Users are advised to upgrade to the latest version. For systems that cannot be immediately upgraded, no specific workarounds have been publicly documented (Debian Tracker).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

ghostscript: 10.0.0~dfsg-11+deb12u5

Fixed

bullseye

ghostscript

Fixed

sid

ghostscript: 10.03.0~dfsg-1

Fixed

trixie

ghostscript: 10.03.0~dfsg-1

Fixed

Source: This report was generated using AI

Related Ghostscript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-39919CRITICAL9.3
  • Ghostscript logoGhostscript
  • ghostscript-gtk
NoYesSep 15, 2026
CVE-2026-101258HIGH7.8
  • Ghostscript logoGhostscript
  • ghostscript-tools-dvipdf
NoYesOct 06, 2026
CVE-2026-112177HIGH7.3
  • Ghostscript logoGhostscript
  • ghostscript-x11
NoNoOct 20, 2026
CVE-2026-19547HIGH7
  • Ghostscript logoGhostscript
  • ghostscript-gtk
NoYesSep 29, 2026
CVE-2026-103226LOW2.1
  • Ghostscript logoGhostscript
  • ghostscript-debuginfo
NoYesSep 30, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management