Skip to main content

CVE-2026-113715: CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection') in pypa virtualenv

0
Low
VulnerabilityCVE-2026-113715cvecve-2026-113715cwe-93
Published: 10/20/2026 (10/20/2026, 19:42:55 UTC)
Source: CVE Database V5
Vendor/Project: pypa
Product: virtualenv

Description

CVE-2026-113715 is a low-severity vulnerability in pypa virtualenv prior to version 21.14.9. It involves improper neutralization of CRLF sequences (CRLF injection) in the handling of the pyvenv.cfg file. An attacker who can influence the destination pathname can inject line-boundary characters to alter configuration keys such as 'home' and 'include-system-site-packages'. This can weaken environment isolation or change which standard-library files the Python interpreter loads. The issue is fixed in version 21.14.9.

CVSS v4.0

Score 2.0low

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Affected software

pypa

virtualenv

Affected versions
<21.14.9
virtualenv
pkg:pypi/virtualenv
Affected versions
<21.14.9

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/20/2026, 20:03:26 UTC

Technical Analysis

The vulnerability arises because virtualenv versions before 21.14.9 use str.splitlines() to parse the generated pyvenv.cfg file and merge keys over the selected configuration. An attacker controlling the destination pathname can inject line-boundary characters (e.g., U+2028) to insert or modify configuration keys like 'home' and 'include-system-site-packages'. Setting 'include-system-site-packages' to true reduces environment isolation, and altering 'home' can redirect the interpreter to load standard-library files from attacker-controlled locations. The built-in venv creator does not use this readback path and is not affected. The vulnerability is addressed by a fix in version 21.14.9.

Potential Impact

An attacker with the ability to influence the destination pathname can manipulate the virtual environment's configuration, potentially weakening isolation by enabling system site packages or redirecting the interpreter to load standard-library files from attacker-controlled paths. This could lead to a reduced security boundary within the virtual environment. However, exploitation requires local access with the ability to influence pathnames, and the overall severity is low.

Mitigation Recommendations

Upgrade virtualenv to version 21.14.9 or later, where this vulnerability is fixed. No other mitigation is necessary as the issue is resolved in the official release.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-10-20T16:03:14.862Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ad7c5ba2cdf04f656576206

Added to database: 10/20/2026, 19:49:14 UTC

Last enriched: 10/20/2026, 20:03:26 UTC

Last updated: 10/20/2026, 20:08:22 UTC

Views: 9

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses