CVE-2008-5985: Medium severity Gnome Epiphany vulnerability

Published Jan 26, 2009
·
Updated

Untrusted search path vulnerability in Epiphany's Python interface 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: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504363

Test case available in: 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=sanitizesys.path.diff;att=1;bug=504363

Patch notes: The path for affected file in Fedora is BUILD/epiphany-N.V.R/src/ephy-python.c, the proposed patch won't apply cleanly, but the change of:

++ / Sanitize sys.path to prevent relative imports loading modules in ++ the current working directory ++ / ++ PyRunSimpleString("import sys; sys.path = filter(None, sys.path)")

in ephy-python.c should be enough to fix this issue.

Other sources

Untrusted search path vulnerability in the Python interface in Epiphany 2.22.3, 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).

Affected Software

1 affected component
Gnome Epiphany=2.22.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In BUILD/epiphany-N.V.R/src/ephy-python.c, add a call to PyRun_SimpleString("import sys; sys.path = filter(None, sys.path)") to sanitize sys.path (remove empty entries) so the current working directory is not searched for imports.

    GNOME Epiphany (ephy-python.c) sys.path = filter(None, sys.path)

Event History

Jan 26, 2009
Data Sourced
via Red Hat·09:23 AM
DescriptionSeverityAffected Software
Jan 28, 2009
CVE Published
via MITRE·11:00 AM
Data Sourced
via MITRE·11:00 AM
Description
Data Sourced
via NVD·11:30 AM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2008-5985?

CVE-2008-5985 is classified as a high severity vulnerability due to its potential to allow arbitrary code execution by local users.

2

How do I fix CVE-2008-5985?

To mitigate CVE-2008-5985, ensure that the Epiphany browser is updated to the latest version where the issue is resolved.

3

Who is affected by CVE-2008-5985?

Users running Epiphany version 2.22.3 are affected by CVE-2008-5985.

4

What type of vulnerability is CVE-2008-5985?

CVE-2008-5985 is an untrusted search path vulnerability related to the Python interface in Epiphany.

5

Can CVE-2008-5985 be exploited remotely?

No, CVE-2008-5985 requires local user access to exploit the vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203