Skip to content
High 7.3

virtualenvで、別のローカルアカウントがコードを書き換えられる脆弱性

CVE-2026-113720 First seen on SecPulse

Summary

2026年10月20日に公表された、virtualenvのファイル権限に関する脆弱性です。キャッシュから複製されたファイルが古い権限を引き継ぐため、別のローカルアカウントが pip/init.py などのパッケージコードを書き換え、環境の所有者にそのコードを実行させるおそれがあります。影響するのは21.14.9より前の版で、21.14.9で修正されています。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

2026年10月20日に公表された、virtualenvのファイル権限に関する脆弱性です。キャッシュから複製されたファイルが古い権限を引き継ぐため、別のローカルアカウントが pip/init.py などのパッケージコードを書き換え、環境の所有者にそのコードを実行させるおそれがあります。影響するのは21.14.9より前の版で、21.14.9で修正されています。

Affected packages

PackageAffected → Fixed
pypavirtualenv —
pipvirtualenv
< 21.14.9→ 21.14.9
PyPIvirtualenv
< 21.14.9→ 21.14.9
Bitnamivirtualenv
< 21.14.9→ 21.14.9

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, the app-data copy seeder uses shutil.copy() to copy cached package files into later environments, causing cached source modes to override the current run's umask. A cache populated under a permissive umask can therefore produce files writable by another local account in a later traversable environment, allowing package code such as pip/init.py to be modified and executed by the environment owner. The attacker cannot force the earlier umask, and a private destination parent prevents access. This issue is fixed in version 21.14.9.

Source: NIST National Vulnerability Database NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details