Skip to main content

CVE-2026-113720: CWE-732: Incorrect Permission Assignment for Critical Resource in pypa virtualenv

0
Medium
VulnerabilityCVE-2026-113720cvecve-2026-113720cwe-732
Published: 10/20/2026 (10/20/2026, 19:43:32 UTC)
Source: CVE Database V5
Vendor/Project: pypa
Product: virtualenv

Description

CVE-2026-113720 is a medium severity vulnerability in pypa virtualenv prior to version 21.14.9. The issue arises from incorrect permission assignment when cached package files are copied using shutil.copy(), causing files to inherit permissive permissions from an earlier umask. This can allow local users to modify package code such as pip/__init__.py in later environments, potentially leading to execution of altered code by the environment owner. The vulnerability is fixed in version 21.14.9.

CVSS v4.0

Score 4.4medium

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
Vuln. Confidentiality
Low
Vuln. Integrity
High
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/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:19 UTC

Technical Analysis

The vulnerability in pypa virtualenv versions before 21.14.9 involves the app-data copy seeder using shutil.copy() to copy cached package files, which causes the copied files to inherit the source file's permissions rather than applying the current environment's umask. If the cache was created under a permissive umask, files can become writable by other local accounts in subsequent environments. This allows modification of package code like pip/__init__.py, which can then be executed by the environment owner. The attacker cannot influence the original umask, and private destination parent directories prevent unauthorized access. The issue is resolved in version 21.14.9.

Potential Impact

Local users with access to the cached package files can exploit this vulnerability to modify package code in virtual environments created later, potentially leading to execution of malicious code by the environment owner. However, the attacker cannot force the original umask, and access is limited by private destination directories. The CVSS 4.4 score reflects a medium impact with local attack vector, high attack complexity, and partial privileges required.

Mitigation Recommendations

Upgrade virtualenv to version 21.14.9 or later, where this issue is fixed. No additional mitigation is required as the fix addresses the permission assignment problem directly.

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.863Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ad7c5ba2cdf04f656576209

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

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

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

Views: 8

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