CVE-2024-29511
Artifex Ghostscript before 10.03.1, when Tesseract is used for OCR, has a directory traversal issue that allows arbitrary file reading (and writing of error messages to arbitrary files) via OCRLanguage. For example, exploitation can use debug_file /tmp/out and user_patterns_file /etc/passwd.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | ghostscript | Fixed | 10.02.1~dfsg1-0ubuntu7.3 | UBUNTU-CVE-2024-29511 |
| Ubuntu 22.04 | ghostscript | Fixed | 9.55.0~dfsg1-0ubuntu5.9 | UBUNTU-CVE-2024-29511 |
| Debian 14 | ghostscript | Fixed | 10.03.0~dfsg-1 | DEBIAN-CVE-2024-29511 |
| Debian 13 | ghostscript | Fixed | 10.03.0~dfsg-1 | DEBIAN-CVE-2024-29511 |
| Debian 12 | ghostscript | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2024-29511 | |
| Red Hat Enterprise Linux 10 | ghostscript | Not affected | ||
| Red Hat Enterprise Linux 10 | ghostscript-doc | Not affected | ||
| Red Hat Enterprise Linux 10 | ghostscript-tools-dvipdf | Not affected | ||
| Red Hat Enterprise Linux 10 | ghostscript-tools-fonts | Not affected | ||
| Red Hat Enterprise Linux 10 | ghostscript-tools-printing | Not affected | ||
| Red Hat Enterprise Linux 10 | libgs | Not affected | ||
| Red Hat Enterprise Linux 10 | libgs-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript-tools-dvipdf | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript-tools-fonts | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript-tools-printing | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript-x11 | Not affected | ||
| Red Hat Enterprise Linux 9 | libgs | Not affected | ||
| Red Hat Enterprise Linux 9 | libgs-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript-tools-dvipdf | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript-tools-fonts | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript-tools-printing | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript-x11 | Not affected | ||
| Red Hat Enterprise Linux 8 | libgs | Not affected | ||
| Red Hat Enterprise Linux 8 | libgs-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-cups | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-doc | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-gtk | Not affected | ||
| Red Hat Enterprise Linux 7 | libgs | Not affected | ||
| Red Hat Enterprise Linux 7 | libgs-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | ghostscript | Not affected | ||
| Red Hat Enterprise Linux 6 | ghostscript-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | ghostscript-doc | Not affected | ||
| Red Hat Enterprise Linux 6 | ghostscript-gtk | Not affected |
References
- https://bugs.ghostscript.com/show_bug.cgi?id=707510
- https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=3d4cfdc1a44
- https://www.openwall.com/lists/oss-security/2024/07/03/7
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.