Directory Traversal Affecting python-virtualenv package, versions <0:15.1.0-7.el7_9


Severity

Recommended
medium

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
3% (87th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL7-PYTHONVIRTUALENV-7981176
  • published14 Sept 2024
  • disclosed16 Apr 2019

Introduced: 16 Apr 2019

CVE-2019-20916  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade RHEL:7 python-virtualenv to version 0:15.1.0-7.el7_9 or higher.
This issue was patched in RHSA-2022:5234.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-virtualenv package and not the python-virtualenv package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

The pip package before 19.2 for Python allows Directory Traversal when a URL is given in an install command, because a Content-Disposition header can have ../ in a filename, as demonstrated by overwriting the /root/.ssh/authorized_keys file. This occurs in _download_http_url in _internal/download.py.

CVSS Base Scores

version 3.1