{"api_version":"1","generated_at":"2026-04-23T00:40:15+00:00","cve":"CVE-2023-5752","urls":{"html":"https://cve.report/CVE-2023-5752","api":"https://cve.report/api/cve/CVE-2023-5752.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-5752","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-5752"},"summary":{"title":"CVE-2023-5752","description":"When installing a package from a Mercurial VCS URL  (ie \"pip install \nhg+...\") with pip prior to v23.3, the specified Mercurial revision could\n be used to inject arbitrary configuration options to the \"hg clone\" \ncall (ie \"--config\"). Controlling the Mercurial configuration can modify\n how and which repository is installed. This vulnerability does not \naffect users who aren't installing from Mercurial.","state":"PUBLIC","assigner":"cna@python.org","published_at":"2023-10-25 18:17:00","updated_at":"2023-11-03 14:55:00"},"problem_types":["CWE-77"],"metrics":[],"references":[{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/","name":"https://mail.python.org/archives/list/security-announce@python.org/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/","refsource":"MISC","tags":[],"title":"Mailman 3 \n[CVE-2023-5752] Mercurial configuration injectable in repo revision when installing via pip - Security-announce - python.org","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/pypa/pip/pull/12306","name":"https://github.com/pypa/pip/pull/12306","refsource":"MISC","tags":[],"title":"Use `-r=...` instead of `-r ...` for VCS CLI by pradyunsg · Pull Request #12306 · pypa/pip · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-5752","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5752","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"5752","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"pypa","cpe5":"pip","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-5752","qid":"296106","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 64.157.2 Missing (CPUOCT2023)"},{"cve":"CVE-2023-5752","qid":"356760","title":"Amazon Linux Security Advisory for python-pip : ALAS2-2023-2349"},{"cve":"CVE-2023-5752","qid":"356910","title":"Amazon Linux Security Advisory for python-pip : ALAS2023-2023-442"},{"cve":"CVE-2023-5752","qid":"755545","title":"SUSE Enterprise Linux Security Update for python-pip (SUSE-SU-2023:4988-1)"},{"cve":"CVE-2023-5752","qid":"755546","title":"SUSE Enterprise Linux Security Update for python-pip (SUSE-SU-2023:4987-1)"},{"cve":"CVE-2023-5752","qid":"755569","title":"SUSE Enterprise Linux Security Update for python-pip (SUSE-SU-2023:4988-1)"},{"cve":"CVE-2023-5752","qid":"755570","title":"SUSE Enterprise Linux Security Update for python-pip (SUSE-SU-2023:4988-1)"},{"cve":"CVE-2023-5752","qid":"755571","title":"SUSE Enterprise Linux Security Update for python-pip (SUSE-SU-2023:4988-1)"},{"cve":"CVE-2023-5752","qid":"755572","title":"SUSE Enterprise Linux Security Update for python-pip (SUSE-SU-2023:4988-1)"},{"cve":"CVE-2023-5752","qid":"755573","title":"SUSE Enterprise Linux Security Update for python-pip (SUSE-SU-2023:4988-1)"},{"cve":"CVE-2023-5752","qid":"755574","title":"SUSE Enterprise Linux Security Update for python-pip (SUSE-SU-2023:4988-1)"},{"cve":"CVE-2023-5752","qid":"755575","title":"SUSE Enterprise Linux Security Update for python-pip (SUSE-SU-2023:4988-1)"},{"cve":"CVE-2023-5752","qid":"755580","title":"SUSE Enterprise Linux Security Update for python-pip (SUSE-SU-2023:4988-1)"},{"cve":"CVE-2023-5752","qid":"755980","title":"SUSE Enterprise Linux Security Update for python36-pip (SUSE-SU-2024:0892-1)"},{"cve":"CVE-2023-5752","qid":"995818","title":"Python (Pip) Security Update for pip (GHSA-mq26-g339-26xf)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-5752","ASSIGNER":"cna@python.org","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"When installing a package from a Mercurial VCS URL  (ie \"pip install \nhg+...\") with pip prior to v23.3, the specified Mercurial revision could\n be used to inject arbitrary configuration options to the \"hg clone\" \ncall (ie \"--config\"). Controlling the Mercurial configuration can modify\n how and which repository is installed. This vulnerability does not \naffect users who aren't installing from Mercurial.\n"}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')","cweId":"CWE-77"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"Pip maintainers","product":{"product_data":[{"product_name":"pip","version":{"version_data":[{"version_affected":"<","version_name":"0","version_value":"23.3"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/pypa/pip/pull/12306","refsource":"MISC","name":"https://github.com/pypa/pip/pull/12306"},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/","refsource":"MISC","name":"https://mail.python.org/archives/list/security-announce@python.org/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/"}]},"generator":{"engine":"Vulnogram 0.1.0-dev"},"source":{"discovery":"UNKNOWN"},"credits":[{"lang":"en","value":"Paul Gerste"}],"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","version":"3.1"}]}},"nvd":{"publishedDate":"2023-10-25 18:17:00","lastModifiedDate":"2023-11-03 14:55:00","problem_types":["CWE-77"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":3.3,"baseSeverity":"LOW"},"exploitabilityScore":1.8,"impactScore":1.4}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:pypa:pip:*:*:*:*:*:*:*:*","versionEndExcluding":"23.3","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}