Advisory record · GHSA-9h9j-4vrj-gf7g

virtualenv writes prompt values into pyvenv.cfg without sanitizing line boundaries, allowing configuration injection

CVSS 5.8 MediumEPSS 0.0015 · 3rd percentile

Published by the GitHub Advisory Database at 30 Sept 2026, 23:53 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
virtualenvPyPI<21.7.1121.7.11
Identifiers
GHSA-9h9j-4vrj-gf7g · BIT-virtualenv-2026-102938 · CVE-2026-102938 · PYSEC-2026-4012
Weakness (CWE)
CWE-93
Published
30 Sept 2026
Updated
6 Oct 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Virtualenv versions before 21.7.11 write prompt values into pyvenv.cfg without removing line boundaries, so a crafted prompt can inject extra configuration lines and override keys such as home. An attacker needs to control the prompt value, for example through a CI job or inherited environment variable, and the impact is a redirected or corrupted interpreter configuration. Upgrade to virtualenv 21.7.11 or later; until then, strip line-break characters from any externally supplied prompt value.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.8 Medium 4.0 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 CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0015, the 3rd percentile, on 8 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:09 UTC First seen by agentprime
  2. 31 Oct 2026, 14:09 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.