{"id":"CVE-2023-31543","aliases":["EUVD-2023-0201","GHSA-v4f4-23wc-99mh","PYSEC-2023-99","openSUSE-SU-2024:13041-1","openSUSE-SU-2026:12026-1"],"status":"published","title":"pipreqs vulnerable to Dependency Confusion","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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.01177,"percentile":0.68083,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-427"],"published":"2023-06-30T00:00:00Z","modified":"2026-10-28T02:31:11Z","fixes":[{"ecosystem":"PyPI","package":"pipreqs","fixed_in":["0.4.12"],"sources":["ghsa","osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"python-pipreqs","fixed_in":["0.5.0-2.2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"pipreqs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.3.0"},{"fixed":"0.4.12"}]}]},{"source":"osv","ecosystem":"PyPI","package":"pipreqs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.3.0"},{"fixed":"0.4.12"}]}],"versions":["0.3.0","0.3.1","0.3.2","0.3.3","0.3.4","0.3.5","0.3.6","0.3.7","0.3.8","0.3.9","0.4.0","0.4.1","0.4.10","0.4.11","0.4.2","0.4.3","0.4.4","0.4.5","0.4.6","0.4.7","0.4.8","0.4.9"]},{"source":"osv","ecosystem":"PyPI","package":"pipreqs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.3.0"},{"fixed":"0.4.12"}]}],"versions":["0.3.0","0.3.1","0.3.2","0.3.3","0.3.4","0.3.5","0.3.6","0.3.7","0.3.8","0.3.9","0.4.0","0.4.1","0.4.10","0.4.11","0.4.2","0.4.3","0.4.4","0.4.5","0.4.6","0.4.7","0.4.8","0.4.9"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"python-pipreqs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.0-2.2"}]}]}],"products":[{"vendor":"pipreqs_project","product":"pipreqs"}],"references":[{"url":"https://github.com/bndr/pipreqs/pull/364","tags":["x_transferred","Exploit","Mitigation","Patch","Vendor Advisory","fix","web","evidence","advisory"]},{"url":"https://gist.github.com/adeadfed/ccc834440af354a5638f889bee34bafe","tags":["x_transferred","Exploit","Mitigation","Third Party Advisory","web","evidence"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31543","tags":["advisory"]},{"url":"https://github.com/bndr/pipreqs/commit/3f5964fcb90ec6eb6df46d78e651a1b73538d0ba","tags":["web"]},{"url":"https://github.com/bndr/pipreqs/blob/master/pipreqs/pipreqs.py#L447-L449","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pipreqs/PYSEC-2023-99.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-v4f4-23wc-99mh","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31543.json","tags":["advisory"]},{"url":"https://github.com/bndr/pipreqs","tags":["package"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2023-31543","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2023-31543","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.","status":"published","published":"2023-06-30T00:00:00Z","modified":"2024-11-26T19:58:33.378Z","updated_at":"2026-11-02T14:35:27.430605Z"}],"euvd":[{"id":"EUVD-2023-0201","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.","status":"published","published":"2023-06-30T00:00:00Z","modified":"2024-11-26T19:58:33Z","updated_at":"2026-11-03T00:04:46.096988Z"}],"ghsa":[{"id":"GHSA-v4f4-23wc-99mh","title":"pipreqs vulnerable to Dependency Confusion","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.","status":"published","published":"2023-06-30T21:30:26Z","modified":"2024-10-11T21:25:17Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":9.3,"vector":"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","level":"critical"}],"cwes":["CWE-427"],"updated_at":"2026-11-02T14:38:10.696798Z"}],"nvd":[{"id":"CVE-2023-31543","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.","status":"published","published":"2023-06-30T20:15:09.477Z","modified":"2026-06-17T05:57:09.227Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-427"],"updated_at":"2026-11-02T14:08:14.715708Z"}],"osv":[{"id":"GHSA-v4f4-23wc-99mh","title":"pipreqs vulnerable to Dependency Confusion","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.","status":"published","published":"2023-06-30T21:30:26Z","modified":"2024-10-14T18:48:38.278705Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":9.3,"vector":"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","level":"critical"}],"cwes":["CWE-427"],"updated_at":"2026-11-02T15:46:56.639206Z"},{"id":"CVE-2023-31543","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.","status":"published","published":"2023-06-30T00:00:00Z","modified":"2026-10-28T02:31:11.141351856Z","updated_at":"2026-11-02T15:44:31.790231Z"},{"id":"openSUSE-SU-2024:13041-1","title":"python310-pipreqs-0.4.13-1.1 on GA media","description":"These are all security issues fixed in the python310-pipreqs-0.4.13-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2025-05-07T18:14:56.186719Z","updated_at":"2026-11-02T16:58:36.025801Z"},{"id":"openSUSE-SU-2026:12026-1","title":"python313-pipreqs-0.5.0-2.2 on GA media","description":"These are all security issues fixed in the python313-pipreqs-0.5.0-2.2 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2026-10-04T00:00:00Z","modified":"2026-10-05T10:15:51.927264184Z","updated_at":"2026-11-02T16:58:40.245664Z"},{"id":"PYSEC-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.","status":"published","published":"2023-06-30T20:15:00Z","modified":"2026-06-10T17:02:29.025319375Z","updated_at":"2026-11-02T15:52:53.837392Z"}]}}
