CVE-2024-46952
NoneCVSS
—
EPSS
0.3%
Published
Nov 10, 2024
CISA due date
—
Cloudanix analysis
A problem processing certain PDF files could let attackers take control of computers if someone opens a specially made document.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Remote Code Execution
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Buffer overflow during handling of a PDF XRef stream related to W array values in pdf/pdf_xref.c, leading to memory corruption.
Why it matters to the business
Attackers could execute arbitrary code on systems processing untrusted PDFs, risking system compromise, data theft, or malware deployment; the issue affects widely used document processing components with many downstream dependents.
How an attack unfolds
An attacker crafts a malicious PDF containing a manipulated XRef stream with abnormal W array values. When the vulnerable software parses the stream, the buffer overflow occurs and allows memory corruption that can be leveraged for code execution.
How to fix it
Upgrade flashplugin-nonfree (Ubuntu:14.04:LTS) to version 11.2.202.548ubuntu0.14.04.1 or later; apply vendor patches for Ghostscript 10.04.0 and newer where applicable.
How to confirm the fix worked
Confirm installed package version is at or above the fixed release; test PDF parsing with known-good and crafted XRef samples in a controlled environment.
Typical attack path
- Craft malicious PDF with oversized or malformed XRef W array values
- Deliver PDF to target via email, web download, or shared document
- Victim application opens and parses the PDF
- Overflow triggers in XRef handling leading to control-flow hijack
How to detect it
Review application crash logs and PDF processing events for signs of buffer overflows; correlate with file creation or execution timestamps after PDF handling.
What your security team should do
- Prioritize patching all instances of the affected component within the next 30 days given publication age
- Block or sandbox untrusted PDF processing until upgrades are complete
- Update detection rules to monitor for PDF-related crashes or anomalous memory usage
The record
An issue was discovered in pdf/pdf_xref.c in Artifex Ghostscript before 10.04.0. There is a buffer overflow during handling of a PDF XRef stream (related to W array values).
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| AlmaLinux:8 | ghostscript | 0 | 9.27-16.el8_10 |
| AlmaLinux:8 | ghostscript-doc | 0 | 9.27-16.el8_10 |
| AlmaLinux:8 | ghostscript-tools-dvipdf | 0 | 9.27-16.el8_10 |
| AlmaLinux:8 | ghostscript-tools-fonts | 0 | 9.27-16.el8_10 |
| AlmaLinux:8 | ghostscript-tools-printing | 0 | 9.27-16.el8_10 |
| AlmaLinux:8 | ghostscript-x11 | 0 | 9.27-16.el8_10 |
| AlmaLinux:8 | libgs | 0 | 9.27-16.el8_10 |
| AlmaLinux:8 | libgs-devel | 0 | 9.27-16.el8_10 |
| AlmaLinux:9 | ghostscript | 0 | 9.54.0-18.el9_6 |
| AlmaLinux:9 | ghostscript-doc | 0 | 9.54.0-18.el9_6 |
| AlmaLinux:9 | ghostscript-tools-dvipdf | 0 | 9.54.0-18.el9_6 |
| AlmaLinux:9 | ghostscript-tools-fonts | 0 | 9.54.0-18.el9_6 |
| AlmaLinux:9 | ghostscript-tools-printing | 0 | 9.54.0-18.el9_6 |
| AlmaLinux:9 | ghostscript-x11 | 0 | 9.54.0-18.el9_6 |
| AlmaLinux:9 | libgs | 0 | 9.54.0-18.el9_6 |
| AlmaLinux:9 | libgs-devel | 0 | 9.54.0-18.el9_6 |
| Alpine:v3.18 | ghostscript | 0 | 10.04.0-r0 |
| Alpine:v3.19 | ghostscript | 0 | 10.04.0-r0 |
| Alpine:v3.20 | ghostscript | 0 | 10.04.0-r0 |
| Alpine:v3.21 | ghostscript | 0 | 10.04.0-r0 |
| Alpine:v3.22 | ghostscript | 0 | 10.04.0-r0 |
| Debian:11 | ghostscript | 0 | No fix |
| Debian:12 | ghostscript | 0 | No fix |
| Debian:12 | ghostscript | 0 | 10.0.0~dfsg-11+deb12u6 |
| Debian:13 | ghostscript | 0 | 10.04.0~dfsg-1 |
| Debian:14 | ghostscript | 0 | 10.04.0~dfsg-1 |
| Mageia:9 | ghostscript | 0 | 10.04.0-1.mga9 |
| Ubuntu:20.04:LTS | ghostscript | 0 | 9.50~dfsg-5ubuntu4.14 |
| Ubuntu:22.04:LTS | ghostscript | 0 | 9.55.0~dfsg1-0ubuntu5.10 |
| Ubuntu:24.04:LTS | ghostscript | 0 | 10.02.1~dfsg1-0ubuntu7.4 |
| Ubuntu:24.10 | ghostscript | 0 | 10.03.1~dfsg1-0ubuntu2.1 |
| openSUSE:Tumbleweed | ghostscript | 0 | 10.04.0-1.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-46953 An issue was discovered in base/gsdevice.c in Artifex Ghostscript before 10.04.0. Also affects ghostscript
- CVE-2024-46954 An issue was discovered in decode_utf8 in base/gp_utf8.c in Artifex Ghostscript before… 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-46751 An issue was discovered in the function gdev_prn_open_printer_seekable() in Artifex… 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
- CVE-2025-27837 An issue was discovered in Artifex Ghostscript before 10.05.0. Also affects ghostscript