CVE-2010-4000: Medium severity Gnome gnome-shell vulnerability

Published Oct 19, 2010
·
Updated

gnome-shell in GNOME Shell 2.31.5 places a zero-length directory name in the LDLIBRARYPATH, which allows local users to gain privileges via a Trojan horse shared library in the current working directory.

Other sources

Ludwig Nussel discovered that gnome-shell contained a script that could be abused by an attacker to execute arbitrary code.

The vulnerability is due to an insecure change to LDLIBRARYPATH, and environment variable used by ld.so(8) to look for libraries in directories other than the standard paths. When there is an empty item in the colon-separated list of directories in LDLIBRARYPATH, ld.so(8) treats it as a '.' (current working directory). If the given script is executed from a directory where a local attacker could write files, there is a chance for exploitation.

In Fedora, /usr/bin/gnome-shell re-sets LDLIBRARYPATH insecurely:

163 if os.path.exists(mozjslibdir + '/libmozjs.so'): 164 env['LDLIBRARYPATH'] = os.environ.get('LDLIBRARYPATH', '') + ':' + mozjslibdir ... 206 return subprocess.Popen(args, env=env)

A solution is to patch the script to test if LDLIBRARYPATH is previously set:

if os.environ.get('LDLIBRARYPATH'): env['LDLIBRARYPATH'] = os.environ.get('LDLIBRARYPATH', '') + ':' + mozjslibdir else: env['LDLIBRARYPATH'] = mozjslibdir

Red Hat

Affected Software

1 affected component
Gnome gnome-shell=2.31.5

Event History

Oct 19, 2010
Data Sourced
via Red Hat·07:36 PM
DescriptionSeverityAffected Software
Nov 5, 2010
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2010-4000?

CVE-2010-4000 has a medium severity, allowing local users to potentially gain elevated privileges.

2

How can I fix CVE-2010-4000?

To fix CVE-2010-4000, upgrade to a version of GNOME Shell that does not include this vulnerability.

3

Who discovered the issue described in CVE-2010-4000?

The issue in CVE-2010-4000 was discovered by Ludwig Nussel.

4

What software is affected by CVE-2010-4000?

CVE-2010-4000 specifically affects GNOME Shell version 2.31.5.

5

What type of attack does CVE-2010-4000 enable?

CVE-2010-4000 enables local users to execute a Trojan horse shared library in the current working directory.

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