{"cve":"CVE-2026-102938","nvd":{"published":"2026-09-29T21:17:19.047","modified":"2026-09-30T20:17:25.517","status":"Awaiting Analysis","description":"virtualenv is a tool for creating isolated virtual python environments. Prior to 21.7.11, PyEnvCfg.write() writes prompt values verbatim to the line-oriented pyvenv.cfg format while PyEnvCfg._read_values() parses the file with str.splitlines() and accepts the last value for duplicate keys. An attacker who influences --prompt, VIRTUALENV_PROMPT, or configuration input can insert a recognized line boundary and additional keys, including home, causing consumers to use an attacker-selected base interpreter or corrupted environment metadata. The security impact requires prompt input from outside the operator's trust boundary; directly supplied prompt content primarily corrupts the operator's own environment. This issue is fixed in version 21.7.11.","cvss_v4":{"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N","score":5.8},"cvss_v3":null,"cwes":["CWE-93"],"references":["https://github.com/pypa/virtualenv/commit/a30f995461043acb6cacbf3a890951563ccf7140","https://github.com/pypa/virtualenv/pull/3247","https://github.com/pypa/virtualenv/releases/tag/21.7.11","https://github.com/pypa/virtualenv/security/advisories/GHSA-9h9j-4vrj-gf7g"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:56:48.555445741+00:00"},"epss":{"cve":"CVE-2026-102938","score":0.00146,"percentile":0.03823,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-9h9j-4vrj-gf7g","url":"https://osv.dev/vulnerability/GHSA-9h9j-4vrj-gf7g","summary":"virtualenv writes prompt values into pyvenv.cfg without sanitizing line boundaries, allowing configuration injection","modified":"2026-10-06T15:25:56.172772842Z","packages":[{"ecosystem":"PyPI","name":"virtualenv","purl":"pkg:pypi/virtualenv","ranges":["<21.7.11"],"fixed":["21.7.11"]}]},{"id":"PYSEC-2026-4012","url":"https://osv.dev/vulnerability/PYSEC-2026-4012","summary":"virtualenv writes prompt values into pyvenv.cfg without sanitizing line boundaries, allowing configuration injection","modified":"2026-10-06T15:25:56.172772842Z","packages":[{"ecosystem":"PyPI","name":"virtualenv","purl":"pkg:pypi/virtualenv","ranges":["<21.7.11"],"fixed":["21.7.11"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}