REDHAT-BUG-2321440: Medium severity Python CPython vulnerability

Published Oct 24, 2024
·
Updated

A vulnerability has been found in the CPython venv module and CLI where path names provided when creating a virtual environment were not quoted properly, allowing the creator to inject commands into virtual environment "activation" scripts (ie "source venv/bin/activate"). This means that attacker-controlled virtual environments are able to run commands when the virtual environment is activated. Virtual environments which are not created by an attacker or which aren't activated before being used (ie "./venv/bin/python") are not affected.

Affected Software

1 affected component
Python CPython

Event History

Oct 24, 2024
Data Sourced
via Red Hat·10:14 AM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2321440?

The severity of REDHAT-BUG-2321440 is considered high due to the potential for command injection in virtual environment activation scripts.

2

How do I fix REDHAT-BUG-2321440?

To fix REDHAT-BUG-2321440, ensure you upgrade to the patched version of CPython that addresses the quoting issue in the venv module.

3

What versions of CPython are affected by REDHAT-BUG-2321440?

REDHAT-BUG-2321440 affects all versions of CPython that utilize the venv module without proper path quoting.

4

What kind of attacks can REDHAT-BUG-2321440 enable?

REDHAT-BUG-2321440 can enable attackers to execute arbitrary commands through the manipulation of virtual environment activation scripts.

5

Is there a workaround for REDHAT-BUG-2321440 before applying a patch?

A temporary workaround for REDHAT-BUG-2321440 involves manually sanitizing and verifying path inputs when creating virtual environments.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203