Gentoo Logo

virtualenv: Insecure temporary file usage

Content:

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

Synopsis

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

2.  Impact Information

Background

virtualenv is a virtual Python environment builder.

Description

The virtualenv.py script in virtualenv does not handle temporary files securely.

Impact

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

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

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



Print

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-2014 Gentoo Foundation, Inc. Questions, Comments? Contact us.