Gentoo Logo

virtualenv: Insecure temporary file usage


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 201206-17 / virtualenv
Release Date June 22, 2012
Latest Revision June 22, 2012: 1
Impact normal
Exploitable local
Package Vulnerable versions Unaffected versions Architecture(s)
dev-python/virtualenv < 1.5.1 >= 1.5.1 All supported architectures

Related bugreports: #395285


An insecure temporary file usage has been reported in virtualenv, possibly allowing symlink attacks.

2.  Impact Information


virtualenv is a virtual Python environment builder.


The script in virtualenv does not handle temporary files securely.


A local attacker could perform symlink attacks to overwrite arbitrary files with the privileges of the user running the application.

3.  Resolution Information


There is no known workaround at this time.


All virtualenv users should upgrade to the latest version:

Code Listing 3.1: Resolution

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=dev-python/virtualenv-1.5.1"

4.  References


Page updated June 22, 2012

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.