CVE-2008-5984: Medium severity Dia Dia vulnerability
Untrusted search path vulnerability in dia's Python plug-in 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 PySysSetArgv function.
References: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504251
Test case and more discussion about this issue (and reason's why it can't be fixed in Python is 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=pythonpath.diff;att=1;bug=504251
Other sources
Untrusted search path vulnerability in the Python plugin in Dia 0.96.1, 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 PySysSetArgv function (CVE-2008-5983).
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Diato a version that resolves this vulnerability.Patch pythonpath.diff - Compensating control
Avoid launching Dia from directories that may contain untrusted Python files. Ensure the current working directory contains no untrusted .py files (remove or quarantine any such files) or run Dia from a trusted/clean directory to prevent execution of Trojan horse Python files in the CWD.
Event History
Frequently Asked Questions
What is the severity of CVE-2008-5984?
CVE-2008-5984 has a medium severity rating due to its ability to allow local users to execute arbitrary code.
How do I fix CVE-2008-5984?
To fix CVE-2008-5984, update to a patched version of Dia that resolves the untrusted search path issue.
Who is affected by CVE-2008-5984?
Users of Dia version 0.96.1 and possibly other versions are affected by CVE-2008-5984.
What type of vulnerability is CVE-2008-5984?
CVE-2008-5984 is classified as an untrusted search path vulnerability.
What impact does CVE-2008-5984 have on systems?
CVE-2008-5984 allows local users to execute arbitrary code which can compromise system integrity.