CVE-2023-31543
Pipreqs Project Pipreqs vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Pipreqs. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Pipreqs Project Pipreqs runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/bndr/pipreqs/pull/364 · Exploit
- gist.github.com/adeadfed/ccc834440af354a5638f889bee34bafe · Exploit
- nvd.nist.gov/vuln/detail/CVE-2023-31543
- github.com/bndr/pipreqs/commit/3f5964fcb90ec6eb6df46d78e651a1b73538d0ba
- github.com/bndr/pipreqs/blob/master/pipreqs/pipreqs.py#L447-L449
- github.com/pypa/advisory-database/tree/main/vulns/pipreqs/PYSEC-2023-99.yaml
- github.com/advisories/GHSA-v4f4-23wc-99mh
- nvd.nist.gov/vuln/detail/CVE-2023-31543
- cve.org/CVERecord?id=CVE-2023-31543
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.