Skip to content

Conversation

@renovate
Copy link

@renovate renovate bot commented Jan 16, 2025

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
virtualenv >=15.0.1,<16.0.0>=20.36.1,<20.36.2 age confidence

GitHub Vulnerability Alerts

CVE-2024-53899

virtualenv before 20.26.6 allows command injection through the activation scripts for a virtual environment. Magic template strings are not quoted correctly when replacing. NOTE: this is not the same as CVE-2024-9287.

CVE-2026-22702

Impact

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.

Affected versions: All versions up to and including 20.36.1

Affected users: Any user running virtualenv on multi-user systems where untrusted local users have filesystem access to shared temporary directories or where VIRTUALENV_OVERRIDE_APP_DATA points to a user-writable location.

Attack scenarios:

  • Cache poisoning: Attacker corrupts wheels or Python metadata in the cache
  • Information disclosure: Attacker reads sensitive cached data or metadata
  • Lock bypass: Attacker controls lock file semantics to cause concurrent access violations
  • Denial of service: Lock starvation preventing virtualenv operations

Patches

The vulnerability has been patched by replacing check-then-act patterns with atomic os.makedirs(..., exist_ok=True) operations.

Fixed in: PR #​3013

Versions with the fix: 20.36.2 and later

Users should upgrade to version 20.36.2 or later.

Workarounds

If you cannot upgrade immediately:

  1. Ensure VIRTUALENV_OVERRIDE_APP_DATA points to a directory owned by the current user with restricted permissions (mode 0700)
  2. Avoid running virtualenv in shared temporary directories where other users have write access
  3. Use separate user accounts for different projects to isolate app_data directories

References


Release Notes

pypa/virtualenv (virtualenv)

v20.36.1

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.36.0...20.36.1

v20.36.0

Compare Source

What's Changed

New Contributors

Full Changelog: pypa/virtualenv@20.35.3...20.36.0

v20.35.4

Compare Source

What's Changed

New Contributors

Full Changelog: pypa/virtualenv@20.35.3...20.35.4

v20.35.3

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.35.1...20.35.3

v20.35.2

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.35.1...20.35.2

v20.35.1

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.34.0...20.35.1

v20.35.0

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.34.0...20.35.0

v20.34.0

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.33.1...20.34.0

v20.33.1

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.33.0...20.33.1

v20.33.0

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.32.0...20.33.0

v20.32.0

Compare Source

What's Changed

New Contributors

Full Changelog: pypa/virtualenv@20.31.2...20.32.0

v20.31.2

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.31.1...20.31.2

v20.31.1

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.31.0...20.31.1

v20.31.0

Compare Source

What's Changed

New Contributors

Full Changelog: pypa/virtualenv@20.30.0...20.31.0

v20.30.0

Compare Source

What's Changed

New Contributors

Full Changelog: pypa/virtualenv@20.29.3...20.30.0

v20.29.3

Compare Source

What's Changed

New Contributors

Full Changelog: pypa/virtualenv@20.29.2...20.29.3

v20.29.2

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.29.1...20.29.2

v20.29.1

Compare Source

What's Changed

New Contributors

Full Changelog: pypa/virtualenv@20.29.0...20.29.1

v20.29.0

Compare Source

What's Changed

New Contributors

Full Changelog: pypa/virtualenv@20.28.1...20.29.0

v20.28.1

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.28.0...20.28.1

v20.28.0

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.27.2...20.28.0

v20.27.1

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.27.0...20.27.1

v20.27.0

Compare Source

What's Changed

New Contributors

Full Changelog: pypa/virtualenv@20.26.5...20.27.0

v20.26.6

Compare Source

What's Changed

New Contributors

Full Changelog: pypa/virtualenv@20.26.5...20.26.6

v20.26.5

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.26.4...20.26.5

v20.26.4

Compare Source

What's Changed

New Contributors

Full Changelog: pypa/virtualenv@20.26.3...20.26.4

v20.26.3

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.26.2...20.26.3

v20.26.2

Compare Source

What's Changed

New Contributors

Full Changelog: pypa/virtualenv@20.26.1...20.26.2

v20.26.1

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.26.0...20.26.1

v20.26.0

Compare Source

What's Changed

New Contributors

Full Changelog: pypa/virtualenv@20.25.3...20.26.0

v20.25.3

Compare Source

What's Changed

New Contributors

Full Changelog: pypa/virtualenv@20.25.2...20.25.3

v20.25.2

Compare Source

What's Changed

New Contributors

Full Changelog: pypa/virtualenv@20.25.1...20.25.2

v20.25.1

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.25.0...20.25.1

v20.25.0

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.24.6...20.25.0

v20.24.7

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.24.6...20.24.7

v20.24.6

Compare Source

What's Changed
New Contributors

Full Changelog: pypa/virtualenv@20.24.5...20.24.6

v20.24.5

Compare Source

What's Changed
New Contributors

Full Changelog: pypa/virtualenv@20.24.4...20.24.5

v20.24.4

Compare Source

What's Changed
New Contributors

Full Changelog: pypa/virtualenv@20.24.3...20.24.4

v20.24.3

Compare Source

What's Changed
New Contributors

Full Changelog: pypa/virtualenv@20.24.2...20.24.3

v20.24.2

Compare Source

What's Changed

Full Changelog: pypa/virtualenv@20.24.1...20.24.2

v20.24.1

Compare Source

What's Changed
New Contributors

Full Changelog: pypa/virtualenv@20.24.0...20.24.1

v20.24.0

Compare Source

What's Changed

Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch from 006f259 to f82acc6 Compare January 17, 2025 19:30
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch 2 times, most recently from 80a0e4b to 75fea56 Compare February 1, 2025 16:28
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch 2 times, most recently from 4a9b4f9 to bb918fb Compare February 11, 2025 04:00
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch 2 times, most recently from 2aef074 to b41025e Compare March 6, 2025 23:54
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch 3 times, most recently from 75f9bff to feec403 Compare March 18, 2025 04:21
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch from feec403 to c866107 Compare March 21, 2025 04:03
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch 2 times, most recently from 51c2854 to 13d3773 Compare April 27, 2025 23:40
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch 3 times, most recently from f3c47e9 to 5f4798b Compare May 17, 2025 00:14
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch from 5f4798b to 6b054f4 Compare May 18, 2025 00:02
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch from 6b054f4 to c389958 Compare June 22, 2025 07:50
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch from c389958 to b45e566 Compare June 30, 2025 00:05
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch 2 times, most recently from 074ab9d to 2bd38df Compare August 15, 2025 23:53
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch 2 times, most recently from a08227c to 2c04935 Compare August 24, 2025 11:52
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch 2 times, most recently from f3eadf8 to 7d2285b Compare September 27, 2025 04:14
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch 2 times, most recently from 1251576 to b2d0c8b Compare December 18, 2025 07:49
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch 2 times, most recently from 59edbbe to 22bab0c Compare January 1, 2026 16:14
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch from 22bab0c to 4423d58 Compare January 15, 2026 19:39
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch from 4423d58 to 3e11abb Compare January 24, 2026 19:46
@renovate renovate bot force-pushed the renovate/pypi-virtualenv-vulnerability branch from 3e11abb to 3c814d3 Compare January 25, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants