CVE-2024-33869: Path Traversal

Published Jun 24, 2024
·
Updated

An issue was discovered in Artifex Ghostscript before 10.03.1. Path traversal and command execution can occur (via a crafted PostScript document) because of path reduction in base/gpmisc.c. For example, restrictions on use of %pipe% can be bypassed via the aa/../%pipe%command# output filename.

Other sources

The function "gpvalidatepathlen" first tests if the path has a cwd prefix and then reduces the path.

In the case of a path like "./../tmp/aa" it will first see that it has a cwd prefix and then reduce it to "../tmp/aa". When validation fails, it tries the variant without the cwd prefix by skipping the first two characters. But this will skip the ".." and validate "/tmp/aa", which is an allowed path (on Linux).

References: https://ghostscript.readthedocs.io/en/gs10.03.1/News.html https://bugs.ghostscript.com/showbug.cgi?id=707691

Upstream commits: https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=5ae2e320d69a7d0973011796bd388cd5befa1a43 https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=f5336e5b4154f515ac83bc5b9eba94302e6618d4

Red Hat

Affected Software

3 affected componentsFixes available
debian/ghostscript
9.53.3~dfsg-7+deb11u710.0.0~dfsg-11+deb12u410.0.0~dfsg-11+deb12u510.03.1~dfsg-2
redhat/ghostscript<10.03.1
10.03.1
Artifex GhostScript<10.03.1

Event History

Jul 3, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·07:15 PM
Description
Data Sourced
via NVD·07:15 PM
SeverityWeakness
Sep 15, 2024
Data Sourced
via Ubuntu·12:23 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-33869?

CVE-2024-33869 is considered a high severity vulnerability due to its potential for path traversal and command execution.

2

How do I fix CVE-2024-33869?

To fix CVE-2024-33869, upgrade to Ghostscript version 10.03.1 or later.

3

What types of environments are affected by CVE-2024-33869?

CVE-2024-33869 affects environments running versions of Ghostscript prior to 10.03.1.

4

Can CVE-2024-33869 be exploited through crafted files?

Yes, CVE-2024-33869 can be exploited through crafted PostScript documents that manipulate file paths.

5

What is the main issue related to CVE-2024-33869?

The main issue of CVE-2024-33869 is path traversal that allows command execution via a crafted input.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203