CVE-2023-31543
9.8critical
pipreqs vulnerable to Dependency Confusion
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 1.18% (higher than 68% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-v4f4-23wc-99mhPYSEC-2023-99
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| pipreqs (PyPI) | from 0.3.0 before 0.4.12 | GitHub Advisory Database, PyPA Advisory Database |
| pipreqs_project pipreqs | from 0.3.0 up to 0.4.11 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
References
| https://github.com/bndr/pipreqs/pull/364 | advisory, evidence, exploit, fix, mitigation, patch, vendor-advisory, web | |
| https://gist.github.com/adeadfed/ccc834440af354a5638f889bee34bafe | evidence, exploit, mitigation, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-31543 | advisory | |
| https://github.com/bndr/pipreqs/commit/3f5964fcb90ec6eb6df46d78e651a1b73538d0ba | web | |
| https://github.com/bndr/pipreqs | package | |
| https://github.com/bndr/pipreqs/blob/master/pipreqs/pipreqs.py#L447-L449 | web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/pipreqs/PYSEC-2023-99.yaml | web | |
| https://github.com/advisories/GHSA-v4f4-23wc-99mh | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-31543 changed 2024-11-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v4f4-23wc-99mh changed 2024-10-14 | CC-BY-4.0 |
| NVD | CVE-2023-31543 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2023-99 changed 2026-06-10 | CC-BY-4.0 |