Arbitrary Code Execution Affecting pipreqs package, versions [0.3.0,0.4.13)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.32% (71st 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 Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-PIPREQS-5750287
  • published2 Jul 2023
  • disclosed30 Jun 2023
  • creditadeadfed

Introduced: 30 Jun 2023

CVE-2023-31543  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade pipreqs to version 0.4.13 or higher.

Overview

pipreqs is a Pip requirements.txt generator based on imports in project

Affected versions of this package are vulnerable to Arbitrary Code Execution due to a possible dependency confusion via uploading a crafted PyPI package to the chosen repository server.

Note:

In order to successfully conduct an attack these prerequisites have to be met.

CVSS Scores

version 3.1