CVE-2009-0318: Medium severity Gnome Gnumeric vulnerability
Untrusted search path vulnerability in the GObject Python interpreter wrapper in Gnumeric allows local users to execute arbitrary code via a Trojan horse Python file in the current working directory, related to a vulnerability in the PySysSetArgv function (CVE-2008-5983).
Other sources
Untrusted search path vulnerability in the GObject wrapper around Python interpreter 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 PySysSetArgv function.
References (more details, test case): http://www.nabble.com/Bug-484305%3A-bicyclerepair%3A-bike.vim-imports-untrusted-python-files-from-cwd-td18848099.html
Relevant part of the code in gnumeric-N.V.R/plugins/python-loader/gnm-py-interpreter.c:
103 PySysSetArgv (GNELEMENTS (pluginargv) - 1, pluginargv); 104 pyinitgnumeric (interpreter);
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.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch pythonpath.diff - Configuration
Modify the PySys_SetArgv call in gnm-py-interpreter.c so that it sets sys.path and does not include the current working directory (prevent importing untrusted Python files from cwd).
gnumeric-N.V.R/plugins/python-loader/gnm-py-interpreter.c sys.path (via PySys_SetArgv) = exclude current working directory
Event History
Frequently Asked Questions
What is the severity of CVE-2009-0318?
CVE-2009-0318 is classified as a medium severity vulnerability due to its ability to allow local users to execute arbitrary code.
How do I fix CVE-2009-0318?
To fix CVE-2009-0318, ensure that you update Gnumeric to the latest version that addresses this vulnerability.
Who is affected by CVE-2009-0318?
CVE-2009-0318 affects local users of the Gnumeric application in environments where untrusted Python files are present.
What type of vulnerability is CVE-2009-0318?
CVE-2009-0318 is an untrusted search path vulnerability that can lead to the execution of arbitrary code.
When was CVE-2009-0318 published?
CVE-2009-0318 was published on February 9, 2009.