CRLF Injection Affecting python3-virtualenv package, versions <0:20.4.0-3.amzn2023.0.5


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.15% (5th 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 IDSNYK-AMZN2023-PYTHON3VIRTUALENV-21702829
  • published25 Oct 2026
  • disclosed29 Sept 2026

Introduced: 29 Sep 2026

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

How to fix?

Upgrade Amazon-Linux:2023 python3-virtualenv to version 0:20.4.0-3.amzn2023.0.5 or higher.
This issue was patched in ALAS2023-2026-3295.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python3-virtualenv package and not the python3-virtualenv package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

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 Base Scores

version 3.1