{"id":"CVE-2026-113724","published":"2026-10-20T19:53:29Z","modified":"2026-10-27T11:02:51Z","title":"virtualenv: Deletion recovery can change a symlink target's mode","vendor":"pypa","product":"virtualenv","tier":"tail","description":{"text":"virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, the safe_delete() deletion error handler responds to a failed removal by reading mode bits with os.lstat(path) and applying owner-write permission with os.chmod(path, ...), which follows a symlink. A planted link inside a read-only directory can therefore cause a victim-owned target outside the destination that is initially not writable by the invoking user to become broadly writable before the retry fails, provided that user owns the target and can change its mode. Another account can use the widened mode only if it can traverse the target's parent directories; root does not reach the demonstrated failure path, and the operation does not itself read the target. This issue is fixed in version 21.14.9.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00152,"percentile":0.02275,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/pypa/virtualenv/security/advisories/GHSA-43mp-35q3-x3fq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pypa/virtualenv/pull/3427","tags":["x_refsource_MISC"]},{"url":"https://github.com/pypa/virtualenv/commit/2bfdc0230d1b2685fedfcfe66c835b9a2ec7c440","tags":["x_refsource_MISC"]},{"url":"https://github.com/pypa/virtualenv/releases/tag/21.14.9","tags":["x_refsource_MISC"]}],"priority":{"score":3.6,"factors":[{"name":"EPSS percentile","points":0.45},{"name":"CVSS severity","points":3.15}]},"vendorSlug":"pypa","affectedVersions":[{"vendor":"pypa","product":"virtualenv","versions":["< 21.14.9"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-27T11:02:29.437333Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"virtualenv","vulnerableRanges":["<21.14.9",">=21.7.5, <21.14.9"],"patched":["21.14.9"],"from":["GHSA-43mp-35q3-x3fq","PYSEC-2026-4383"],"provenance":"source"}],"summary":{"text":"The flaw is in virtualenv's safe_delete() deletion error handler, which, before version 21.14.9, uses os.chmod() on a path that follows symlinks after a failed removal. An attacker who can plant a symlink inside a read-only directory can cause a victim-owned file outside the deletion target, one that the invoking user could not initially write, to become broadly writable, and exploitation requires that the invoking user owns the target and can change its mode, with another local account able to traverse the target's parent directories to make use of the widened permissions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:17Z"},"euvd":{"id":"EUVD-2026-105272","exploited":false,"provenance":"source"}}