CVE-2024-29508
Low · 3.3CVSS
3.3
EPSS
0.4%
Published
Jul 3, 2024
CISA due date
—
Cloudanix analysis
A software flaw in a common PDF processing tool could let someone with access to the computer see small pieces of internal memory information that might help them attack further.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- Information Disclosure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based pointer disclosure in pdf_base_font_alloc function, observable via constructed BaseFont name during PDF processing.
Why it matters to the business
Local users may extract limited memory address information from Ghostscript PDF workflows, potentially aiding follow-on attacks in environments processing untrusted documents.
How an attack unfolds
An attacker with local access supplies a specially crafted PDF or font input that triggers pdf_base_font_alloc, then inspects the resulting BaseFont name to observe leaked heap pointers.
How to fix it
Upgrade Artifex Ghostscript to version 10.03.0 or later; rebuild any dependent packages and re-validate PDF processing pipelines.
How to confirm the fix worked
Confirm installed Ghostscript version is 10.03.0 or newer; test PDF rendering with crafted BaseFont inputs and verify absence of pointer leakage in output names.
Typical attack path
- Obtain local access to a system running vulnerable Ghostscript
- Craft or obtain a PDF containing a malicious BaseFont definition
- Process the input via Ghostscript to trigger pdf_base_font_alloc
- Inspect the generated BaseFont name to capture disclosed heap pointers
- Use pointer information to inform subsequent exploitation attempts
How to detect it
Review application logs and process output for unexpected BaseFont name patterns containing pointer-like values; correlate with Ghostscript invocation timestamps on systems handling untrusted PDFs.
What your security team should do
- Prioritize upgrade of Ghostscript to 10.03.0 across all systems processing PDFs
- Inventory and update downstream applications that embed or call Ghostscript
- Restrict local user access to Ghostscript binaries where feasible
- Monitor EPSS trend and revisit if exploit code appears
The record
Artifex Ghostscript before 10.03.0 has a heap-based pointer disclosure (observable in a constructed BaseFont name) in the function pdf_base_font_alloc.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | ghostscript | 0 | No fix |
| Debian:11 | ghostscript | 0 | 9.53.3~dfsg-7+deb11u8 |
| Debian:12 | ghostscript | 0 | 10.0.0~dfsg-11+deb12u5 |
| Debian:13 | ghostscript | 0 | 10.03.0~dfsg-1 |
| Debian:14 | ghostscript | 0 | 10.03.0~dfsg-1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP5 | ghostscript | 0 | 9.52-150000.197.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | ghostscript | 0 | 9.52-150000.197.1 |
| SUSE:Linux Enterprise Server 12 SP5 | ghostscript | 0 | 9.52-23.83.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | ghostscript | 0 | 9.52-23.83.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | ghostscript | 0 | 9.52-23.83.1 |
| Ubuntu:20.04:LTS | ghostscript | 0 | 9.50~dfsg-5ubuntu4.13 |
| Ubuntu:22.04:LTS | ghostscript | 0 | 9.55.0~dfsg1-0ubuntu5.9 |
| Ubuntu:24.04:LTS | ghostscript | 0 | 10.02.1~dfsg1-0ubuntu7.3 |
| Ubuntu:24.10 | ghostscript | 0 | 10.02.1~dfsg1-0ubuntu9 |
| Ubuntu:Pro:16.04:LTS | ghostscript | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | ghostscript | 0 | 9.26~dfsg+0-0ubuntu0.16.04.14+esm9 |
| Ubuntu:Pro:18.04:LTS | ghostscript | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | ghostscript | 0 | 9.26~dfsg+0-0ubuntu0.18.04.18+esm4 |
| openSUSE:Leap 15.5 | ghostscript | 0 | 9.52-150000.197.1 |
| openSUSE:Leap 15.6 | ghostscript | 0 | 9.52-150000.197.1 |
Related vulnerabilities
- CVE-2024-46956 An issue was discovered in psi/zfile.c in Artifex Ghostscript before 10.04.0. Also affects ghostscript
- CVE-2024-46955 An issue was discovered in psi/zcolor.c in Artifex Ghostscript before 10.04.0. Also affects ghostscript
- CVE-2024-46953 An issue was discovered in base/gsdevice.c in Artifex Ghostscript before 10.04.0. Also affects ghostscript
- CVE-2024-46952 An issue was discovered in pdf/pdf_xref.c in Artifex Ghostscript before 10.04.0. Also affects ghostscript
- CVE-2024-46951 An issue was discovered in psi/zcolor.c in Artifex Ghostscript before 10.04.0. Also affects ghostscript
- CVE-2023-52722 An issue was discovered in Artifex Ghostscript before 10.03.1. Also affects ghostscript
- CVE-2023-38559 A buffer overflow flaw was found in base/gdevdevn.c:1973 in devn_pcx_write_rle() in… Also affects ghostscript
- CVE-2023-36664 Artifex Ghostscript before 10.01.2 mishandles permission validation for pipe devices… Also affects ghostscript