{"id":"CVE-2023-5752","summary":"Mercurial configuration injectable in repo revision when installing via pip","details":"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.","aliases":["GHSA-mq26-g339-26xf","PYSEC-2023-228"],"modified":"2026-05-18T05:57:12.942220357Z","published":"2023-10-24T20:56:05.469Z","related":["CGA-r5v2-rqm7-cv46","SUSE-SU-2023:4987-1","SUSE-SU-2023:4988-1","SUSE-SU-2024:0892-1","SUSE-SU-2024:3156-1","openSUSE-SU-2024:13454-1"],"database_specific":{"cna_assigner":"PSF","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5752.json","cwe_ids":["CWE-77"]},"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00028.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/622OZXWG72ISQPLM5Y57YCVIMWHD4C3U/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/65UKKF5LBHEFDCUSPBHUN4IHYX7SRMHH/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FXUVMJM25PUAZRQZBF54OFVKTY3MINPW/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KFC2SPFG5FLCZBYY2K3T5MFW2D22NG6E/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YBSB3SUPQ3VIFYUMHPO3MEQI4BJAXKCZ/"},{"type":"WEB","url":"https://pypi.org"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5752.json"},{"type":"ADVISORY","url":"https://mail.python.org/archives/list/security-announce@python.org/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5752"},{"type":"FIX","url":"https://github.com/pypa/pip/pull/12306"},{"type":"PACKAGE","url":"https://github.com/pypa/pip"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pypa/pip","events":[{"introduced":"0"},{"fixed":"e3dc91dad93a020b3034a87ebe59027f63370fe8"}],"database_specific":{"cpe":"cpe:2.3:a:pypa:pip:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"23.3"}],"source":"CPE_FIELD"}}],"versions":["21.3","21.0","20.0.2","19.1.1","19.0.2","19.0","18.1","18.0","10.0.1","10.0.0","9.0.1","9.0.0","6.0","1.4rc2","1.4rc1","1.2","1.0","0.8.3","0.8.2","0.8","0.7.1","0.7","0.6","0.3"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-5752.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"}]}