Arbitrary Command Injection Affecting python-pip-wheel package, versions <0:20.2.2-1.amzn2.0.5


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.05% (18th 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-AMZN2-PYTHONPIPWHEEL-6098754
  • published5 Dec 2023
  • disclosed25 Oct 2023

Introduced: 25 Oct 2023

CVE-2023-5752  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 python-pip-wheel to version 0:20.2.2-1.amzn2.0.5 or higher.
This issue was patched in ALAS2-2023-2349.

NVD Description

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

When installing a package from a Mercurial VCS URL (ie "pip install hg+...") with pip prior to v23.3, the specified Mercurial revision could be used to inject arbitrary configuration options to the "hg clone" call (ie "--config"). Controlling the Mercurial configuration can modify how and which repository is installed. This vulnerability does not affect users who aren't installing from Mercurial.

CVSS Scores

version 3.1