Bug 481550 (CVE-2008-5986) - CVE-2008-5986 csound: untrusted python modules search path
Summary: CVE-2008-5986 csound: untrusted python modules search path
Status: CLOSED ERRATA
Alias: CVE-2008-5986
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard: reported=20081103,public=20081102,sou...
Keywords: Security
Depends On: CVE-2008-5983
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-01-26 09:47 UTC by Jan Lieskovsky
Modified: 2017-09-18 09:00 UTC (History)
2 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2015-08-22 15:55:08 UTC


Attachments (Terms of Use)

Description Jan Lieskovsky 2009-01-26 09:47:49 UTC
Untrusted search path vulnerability in Csound's "VST plugin with Python
scripting" and in "VST plugin for writing score generators in Python"
alows 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:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504359

Test case and more discussion about this issue available at:
http://www.nabble.com/Bug-484305%3A-bicyclerepair%3A-bike.vim-imports-untrusted-python-files-from-cwd-td18848099.html

Proposed patch:
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=1004-sanitize-sys.path.diff;att=1;bug=504359

Comment 1 Jan Lieskovsky 2009-01-26 09:48:29 UTC
This issue affects all versions of the Csound package, as shipped with
Fedora releases of 9, 10 and devel.

Please fix.

Comment 2 Jan Lieskovsky 2009-01-28 11:17:28 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2008-5986 to
this vulnerability:

Untrusted search path vulnerability in the (1) "VST plugin with Python
scripting" and (2) "VST plugin for writing score generators in Python"
in Csound 5.08.2, and possibly other versions, 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://www.openwall.com/lists/oss-security/2009/01/26/2
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504359

Comment 3 Jan Lieskovsky 2009-01-29 11:25:37 UTC
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.

Comment 4 Jan Lieskovsky 2009-01-29 11:27:34 UTC
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


Note You need to log in before you can comment on or make changes to this bug.