CVE-2023-31543 json
pipreqs vulnerable to Dependency Confusion
published 3y ago modified 4mo ago also GHSA-v4f4-23wc-99mh , PYSEC-2023-99 , EUVD-2023-0201
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 68%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi pipreqs 0.4.12
- python-pipreqs openSUSE Tumbleweed 0.5.0-2.2
opensuse advisories openSUSE-SU-2026:12026-1
- github.com/bndr/pipreqs@3f5964f commit
- github.com/bndr/pipreqs#364 pull request
Is CVE-2023-31543 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
1.18% chance of exploitation in the next 30 days, higher than 68% of all scored CVEs (FIRST EPSS, 2026-11-15).
Exploits and checks
- github.com https://github.com/bndr/pipreqs/pull/364 referenced PoC, tagged "exploit" by a source, unverified
- gist.github.com https://gist.github.com/adeadfed/ccc834440af354a5638f889bee34bafe referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pipreqs | >=0.3.0, <0.4.12 |
0.4.12 |
Classification
- Weakness
-
- CWE-427 Uncontrolled Search Path Element
References
-
github.com
/bndr/pipreqs/pull/364
web, exploit, mitigation, patch, vendor-advisory, evidence, advisory
-
github.com
/bndr/pipreqs/commit/3f5964fcb90ec6eb6df46d78e651a1b73538d0ba
web
-
gist.github.com
/adeadfed/ccc834440af354a5638f889bee34bafe
web, exploit, mitigation, third-party-advisory, evidence
-
nvd.nist.gov
/vuln/detail/CVE-2023-31543
advisory
-
github.com
/bndr/pipreqs
package
-
github.com
/bndr/pipreqs/blob/master/pipreqs/pipreqs.py#L447-L449
web
-
github.com
/pypa/advisory-database/tree/main/vulns/pipreqs/PYSEC-2023-99.yaml
web
-
github.com
/advisories/GHSA-v4f4-23wc-99mh
advisory
Sources
- CVE List CVE-2023-31543
- GitHub Advisory GHSA-v4f4-23wc-99mh
- NVD CVE-2023-31543
- OSV PYSEC-2023-99
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.