CVE-2024-46954 Path traversal in n/a
Attackers can exploit overlong UTF-8 encoding in Ghostscript to perform directory traversal and read arbitrary files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-46954?
CVE-2024-46954 is a high-severity path traversal vulnerability in Artifex Ghostscript, published on 10 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
An issue was discovered in decode_utf8 in base/gp_utf8.c in Artifex Ghostscript before 10.04.0. Overlong UTF-8 encoding leads to possible ../ directory traversal.
Weakness: CWE-22
Which versions are affected by CVE-2024-46954?
It affects 1 product.
Products include Artifex Ghostscript.
How do I fix CVE-2024-46954?
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-46954 being exploited?
There is no known exploitation of CVE-2024-46954 in the wild and no public exploit code.
Other vulnerabilities in Artifex Ghostscript
Sources
Also known as ALPINE-CVE-2024-46954, BELL-CVE-2024-46954, CLSA-2025-1751892809, DEBIAN-CVE-2024-46954, GHSA-2v5c-72gh-q5f7, UBUNTU-CVE-2024-46954.