CVE-2024-29511 Path traversal in n/a

High 7.5 Published Updated

Attackers can read arbitrary files and write error messages via directory traversal in Ghostscript when Tesseract OCR is enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-29511?

CVE-2024-29511 is a high-severity path traversal vulnerability in Artifex Ghostscript, published on 3 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-489

Which versions are affected by CVE-2024-29511?

It affects 1 product.

Products include Artifex Ghostscript.

How do I fix CVE-2024-29511?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-29511 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29511 exists.

All Artifex Ghostscript vulnerabilities

Sources

Also known as BELL-CVE-2024-29511, DEBIAN-CVE-2024-29511, GHSA-g9m4-vfq7-w439, ROOT-OS-DEBIAN-12-CVE-2024-29511, UBUNTU-CVE-2024-29511.

Is CVE-2024-29511 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free