{"schemaVersion":3,"id":"CVE-2026-102938","aliases":["GHSA-9h9j-4vrj-gf7g","BIT-virtualenv-2026-102938","PYSEC-2026-4012","UBUNTU-CVE-2026-102938","DEBIAN-CVE-2026-102938","CGA-2475-q2cf-6xp8","CGA-mh7r-w3v8-42xh","CGA-q7jf-5v7v-8r55","CGA-xv2w-g4vq-wmcc","CGA-7q34-xxc3-fgj3","CGA-prjp-c89g-f2g9"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-09-29T20:58:20.696Z","modified":"2026-09-30T19:53:20.817Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.8,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":5.8,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":5.8,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":5.8,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":5.8,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":5.8,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":5.8,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":5.8,"severity":"medium","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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0014,"percentile":0.0302,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-09-30T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0014,"percentile":0.0302}],"last30":[{"date":"2026-09-30T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0014,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0014,"percentile":0.0302}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences ('CRLF Injection')","description":"The product uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/93.html"}],"affected":[{"vendor":"chainguard","product":"mlflow-iamguarded-compat","name":"mlflow-iamguarded-compat","label":"mlflow-iamguarded-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/mlflow-iamguarded-compat","purlType":"apk","versions":[{"text":"< 3.16.1-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.16.1-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3-cassandra-medusa","name":"py3-cassandra-medusa","label":"py3-cassandra-medusa","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3-cassandra-medusa","purlType":"apk","versions":[{"text":"< 0.30.1-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.30.1-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"request-1276","name":"request-1276","label":"request-1276","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/request-1276","purlType":"apk","versions":[{"text":"< 0.30.1-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.30.1-r3","eol":null,"hubHref":null},{"vendor":"wolfi","product":"mlflow-iamguarded-compat","name":"mlflow-iamguarded-compat","label":"mlflow-iamguarded-compat","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/mlflow-iamguarded-compat","purlType":"apk","versions":[{"text":"< 3.16.1-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.16.1-r1","eol":null,"hubHref":null},{"vendor":"wolfi","product":"py3-cassandra-medusa","name":"py3-cassandra-medusa","label":"py3-cassandra-medusa","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/py3-cassandra-medusa","purlType":"apk","versions":[{"text":"< 0.30.1-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.30.1-r3","eol":null,"hubHref":null},{"vendor":"debian","product":"python-virtualenv","name":"python-virtualenv","label":"python-virtualenv","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/python-virtualenv","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python-virtualenv","name":"python-virtualenv","label":"python-virtualenv","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python-virtualenv","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"pypa","product":"virtualenv","name":"virtualenv","label":"virtualenv","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 21.7.11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 21.7.11","eol":null,"hubHref":"/vendor/pypa/virtualenv"},{"vendor":"PyPI","product":"virtualenv","name":"virtualenv","label":"virtualenv","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/virtualenv","purlType":"pypi","versions":[{"text":"< 21.7.11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 21.7.11","eol":null,"hubHref":null}],"affectedCount":9,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/pypa/virtualenv/security/advisories/GHSA-9h9j-4vrj-gf7g","label":"github.com/pypa/virtualenv/security/advisories/GHSA-9h9j-4vrj-gf7g","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","REPORT","Advisory"]},{"url":"https://github.com/pypa/virtualenv/pull/3247","label":"github.com/pypa/virtualenv/pull/3247","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","FIX"]},{"url":"https://github.com/pypa/virtualenv/commit/a30f995461043acb6cacbf3a890951563ccf7140","label":"github.com/pypa/virtualenv/commit/a30f995461043acb6cacbf3a890951563ccf7140","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","REPORT"]},{"url":"https://github.com/pypa/virtualenv/releases/tag/21.7.11","label":"github.com/pypa/virtualenv/releases/tag/21.7.11","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102938","label":"nvd.nist.gov/vuln/detail/CVE-2026-102938","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2026-4012.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2026-4012.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/pypa/virtualenv","label":"github.com/pypa/virtualenv","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pypi.org/project/virtualenv","label":"pypi.org/project/virtualenv","hostname":"pypi.org","tags":["WEB","PACKAGE"]},{"url":"https://ubuntu.com/security/CVE-2026-102938","label":"ubuntu.com/security/CVE-2026-102938","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-102938","label":"www.cve.org/CVERecord?id=CVE-2026-102938","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-102938","label":"security-tracker.debian.org/tracker/CVE-2026-102938","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102938.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102938.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:11974-1","OPENSUSE-SU-2026:22100-1","SUSE-SU-2026:4652-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:11974-1","OPENSUSE-SU-2026:22100-1","SUSE-SU-2026:4652-1"]},"timeline":[{"kind":"published","date":"2026-09-29T20:58:20.696Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-30T19:53:20.817Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":23,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T15:36:15.856Z","stale":false,"partial":false}}