#1125191 python-virtualenv: CVE-2026-22702

Package:
src:python-virtualenv
Source:
src:python-virtualenv
Submitter:
Salvatore Bonaccorso
Date:
2026-06-28 15:29:02 UTC
Severity:
normal
Tags:
#1125191#5
Date:
2026-01-10 13:14:10 UTC
From:
To:
Hi,

The following vulnerability was published for python-virtualenv.

CVE-2026-22702[0]:
| virtualenv is a tool for creating isolated virtual python
| environments. Prior to version 20.36.1, TOCTOU (Time-of-Check-Time-
| of-Use) vulnerabilities in virtualenv allow local attackers to
| perform symlink-based attacks on directory creation operations. An
| attacker with local access can exploit a race condition between
| directory existence checks and creation to redirect virtualenv's
| app_data and lock file operations to attacker-controlled locations.
| This issue has been patched in version 20.36.1.


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-22702
https://www.cve.org/CVERecord?id=CVE-2026-22702
[1] https://github.com/pypa/virtualenv/pull/3013
[2] https://github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986
[3] https://github.com/pypa/virtualenv/commit/dec4cec5d16edaf83a00a658f32d1e032661cebc

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore

#1125191#10
Date:
2026-01-11 11:18:29 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-virtualenv, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1125191@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefano Rivera <stefanor@debian.org> (supplier of updated python-virtualenv package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 10 Jan 2026 21:08:14 -0400
Source: python-virtualenv
Architecture: source
Version: 20.36.1+ds-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Stefano Rivera <stefanor@debian.org>
Closes: 1125191
Changes:
 python-virtualenv (20.36.1+ds-1) unstable; urgency=medium
 .
   * New upstream release.
    - Fixes CVE-2026-22702: TOCTOU symlink-based attacks on directory creation.
      (Closes: #1125191)
   * Bump Standards-Version to 4.7.3, dropping the Priority field.
Checksums-Sha1:
 370a953b64d72379c085c88c81aeea479993d380 1992 python-virtualenv_20.36.1+ds-1.dsc
 38e720988f79f73954c107a0aae7c04894d0ed1e 113340 python-virtualenv_20.36.1+ds.orig.tar.xz
 eff7a74e86f290b19ee0e5aa9333bcd07bf07047 15704 python-virtualenv_20.36.1+ds-1.debian.tar.xz
 d9d8f807ae8014c2ea47b7b02502ebc031c434dd 5585 python-virtualenv_20.36.1+ds-1_source.buildinfo
Checksums-Sha256:
 ba33ba973bebf90d9ad21723f518f527516dc7ddd9f86594484e46fbbef2fab7 1992 python-virtualenv_20.36.1+ds-1.dsc
 7c7354598912d86ba16029a69a9ea89f024f4f13a6a3097ce3c1d35bcaee6682 113340 python-virtualenv_20.36.1+ds.orig.tar.xz
 ed520cf8a45c33b2cbf07a399535cfc8e0cd3a50351a68f4e03ee32dffe60ab7 15704 python-virtualenv_20.36.1+ds-1.debian.tar.xz
 f421ac4ceb5c86f6022ba41ed20869725806b44eb40d4376c86aa1df732005c7 5585 python-virtualenv_20.36.1+ds-1_source.buildinfo
Files:
 55c315649cd929fa6483c6c6c462329d 1992 python optional python-virtualenv_20.36.1+ds-1.dsc
 03809ff417fb299dc895dbace9664c3b 113340 python optional python-virtualenv_20.36.1+ds.orig.tar.xz
 7fd8fe229316356c3090be580f72d23d 15704 python optional python-virtualenv_20.36.1+ds-1.debian.tar.xz
 6ef6aa5395a8a7093a638798d2fea09f 5585 python optional python-virtualenv_20.36.1+ds-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCaWOEbRQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2FqiAPoC5Q1DaQGtoPHXNmBUg9YKgGYIZRcS
AyMp4STzqsEPkwEAppOLO/YlzmKIDczvvxn2KKc7hel6oFka+sVNKTASFAk=
=B97g
-----END PGP SIGNATURE-----