{"vuln_id":"CVE-2026-113715","aliases":["GHSA-qmx5-4p3x-wvqf"],"description":"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.","published_at":"2026-10-20T20:17:17.690000Z","modified_at":"2026-11-21T19:00:08.117499Z","first_seen_at":"2026-11-21T19:15:47.052390Z","severity":"low","severity_source":"nvd","cvss_score":2.0,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cwe":["CWE-93"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00247,"epss_percentile":0.16059,"nvd_status":"Analyzed","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-113715"},"matched_alias":null,"items":[{"id":10763,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-qmx5-4p3x-wvqf: virtualenv: Venv configuration readback can reinterpret path boundaries","summary":"virtualenv: Venv configuration readback can reinterpret path boundaries\n\n## Summary\n\nThe venv creator reads the standard library's generated pyvenv.cfg with splitlines() and merges all resulting keys over\nvirtualenv's configuration. Line-boundary characters from destination data can therefore become configuration structure\nbefore output sanitization.\n\nAnthropic's OSS Scanner reported this as `ANT-2026-6ZQHJ6VI` in `virtualenv-20261015-005`, received on 15 October 2026.\n\n## Affected area\n\nConfiguration readback by the stdlib venv creator.\n\n## Attacker-controlled input\n\nAn untrusted caller must influence the destination pathname passed to the venv creator. That pathname must contain a\ncharacter that Python treats as a line boundary. The builtin creator follows a different configuration-writing path.\n\n## Affected code\n\nThe relevant 21.14.8 source is in\n[venv readback](https://github.com/pypa/virtualenv/blob/a795ab116356afde11039cf2763d77e8a06da738/src/virtualenv/create/via_global_ref/venv.py),\n[configuration parser](https://github.com/pypa/virtualenv/blob/a795ab116356afde11039cf2763d77e8a06da738/src/virtualenv/create/pyenv_cfg.py).\n\n## Mechanism\n\nWith `--creator venv`, virtualenv asks the standard library to create an environment, reads its `pyvenv.cfg` with\n`str.splitlines()`, and merges the parsed keys over virtualenv's chosen settings. CPython writes the destination into a\n`command =` value without escaping every character that `splitlines()` recognizes as a line boundary. A destination\ncontaining U+2028, for example, can therefore supply new `home` and `include-system-site-packages` keys during readback.\nVirtualenv writes those keys as real configuration lines. The builtin creator does not use this readback path.\n\n## Reproduction and evidence\n\nThe scanner used one destination value with U+2028 between `home = /attacker/chosen`,\n`include-system-site-packages = true`, and an absorbing `x =` key. A `python -m venv --without-pip` control kept the\nvalue inside its `command` line and reported the base interpreter's `sys._home`. `virtualenv --creator venv --no-seed`\non the same value wrote separate injected configuration lines and its interpreter reported\n`sys._home = /attacker/chosen`. The path did not require a literal newline byte. The control establishes that the extra\nkeys came from virtualenv's readback, not from the standard library's initial file alone.\n\nThe altered `home` can change which standard-library files the interpreter loads if an attacker also controls that\nlocation; `include-system-site-packages = true` weakens environment isolation. Choosing the venv creator is required,\neither explicitly or through a rare fallback. The report traces the readback to the 20.x rewrite, first released in\n20.0.0b1. [PR #3426](https://github.com/pypa/virtualenv/pull/3426) rejects line-boundary characters before creation and\nrebuilds the final configuration from selected settings.\n\n## Attack sequence\n\n```mermaid\nsequenceDiagram\n    participant A as Destination supplier\n    participant S as stdlib venv\n    participant V as virt\n\nAffected: PyPI:virtualenv\n\nFixed in: 21.14.9\n\nReferences:\nhttps://github.com/pypa/virtualenv/security/advisories/GHSA-qmx5-4p3x-wvqf\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-113715\nhttps://github.com/pypa/virtualenv/pull/3426\nhttps://github.com/pypa/virtualenv/commit/b0008a58885ded9227faf8f910c6c402712c750a\nhttps://github.com/pypa/virtualenv\nhttps://github.com/pypa/virtualenv/releases/tag/21.14.9","url":"https://osv.dev/vulnerability/GHSA-qmx5-4p3x-wvqf","published_at":"2026-10-23T22:20:43Z","updated_at":"2026-11-18T12:10:44.781421Z","fetched_at":"2026-11-21T19:15:55.946159Z","severity":"high","cvss_score":8.4,"epss":0.00247,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"virtualenv","vuln_id":"CVE-2026-113715","vuln_ids":["CVE-2026-113715","BIT-VIRTUALENV-2026-113715","GHSA-QMX5-4P3X-WVQF","PYSEC-2026-4374"],"tags":["osv","pypi","fix-available"],"cluster_id":4093,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10763","html":"https://vulnwatch.ve1ve2.com/item/10763"}},{"id":11329,"source":{"id":"osv","name":"OSV.dev"},"title":"DEBIAN-CVE-2026-113715: 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.splitline…","summary":"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.\n\nAffected: Debian:12:python-virtualenv, Debian:13:python-virtualenv, Debian:14:python-virtualenv\n\nFixed in: 21.15.6+ds-1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-113715","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-113715","published_at":"2026-10-20T20:17:17.690000Z","updated_at":"2026-11-21T19:00:08.117499Z","fetched_at":"2026-11-21T19:23:21.853706Z","severity":"high","cvss_score":8.4,"epss":0.00247,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"debian","product":"12:python-virtualenv","vuln_id":"CVE-2026-113715","vuln_ids":["CVE-2026-113715","DEBIAN-CVE-2026-113715","GHSA-QMX5-4P3X-WVQF"],"tags":["osv","debian","fix-available"],"cluster_id":4092,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11329","html":"https://vulnwatch.ve1ve2.com/item/11329"}},{"id":10764,"source":{"id":"osv","name":"OSV.dev"},"title":"PYSEC-2026-4374: 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.splitline…","summary":"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.\n\nAffected: PyPI:virtualenv\n\nFixed in: 21.14.9\n\nReferences:\nhttps://github.com/pypa/virtualenv/releases/tag/21.14.9\nhttps://github.com/pypa/virtualenv/commit/b0008a58885ded9227faf8f910c6c402712c750a\nhttps://github.com/pypa/virtualenv/pull/3426\nhttps://github.com/pypa/virtualenv/security/advisories/GHSA-qmx5-4p3x-wvqf","url":"https://osv.dev/vulnerability/PYSEC-2026-4374","published_at":"2026-10-20T20:17:17.690000Z","updated_at":"2026-11-18T12:10:44.781421Z","fetched_at":"2026-11-21T19:15:55.946160Z","severity":"high","cvss_score":8.4,"epss":0.00247,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"virtualenv","vuln_id":"CVE-2026-113715","vuln_ids":["CVE-2026-113715","BIT-VIRTUALENV-2026-113715","GHSA-QMX5-4P3X-WVQF","PYSEC-2026-4374"],"tags":["osv","pypi","fix-available"],"cluster_id":4092,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10764","html":"https://vulnwatch.ve1ve2.com/item/10764"}},{"id":3759,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-113715: 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.splitline…","summary":"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.\n\nReferences:\nhttps://github.com/pypa/virtualenv/commit/b0008a58885ded9227faf8f910c6c402712c750a\nhttps://github.com/pypa/virtualenv/pull/3426\nhttps://github.com/pypa/virtualenv/releases/tag/21.14.9\nhttps://github.com/pypa/virtualenv/security/advisories/GHSA-qmx5-4p3x-wvqf\nhttps://github.com/pypa/virtualenv/security/advisories/GHSA-qmx5-4p3x-wvqf","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113715","published_at":"2026-10-20T20:17:17.690000Z","updated_at":"2026-11-17T20:28:25.320000Z","fetched_at":"2026-11-21T19:15:31.479284Z","severity":"high","cvss_score":8.4,"epss":0.00247,"is_kev":false,"has_exploit":true,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-113715","vuln_ids":["CVE-2026-113715","GHSA-QMX5-4P3X-WVQF"],"tags":["CWE-93"],"cluster_id":4092,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/3759","html":"https://vulnwatch.ve1ve2.com/item/3759"}}]}