{"schema_version":"1.6.0","id":"XYZ-2026-00350","modified":"2026-11-25T21:48:52Z","published":"2026-11-21T02:50:35Z","summary":"virtualenv: a copied CPython library could load standard-library code from outside the environment","affected":[{"package":{"ecosystem":"PyPI","name":"virtualenv"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"21.15.11"}]}]}],"references":[{"type":"WEB","url":"https://packages.cyberxyz.io/xyz/XYZ-2026-00350"},{"type":"FIX","url":"https://github.com/pypa/virtualenv/commit/21375cf4487baf0448c35b32c289f6a19be549a4"},{"type":"FIX","url":"https://github.com/pypa/virtualenv/commit/82bb8a4786f29a79cf3ffc03ef5e8f5919b1a51c"},{"type":"FIX","url":"https://github.com/pypa/virtualenv/commit/cd1a99039df8f6ebd71db627be9afa503b7b9e71"}],"credits":[{"name":"CyberXYZ Security Threat Intel Team","contact":["https://cyberxyz.io"],"type":"ANALYST"}],"database_specific":{"cyberxyz":{"status":"confirmed","status_label":"Advisory published","public_state":"full","exploitability_tier":"limited","exploitability_tier_label":"Limited","first_detected_at":"2026-11-20T10:32:15.04707+00:00","fixed_versions":["21.15.11"],"upgrade_guidance":"A security fix was released in virtualenv 21.15.11. Upgrade to 21.15.11 or later.","dispute":{"url":"/api/v1/disputes","subject_type":"advisory","subject_id":"XYZ-2026-00350","ecosystem":"pypi","note":"Think this record is wrong? Tell us; we respond within 2 business days."},"url":"https://packages.cyberxyz.io/xyz/XYZ-2026-00350","writeup":{"what":"On POSIX shared-library builds of CPython 3.11 and later, an environment created in copy mode could end up with an interpreter that searches for a standard-library zip next to the copied library, outside the environment. virtualenv 21.15.10 added a check for this to its builtin creator, but the stdlib `venv` creator skipped it.","impact":"If another account on the machine can change that search location, its code runs with the permissions of whoever uses the environment.","affected":"virtualenv 21.15.6, 21.15.9 and 21.15.10, for environments created in copy mode on a shared machine where another user can write to the directories above the destination.","action":"Upgrade to virtualenv 21.15.11 and recreate affected environments. Use `--symlinks`, or a destination whose parent directories only you or an administrator can change. Where another user could change a search directory later, virtualenv now warns and continues, so read the warning.","title":"virtualenv: a copied CPython library could load standard-library code from outside the environment","credit":"Published and fixed by the virtualenv maintainers. Advisory: GHSA-fj4g-j5mv-5xhv."},"exploitability_score":41,"severity":"medium","cwe":"CWE-427","fix_commits":["21375cf4487baf0448c35b32c289f6a19be549a4","82bb8a4786f29a79cf3ffc03ef5e8f5919b1a51c","cd1a99039df8f6ebd71db627be9afa503b7b9e71"],"feed_leads":[{"source":"ghsa","id":"GHSA-fj4g-j5mv-5xhv","published":"2026-11-21T00:00:00+00:00","lead_seconds":48464}]},"cwe_ids":["CWE-427"]},"details":"## What was wrong\n\nOn POSIX shared-library builds of CPython 3.11 and later, an environment created in copy mode could end up with an interpreter that searches for a standard-library zip next to the copied library, outside the environment. virtualenv 21.15.10 added a check for this to its builtin creator, but the stdlib `venv` creator skipped it.\n\n## Impact\n\nIf another account on the machine can change that search location, its code runs with the permissions of whoever uses the environment.\n\n## Who is affected\n\nvirtualenv 21.15.6, 21.15.9 and 21.15.10, for environments created in copy mode on a shared machine where another user can write to the directories above the destination.\n\n## What to do\n\nUpgrade to virtualenv 21.15.11 and recreate affected environments. Use `--symlinks`, or a destination whose parent directories only you or an administrator can change. Where another user could change a search directory later, virtualenv now warns and continues, so read the warning.\n\nPublished and fixed by the virtualenv maintainers. Advisory: GHSA-fj4g-j5mv-5xhv.","aliases":["GHSA-fj4g-j5mv-5xhv"]}