Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') Affecting ghostscript package, versions [,10.03.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-GHOSTSCRIPT-7430262
  • published8 Jul 2024
  • disclosed3 Jul 2024
  • creditThomas Rinsma

Introduced: 3 Jul 2024

CVE-2024-29511  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade ghostscript to version 10.03.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') through the OCRLanguage configuration. An attacker can read and potentially write files on the system by specifying file paths in the OCR configuration files, such as debug_file and user_patterns_file.

Note: This is only exploitable if Tesseract is used for OCR and specific file paths are configured in the OCR settings.

CVSS Scores

version 4.0
version 3.1