CVE-2008-5983: Untrusted search path vulnerability in the PySys_SetArgv API function in Python 2.6 and earlier, and possibly later versions, prepends an…
Noroxi assessment
Priority: Monitor (action score 27/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.49% (FIRST EPSS).
- Fixed version: python-libs (Red Hat:enterprise_linux:5::client) 0:2.4.3-43.el5; python-tools (Red Hat:enterprise_linux:5::client) 0:2.4.3-43.el5; tkinter (Red Hat:enterprise_linux:5::client) 0:2.4.3-43.el5.
Low priority for now. Upgrade to python-libs (Red Hat:enterprise_linux:5::client) 0:2.4.3-43.el5; python-tools (Red Hat:enterprise_linux:5::client) 0:2.4.3-43.el5; tkinter (Red Hat:enterprise_linux:5::client) 0:2.4.3-43.el5 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Jan 27, 2009
- Updated
- Jun 16, 2026
- EPSS
- 0.4% · 42th percentile
- CWE
- CWE-426
Report tools
Action score
27
Low priority for now.
- CVSS
- 27 / 40 · 6.9 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.4%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| python | python | cpe:2.3:a:python:python |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- canonical ubuntu linux10.04
- canonical ubuntu linux11.04
- canonical ubuntu linux11.10
- canonical ubuntu linux8.04
- fedoraproject fedora13
- python pythonbefore 2.6.6
- python python3.1.0 and later · before 3.1.3
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Red Hat:enterprise_linux:5::client | python-libs | before 0:2.4.3-43.el5 | 0:2.4.3-43.el5 |
| Red Hat:enterprise_linux:5::client | python-tools | before 0:2.4.3-43.el5 | 0:2.4.3-43.el5 |
| Red Hat:enterprise_linux:5::client | tkinter | before 0:2.4.3-43.el5 | 0:2.4.3-43.el5 |
| Red Hat:enterprise_linux:5::client_workstation | python | before 0:2.4.3-43.el5 | 0:2.4.3-43.el5 |
| Red Hat:enterprise_linux:5::client_workstation | python-debuginfo | before 0:2.4.3-43.el5 | 0:2.4.3-43.el5 |
| Red Hat:enterprise_linux:5::client_workstation | python-devel | before 0:2.4.3-43.el5 | 0:2.4.3-43.el5 |
Same product
python: all recordsOther highest-scoring records for the same primary product.
- CVE-2016-5636Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2…47Plan
- CVE-2007-4559Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted…47Plan
- CVE-2021-3177Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain…46Plan
Published before and after this one in the same product
- ← EarlierCVE-2008-4864Oct 31, 2008 · Multiple integer overflows in imageop.c in the imageop module in Python 1.5.2 through 2.5.1 allow context-dependent attackers to break out…36Monitor
- ← EarlierCVE-2008-5031Nov 10, 2008 · Multiple integer overflows in Python 2.2.3 through 2.5.1, and 2.6, allow context-dependent attackers to have an unknown impact via a large…41Plan
- Later →CVE-2009-3720Nov 3, 2009 · The updatePosition function in lib/xmltok_impl.c in libexpat in Expat 2.0.1, as used in Python, PyXML, w3c-libwww, and other software…28Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| red hat:python | 0:2.4.3-43.el5 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:python-debuginfo | 0:2.4.3-43.el5 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:python-devel | 0:2.4.3-43.el5 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:python-libs | 0:2.4.3-43.el5 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:python-tools | 0:2.4.3-43.el5 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:tkinter | 0:2.4.3-43.el5 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
If successful
- Confidentiality
- C · data can be read
- Integrity
- C · data or configuration can be modified
- Availability
- C · the service can be disrupted
- Attack complexity
- M
- Confidentiality impact
- C
- Integrity impact
- C
- Availability impact
- C
Weakness class (CWE)
CWE-426 · Untrusted Search PathCVSS vector
AV:L/AC:M/Au:N/C:C/I:C/A:C
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (19 more)Show less
- secunia.com/advisories/34522
- secunia.com/advisories/40194
- secunia.com/advisories/42888
- secunia.com/advisories/50858
- secunia.com/advisories/51024
- secunia.com/advisories/51040
- secunia.com/advisories/51087
- security.gentoo.org/glsa/glsa-200903-41.xml
- security.gentoo.org/glsa/glsa-200904-06.xml
- www.mail-archive.com/debian-bugs-dist%40lists.debian.org/msg586010.html
- www.nabble.com/Bug-484305%3A-bicyclerepair%3A-bike.vim-imports-untrusted-python-files-from-cwd-td18848099.html
- www.openwall.com/lists/oss-security/2009/01/26/2
- www.openwall.com/lists/oss-security/2009/01/28/5
- www.openwall.com/lists/oss-security/2009/01/30/2
- www.redhat.com/support/errata/RHSA-2011-0027.html
- www.ubuntu.com/usn/USN-1596-1
- www.ubuntu.com/usn/USN-1613-1
- www.ubuntu.com/usn/USN-1613-2
- www.ubuntu.com/usn/USN-1616-1
Vendor advisories and official records. Exploit/PoC links are deliberately left out.