Intel

AIKIDO-2026-10495

virtualenv is vulnerable to Path Traversal

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Apr 16, 2026
April 16, 2026

65

CVE Score

Medium

Path Traversal

Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to path traversal due to improper validation of paths within zipapp archives. The affected logic determines whether a resolved path stays within the archive using string-based prefix checks after os.path.realpath, which is unreliable across platforms and can be bypassed in edge cases involving path separators or symlinks. An attacker able to supply crafted paths can cause resolution outside the intended archive boundary, potentially accessing unintended files on the filesystem.

How do I fix this?

Upgrade the virtualenv library to a patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

20.0.0 - 21.2.3

Fixed in 21.2.4

Background info

virtualenv is vulnerable to Path Traversal in versions 20.0.0 - 21.2.3.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea