CRLF Injection Affecting virtualenv package, versions [,21.7.11)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.14% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about CRLF Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-VIRTUALENV-20335493
  • published30 Sept 2026
  • disclosed29 Sept 2026
  • creditBernát Gábor

Introduced: 29 Sep 2026

NewCVE-2026-102938  (opens in a new tab)
CWE-93  (opens in a new tab)

How to fix?

Upgrade virtualenv to version 21.7.11 or higher.

Overview

Affected versions of this package are vulnerable to CRLF Injection via the PyEnvCfg.write method in src/virtualenv/create/pyenv_cfg.py, where configuration values containing line boundary characters (such as \n, \r, \v, \f, and Unicode line/paragraph separators) are written into pyvenv.cfg without sanitization. An attacker who controls a value written to pyvenv.cfg - for example, the virtual environment prompt - can inject additional configuration keys into the file, which are then read back as legitimate entries and can override critical settings such as home.

CVSS Base Scores

version 4.0
version 3.1