CVE-2024-46954
Ghostscript vulnerability analysis and mitigation

Overview

CVE-2024-46954 is a directory traversal vulnerability discovered in Artifex Ghostscript versions before 10.04.0. The vulnerability exists in the decode_utf8 function within base/gp_utf8.c, where overlong UTF-8 encoding can be exploited to perform directory traversal attacks (NVD, CVE).

Technical details

The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (High) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. The issue stems from improper handling of overlong UTF-8 encodings in the decode_utf8 function, which could be exploited to bypass directory restrictions. The vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) (NVD).

Impact

If exploited, this vulnerability could allow an attacker to perform directory traversal attacks, potentially accessing unauthorized filesystem directories. The high CVSS score indicates significant potential impacts on confidentiality, integrity, and availability of the affected system (NVD).

Mitigation and workarounds

The vulnerability has been fixed in Ghostscript version 10.04.0. The fix includes additional checks to forbid overlong encodings that could be used by malicious code to escape directories. Users are advised to upgrade to version 10.04.0 or later (Ghostscript News).

Additional resources


SourceThis report was generated using AI

Related Ghostscript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59800MEDIUM5.5
  • GhostscriptGhostscript
  • ghostscript
NoYesSep 22, 2025
CVE-2025-59799MEDIUM5.5
  • GhostscriptGhostscript
  • ghostscript-tools-dvipdf
NoYesSep 22, 2025
CVE-2025-59798MEDIUM5.5
  • GhostscriptGhostscript
  • ghostscript
NoYesSep 22, 2025
CVE-2025-7462MEDIUM5.3
  • GhostscriptGhostscript
  • ghostscript-tools-printing
NoYesJul 12, 2025
CVE-2025-59801MEDIUM4.3
  • GhostscriptGhostscript
  • ghostscript
NoYesSep 22, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management