vendor:
Python
by:
rogueclown
7,5
CVSS
HIGH
Code Execution
94
CWE
Product Name: Python
Affected Version From: Python 2.7.2
Affected Version To: Python 3.2.1
Patch Exists: YES
Related CWE: N/A
CPE: a:python:python
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Linux
2012
Python untrusted search path/code execution vulnerability
This vulnerability allows an attacker to execute arbitrary code on the target system by placing a malicious python script in the current working directory. In Python 2, the malicious script is executed when help('modules') is run. In Python 3, the malicious script is executed when help('modules') is run and the __pycache__ directory is removed from the working directory.
Mitigation:
Ensure that the current working directory is not writable by untrusted users.