CVE-2012-0860: Medium severity red hat enterprise virtualization manager vulnerability

Published Feb 15, 2012
·
Updated

Multiple untrusted search path vulnerabilities in Red Hat Enterprise Virtualization Manager (RHEV-M) before 3.1, when adding a host, allow local users to gain privileges via a Trojan horse (1) deployUtil.py or (2) vdsbootstrap.py Python module in /tmp/.

Other sources

When installing new host, RHEV-M connects to the host via ssh as root and copies vdsinstaller.py script into /tmp. vdsinstaller downloads deployUtil.py and vdsbootstrap.py via curl.

If we look into python docs [1], it clearly outlines the module search path. The first bullet says that:

"the directory containing the input script (or the current directory)."

is searched when the module to be imported is not built-in. In our case both the directory containing the input script and current directory is /tmp.

[1] http://docs.python.org/tutorial/modules.html#the-module-search-path

To exploit the flaw you just need to create any of the imported modules in /tmp and it gets run as root upon host installation.

Other exploit might be to pre-create /tmp/deployUtil.py, wait for vor vdsinstaller to download it from RHEV-M and then change the content before it's imported/executed.

Either way, copying and running python scripts from /tmp is really bad idea. Use private directory in /tmp for scripts and logs.

vdsinstaller also creates log files with semi-random names which are prone to symlink attacks.

A local, unprivileged user on the host to be installed/addedd to RHEV-M could use this flaw to escalate their privileges.

Red Hat

Affected Software

4 affected components
redhat Enterprise Virtualization Manager<=3.0
redhat Enterprise Virtualization Manager=2.1
redhat Enterprise Virtualization Manager=2.2
redhat Enterprise Virtualization Manager=2.2.3

Event History

Feb 15, 2012
Data Sourced
09:40 AM
DescriptionSeverityAffected Software
Jan 4, 2013
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
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-2012-0860?

CVE-2012-0860 has a high severity rating due to its potential to allow local users to gain elevated privileges.

2

How do I fix CVE-2012-0860?

To fix CVE-2012-0860, upgrade Red Hat Enterprise Virtualization Manager to version 3.1 or later.

3

What versions of Red Hat Enterprise Virtualization Manager are affected by CVE-2012-0860?

Versions before 3.1, as well as versions 2.1, 2.2, and 2.2.3 of Red Hat Enterprise Virtualization Manager, are affected by CVE-2012-0860.

4

What type of vulnerability is CVE-2012-0860?

CVE-2012-0860 is characterized as an untrusted search path vulnerability in the Red Hat Enterprise Virtualization Manager.

5

Can CVE-2012-0860 be exploited remotely?

No, CVE-2012-0860 requires local access to the system for exploitation.

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