{"vuln_id":"CVE-2026-102938","aliases":["GHSA-9h9j-4vrj-gf7g"],"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.","published_at":"2026-09-29T21:17:19.047000Z","modified_at":"2026-11-20T10:00:05.282819Z","first_seen_at":"2026-11-21T19:15:46.928314Z","severity":"medium","severity_source":"nvd","cvss_score":5.8,"cvss_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/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.00153,"epss_percentile":0.04423,"nvd_status":"Analyzed","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-102938"},"matched_alias":null,"items":[{"id":11351,"source":{"id":"osv","name":"OSV.dev"},"title":"DEBIAN-CVE-2026-102938: 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 p…","summary":"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.\n\nAffected: Debian:12:python-virtualenv, Debian:13:python-virtualenv, Debian:14:python-virtualenv\n\nNo fixed version published yet\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-102938","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-102938","published_at":"2026-09-29T21:17:19.047000Z","updated_at":"2026-11-20T10:00:05.282819Z","fetched_at":"2026-11-21T19:23:21.853723Z","severity":"medium","cvss_score":6.2,"epss":0.00153,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"debian","product":"12:python-virtualenv","vuln_id":"CVE-2026-102938","vuln_ids":["CVE-2026-102938","DEBIAN-CVE-2026-102938","GHSA-9H9J-4VRJ-GF7G"],"tags":["osv","debian","no-fix-yet"],"cluster_id":3975,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11351","html":"https://vulnwatch.ve1ve2.com/item/11351"}},{"id":3669,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-102938: 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 p…","summary":"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.\n\nReferences:\nhttps://github.com/pypa/virtualenv/commit/a30f995461043acb6cacbf3a890951563ccf7140\nhttps://github.com/pypa/virtualenv/pull/3247\nhttps://github.com/pypa/virtualenv/releases/tag/21.7.11\nhttps://github.com/pypa/virtualenv/security/advisories/GHSA-9h9j-4vrj-gf7g","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102938","published_at":"2026-09-29T21:17:19.047000Z","updated_at":"2026-11-19T19:51:23.310000Z","fetched_at":"2026-11-21T19:15:31.479210Z","severity":"medium","cvss_score":5.8,"epss":0.00153,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-102938","vuln_ids":["CVE-2026-102938","GHSA-9H9J-4VRJ-GF7G"],"tags":["CWE-93"],"cluster_id":3975,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/3669","html":"https://vulnwatch.ve1ve2.com/item/3669"}}]}