Skip to main content
CVE-2026-22702VulnerabilityPublished Updated

Python virtualenv: Prior to version 20.36.1, TOCTOU (Time-of-Check-Time-of-Use) vulnerabilities in virtualenv allow

Affects python-virtualenvSource GCVE Database

0
Compare
Authoritative record:CVE-2026-22702· Medium 4.5

Not known to be exploited · CVSS 4.5 Medium · fixed in 20.36.1 : update python-virtualenv when convenient.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
4.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 0% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 20.36.1
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Jan 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.04 LTSpython-virtualenvpkg:deb/ubuntu/python-virtualenv?arch=source&distro=resoluteOther threatsAffected
  • 20.31.2+ds-1 – 20.36.1+ds-1
4 affected builds
Fixed in–
Ubuntu 25.10python-virtualenvpkg:deb/ubuntu/python-virtualenv?arch=source&distro=questingOther threatsAffected
  • =20.29.1+ds-1
  • =20.31.2+ds-1
Fixed in–
Ubuntu Pro 24.04 LTSpython-virtualenvpkg:deb/ubuntu/python-virtualenv?arch=source&distro=esm-apps/nobleOther threatsAffected
  • 20.24.1+ds-1 – 20.25.0+ds-2ubuntu0.1~esm1
6 affected builds
Fixed in–
Ubuntu Pro 22.04 LTSpython-virtualenvpkg:deb/ubuntu/python-virtualenv?arch=source&distro=esm-apps/jammyOther threatsAffected
  • 20.4.6+ds-2 – 20.13.0+ds-2ubuntu0.1~esm1
6 affected builds
Fixed in–
Ubuntu Pro 20.04 LTSpython-virtualenvpkg:deb/ubuntu/python-virtualenv?arch=source&distro=esm-apps/focalOther threatsAffected
  • 15.1.0+ds-2 – 20.0.17-1ubuntu0.4+esm1
8 affected builds
Fixed in–
Ubuntu 18.04 LTSpython-virtualenvpkg:deb/ubuntu/python-virtualenv?arch=source&distro=bionicOther threatsAffected
  • =15.1.0+ds-1
  • =15.1.0+ds-1.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

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.

References

Community reviews

Loading reviews…