CVE Database›Document archive›CVE-2024-29511

CVE-2024-29511

ghostscript: ghostscript: arbitrary file read/write through Tesseract configuration

Loading…

Severity

Moderate

Red Hat Product Security

4.4

CVSS 3.1

Review impact separately from score.

Published · July 3, 2024

Updated · November 21, 2025

Description

A vulnerability was found in Ghostscript. When Tesseract is used for Optical Character Recognition (OCR), a directory traversal issue allows arbitrary file reading and writing of error messages to arbitrary files via the  OCRLanguage. This issue causes an arbitrary file read/write through the Tesseract configuration.

Statement

The CVE-2024-29511 vulnerability in Ghostscript, when used with Tesseract for OCR, is classified as a moderate severity issue rather than a important one due to its limited exploitability and scope of impact. The vulnerability primarily allows for directory traversal to read and write error messages to arbitrary files, which can lead to unauthorized access to sensitive information. However, it does not facilitate remote code execution (RCE) or direct system compromise. Exploitation requires specific conditions, such as Ghostscript being compiled with Tesseract support and the attacker having the capability to supply crafted Postscript files. The inherent need for precise conditions and lack of direct execution capabilities mitigate the overall risk, rendering the issue moderate rather than important.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

CVSS / CWE

CVSS 3.1 · 4.4
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')