Path traversal in Ghostscript - CVE-2024-29511

 

Path traversal in Ghostscript - CVE-2024-29511

Published: July 5, 2024


Vulnerability identifier: #VU93816
CSH Severity: Low
CVSS v4: 2.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-29511
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to input validation error when processing directory traversal sequences when Tesseract is used for OCR. A remote attacker can view arbitrary files on the system.


Affected software

Ghostscript
Ubuntu
openEuler
ghostscript (Ubuntu package)
libgs9 (Ubuntu package)
ghostscript
ghostscript-debuginfo
ghostscript-debugsource
ghostscript-devel
ghostscript-tools-dvipdf
ghostscript-help
libgs10 (Ubuntu package)

How to mitigate CVE-2024-29511

Install update from vendor's website.

Ghostscript - update to 10.03.1
ghostscript (Ubuntu package) - addressed in versions 9.50~dfsg-5ubuntu4.13, 9.55.0~dfsg1-0ubuntu5.9, 10.02.1~dfsg1-0ubuntu7.3
libgs9 (Ubuntu package) - addressed in versions 9.50~dfsg-5ubuntu4.13, 9.55.0~dfsg1-0ubuntu5.9
ghostscript - update to 9.55.0-23
ghostscript-debuginfo - update to 9.55.0-23
ghostscript-debugsource - update to 9.55.0-23
ghostscript-devel - update to 9.55.0-23
ghostscript-tools-dvipdf - update to 9.55.0-23
ghostscript-help - update to 9.55.0-23
libgs10 (Ubuntu package) - update to 10.02.1~dfsg1-0ubuntu7.3

External References

Related Security Bulletins