{"id":"CVE-2026-113715","published":"2026-10-20T19:42:55Z","modified":"2026-10-23T02:01:48Z","title":"virtualenv: Venv configuration readback can reinterpret path boundaries","vendor":"pypa","product":"virtualenv","tier":"tail","description":{"text":"virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, the stdlib venv creator reads generated pyvenv.cfg with str.splitlines() and merges parsed keys over virtualenv's selected configuration. An untrusted caller who influences the destination pathname can include a line-boundary character such as U+2028 to inject keys including home and include-system-site-packages, causing path data to change configuration structure before final output. Setting include-system-site-packages to true weakens environment isolation, while an altered home can change which standard-library files the interpreter loads if the attacker also controls that location. The builtin creator does not use this readback path. This issue is fixed in version 21.14.9.","provenance":"source","from":"CVE.org"},"cvss":{"score":2,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0024,"percentile":0.09077,"provenance":"source"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"references":[{"url":"https://github.com/pypa/virtualenv/security/advisories/GHSA-qmx5-4p3x-wvqf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pypa/virtualenv/pull/3426","tags":["x_refsource_MISC"]},{"url":"https://github.com/pypa/virtualenv/commit/b0008a58885ded9227faf8f910c6c402712c750a","tags":["x_refsource_MISC"]},{"url":"https://github.com/pypa/virtualenv/releases/tag/21.14.9","tags":["x_refsource_MISC"]}],"priority":{"score":3.2,"factors":[{"name":"EPSS percentile","points":1.82},{"name":"CVSS severity","points":1.4}]},"vendorSlug":"pypa","affectedVersions":[{"vendor":"pypa","product":"virtualenv","versions":["< 21.14.9"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-23T02:01:27.346462Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"virtualenv","vulnerableRanges":["<21.14.9",">=20.0.0, <21.14.9"],"patched":["21.14.9"],"from":["GHSA-qmx5-4p3x-wvqf","PYSEC-2026-4374"],"provenance":"source"}],"summary":{"text":"A flaw in virtualenv (pypa), in its stdlib venv creator's readback of the generated pyvenv.cfg file, lets line-boundary characters in the destination path be treated as line breaks, so injected keys can merge into the environment's configuration. An attacker who can influence the destination pathname and is able to get a user to interact with the creation process can inject keys such as home or include-system-site-packages, weakening isolation or redirecting standard-library loading if the attacker also controls the altered location; the builtin creator is not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:24Z"},"euvd":{"id":"EUVD-2026-105301","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pypa-virtualenv-cve-2026-102925","children":[{"from":"CVE-2026-113715","to":"CVE-2026-113716","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/virtualenv/create/via_global_ref/venv.py"],"commits":["https://github.com/pypa/virtualenv/commit/b0008a58885ded9227faf8f910c6c402712c750a","https://github.com/pypa/virtualenv/commit/554d9f9d4f7758f5cf53f993031e29787f1f74c5"],"basis":"rarely changed file"}]},{"from":"CVE-2026-113715","to":"CVE-2026-113721","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/virtualenv/create/via_global_ref/venv.py"],"commits":["https://github.com/pypa/virtualenv/commit/b0008a58885ded9227faf8f910c6c402712c750a","https://github.com/pypa/virtualenv/commit/d25f28699eefb1fc34a251e5adf2b5de844c36cd"],"basis":"rarely changed file"}]}]}}