CVE-2008-5983 in Canonical Ubuntu Linux and 2 more products
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...
Affects 3 products from 3 vendors. Facts below cite their sources.
Requires local access.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Canonical | Ubuntu Linux | 8.04 10.04 11.04 11.10 |
| Fedoraproject | Fedora | 13 |
| Python | Python | < 2.6.6 ≥ 3.1.0, < 3.1.3 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2008-5983 |
|---|---|
| BreachSpider ID | BS-2009-GLOBAL-017010-M |
| CVSS vector | AV:L/AC:M/Au:N/C:C/I:C/A:C |
| Published | 2009-01-28 |
| Last modified | 2026-06-16 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-426: CWE-426
Related attack patterns (CAPEC)
CAPEC-38 Leveraging/Manipulating Configuration File Search Paths via CWE-426
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
This vulnerability was disclosed in 2009. A medium severity vulnerability affects Canonical systems (CVE-2008-5983). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
Vulnerability details: 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. CVSS vector: AV:L/AC:M/Au:N/C:C/I:C/A:C.
Questions
What is CVE-2008-5983?
This vulnerability was disclosed in 2009. A medium severity vulnerability affects Canonical systems (CVE-2008-5983). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
What is the CVSS score for CVE-2008-5983?
CVE-2008-5983 has CVSS 6.9 (Medium). Vector: AV:L/AC:M/Au:N/C:C/I:C/A:C. EPSS: 0.5%.
Is CVE-2008-5983 actively exploited?
No confirmed active exploitation of CVE-2008-5983 as of 2026-09-25.
How do I remediate CVE-2008-5983?
Priority: MONITOR.
What systems are affected by CVE-2008-5983?
CVE-2008-5983 affects Canonical Ubuntu Linux; Fedoraproject Fedora; Python Python.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.