Arbitrary Command Injection Affecting python-3.13 package, versions <3.13.0-r1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.04% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CHAINGUARDLATEST-PYTHON313-8302907
  • published24 Oct 2024
  • disclosed22 Oct 2024

Introduced: 22 Oct 2024

CVE-2024-9287  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade Chainguard python-3.13 to version 3.13.0-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-3.13 package and not the python-3.13 package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

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.

CVSS Scores

version 3.1