Inappropriate Encoding for Output Context in py3-virtualenv - #VU169682

 

Inappropriate Encoding for Output Context in py3-virtualenv - #VU169682

Published: November 23, 2026


Vulnerability identifier: #VU169682
CSH Severity: Low
CVSS v4: 5.4 [CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-838
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to execute arbitrary commands with the privileges of the user who activates the virtual environment.

The vulnerability exists due to improper escaping of prompt text in the virtualenv Bash activator when Bash renders an interactive prompt under a legacy multibyte locale such as GBK. A local user can supply untrusted project prompt text that the victim accepts to execute commands when the victim activates the environment and Bash displays the prompt.


Affected software

py3-virtualenv

Remediation

Install security update from vendor's website.

py3-virtualenv - update to 21.15.10

External References

Related Security Bulletins