CVE & CISA-KEV Catalog

CVE-2008-5983

MEDIUM
6.9
CVSS v2
NVD

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.

How to fix

Remediation Available
Python 2Windows application
Affected:2.6.6Fixed in:2.6.6Python Software Foundation
Affected:3.1.0 3.1.3Fixed in:3.1.3Python Software Foundation
Python 3.10Windows application
Affected:3.1.0 3.1.3Fixed in:3.1.3Python Software Foundation
Affected:2.6.6Fixed in:2.6.6Python Software Foundation
Python 3.11Windows application
Affected:2.6.6Fixed in:2.6.6Python Software Foundation
Affected:3.1.0 3.1.3Fixed in:3.1.3Python Software Foundation
Python 3.12Windows application
Affected:2.6.6Fixed in:2.6.6Python Software Foundation
Affected:3.1.0 3.1.3Fixed in:3.1.3Python Software Foundation
Python 3.8Windows application
Affected:3.1.0 3.1.3Fixed in:3.1.3Python Software Foundation
Affected:2.6.6Fixed in:2.6.6Python Software Foundation
Python 3.9Windows application
Affected:2.6.6Fixed in:2.6.6Python Software Foundation
Affected:3.1.0 3.1.3Fixed in:3.1.3Python Software Foundation

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v2 Vector

No CVSS vector data available.

Exploit Intelligence

0.51%probability of exploitation in 30 days
40thpercentile

Low risk: more likely to be exploited than 40% of all known CVEs.

References

Related Vulnerabilities

Other CWE-426 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2015-0096High9.371%--
CVE-2016-10009High7.337%-Fix
CVE-2016-0016High7.831%--
CVE-2012-1854High7.821%KEV-
CVE-2018-12589High7.820%--
CVE-2022-22047High7.819%KEVFix
Embed a live status badge for CVE-2008-5983
CVE-2008-5983 severity badge

Markdown

[![CVE-2008-5983](https://tridentstack.com/cve/badge/CVE-2008-5983.svg)](https://tridentstack.com/cve/CVE-2008-5983)

HTML

<a href="https://tridentstack.com/cve/CVE-2008-5983"><img src="https://tridentstack.com/cve/badge/CVE-2008-5983.svg" alt="CVE-2008-5983"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-04-23.