CVE-2024-33870 Path traversal in n/a

Medium 6.3 Published Updated

Attackers can read arbitrary files via crafted PostScript documents if the current directory is permitted, affecting Ghostscript users.

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-33870?

CVE-2024-33870 is a medium-severity path traversal vulnerability in Artifex Ghostscript, published on 3 Jul 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 Artifex Ghostscript before 10.03.1. There is path traversal (via a crafted PostScript document) to arbitrary files if the current directory is in the permitted paths. For example, there can be a transformation of ../../foo to ./../../foo and this will grant access if ./ is permitted.

Weakness: CWE-22

Which versions are affected by CVE-2024-33870?

It affects 1 product.

Products include Artifex Ghostscript.

How do I fix CVE-2024-33870?

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-33870 being exploited?

There is no known exploitation of CVE-2024-33870 in the wild and no public exploit code.

All Artifex Ghostscript vulnerabilities

Sources

Also known as ALPINE-CVE-2024-33870, BELL-CVE-2024-33870, DEBIAN-CVE-2024-33870, GHSA-3xr3-vrm2-6jc7, UBUNTU-CVE-2024-33870.

Is CVE-2024-33870 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free