CVE Vulnerabilities

CVE-2011-4617

Improper Link Resolution Before File Access ('Link Following')

Published: Dec 31, 2011 | Modified: Feb 01, 2012
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
1.2 LOW
AV:L/AC:H/Au:N/C:N/I:P/A:N
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

virtualenv.py in virtualenv before 1.5 allows local users to overwrite arbitrary files via a symlink attack on a certain file in /tmp/.

Weakness

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Affected Software

Name Vendor Start Version End Version
Virtualenv Python * 1.4.9 (including)
Virtualenv Python 0.8 (including) 0.8 (including)
Virtualenv Python 0.8.1 (including) 0.8.1 (including)
Virtualenv Python 0.8.2 (including) 0.8.2 (including)
Virtualenv Python 0.8.3 (including) 0.8.3 (including)
Virtualenv Python 0.8.4 (including) 0.8.4 (including)
Virtualenv Python 0.9 (including) 0.9 (including)
Virtualenv Python 0.9.1 (including) 0.9.1 (including)
Virtualenv Python 0.9.2 (including) 0.9.2 (including)
Virtualenv Python 1.0 (including) 1.0 (including)
Virtualenv Python 1.1 (including) 1.1 (including)
Virtualenv Python 1.1.1 (including) 1.1.1 (including)
Virtualenv Python 1.2 (including) 1.2 (including)
Virtualenv Python 1.3 (including) 1.3 (including)
Virtualenv Python 1.3.1 (including) 1.3.1 (including)
Virtualenv Python 1.3.2 (including) 1.3.2 (including)
Virtualenv Python 1.3.3 (including) 1.3.3 (including)
Virtualenv Python 1.3.4 (including) 1.3.4 (including)
Virtualenv Python 1.4 (including) 1.4 (including)
Virtualenv Python 1.4.1 (including) 1.4.1 (including)
Virtualenv Python 1.4.2 (including) 1.4.2 (including)
Virtualenv Python 1.4.3 (including) 1.4.3 (including)
Virtualenv Python 1.4.4 (including) 1.4.4 (including)
Virtualenv Python 1.4.5 (including) 1.4.5 (including)
Virtualenv Python 1.4.6 (including) 1.4.6 (including)
Virtualenv Python 1.4.7 (including) 1.4.7 (including)
Virtualenv Python 1.4.8 (including) 1.4.8 (including)
Python-virtualenv Ubuntu lucid *
Python-virtualenv Ubuntu maverick *
Python-virtualenv Ubuntu natty *
Python-virtualenv Ubuntu upstream *

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References