Untrusted search path vulnerability in the Python language bindings for Nautilus allows local users to execute arbitrary code via a Trojan horse Python file in the current working directory, related to an erroneous setting of sys.path by the PySys_SetArgv function. References (more details, PoC): http://www.nabble.com/Bug-484305%3A-bicyclerepair%3A-bike.vim-imports-untrusted-python-files-from-cwd-td18848099.html Proposed patch: The Debian patch for similar dia's Python related issue, available at: http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=pythonpath.diff;att=1;bug=504251 should be sufficient to resolve this issue.
This issue affects all versions of the nautilus-python package, as shipped with Fedora releases of 9, 10 and devel. Please fix.
Common Vulnerabilities and Exposures assigned an identifier CVE-2009-0317 to this vulnerability: Untrusted search path vulnerability in the Python language bindings for Nautilus (nautilus-python) allows local users to execute arbitrary code via a Trojan horse Python file in the current working directory, related to a vulnerability in the PySys_SetArgv function (CVE-2008-5983). References: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0317 http://www.openwall.com/lists/oss-security/2009/01/26/2 https://bugzilla.redhat.com/show_bug.cgi?id=481570
More explanation why this issue wasn't fixed in Python yet, can be found here: https://bugzilla.redhat.com/show_bug.cgi?id=482814#c1 here: https://bugzilla.redhat.com/show_bug.cgi?id=482814#c4 and here: https://bugzilla.redhat.com/show_bug.cgi?id=482814#c5 Looks like the Python fix won't come anytime soon, so please fix the issue in the package, till we find the proper Python solution. Ray Strode's test case to check the work of the fix can be found here: https://bugzilla.redhat.com/show_bug.cgi?id=481556#c8