critical9.8
CVE-2023-31543
pipreqs vulnerable to Dependency Confusion
Impact
A dependency confusion in pipreqs v0.3.0 to v0.4.11 allows attackers to execute arbitrary code via uploading a crafted PyPI package to the chosen repository server.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | pipreqs | >= 0.3.0, < 0.4.12 | 0.4.12 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Pipreqs Project | Pipreqs | from 0.3.0 through 0.4.11 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://gist.github.com/adeadfed/ccc834440af354a5638f889bee34bafe
- https://github.com/bndr/pipreqs/pull/364
- https://github.com/advisories/GHSA-v4f4-23wc-99mh
- https://nvd.nist.gov/vuln/detail/CVE-2023-31543
- https://github.com/bndr/pipreqs/commit/3f5964fcb90ec6eb6df46d78e651a1b73538d0ba
- https://github.com/bndr/pipreqs/blob/master/pipreqs/pipreqs.py#L447-L449
- https://github.com/pypa/advisory-database/tree/main/vulns/pipreqs/PYSEC-2023-99.yaml