CVE-2008-5983 Path traversal in n/a

Medium 6.9 Published Updated

Local attackers can execute arbitrary code by placing a malicious Python file in the current working directory when running scripts without path separators.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2008-5983?

CVE-2008-5983 is a medium-severity path traversal vulnerability in Canonical Ubuntu Linux, published on 28 Jan 2009. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Untrusted search path vulnerability in the PySys_SetArgv API function in Python 2.6 and earlier, and possibly later versions, prepends an empty string to sys.path when the argv[0] argument does not contain a path separator, which might allow local users to execute arbitrary code via a Trojan horse Python file in the current working directory.

Weakness: CWE-426

Which versions are affected by CVE-2008-5983?

It affects 3 products.

Products include Canonical Ubuntu Linux, Fedoraproject Fedora, Python Python.

How do I fix CVE-2008-5983?

Apply the vendor's patch.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2008-5983 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as AZL-109584, GHSA-4jhg-wfq8-3vgm.

Is CVE-2008-5983 in your software?

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

Check your SBOMs for free