{"id":"CVE-2023-5752","published":"2023-10-24T20:56:05Z","modified":"2025-11-03T17:31:06Z","title":"Mercurial configuration injectable in repo revision when installing via pip","vendor":"Pip maintainers","product":"pip","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00502,"percentile":0.43877,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/pypa/pip/pull/12306","tags":["patch"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/F4PL35U6X4VVHZ5ILJU3PWUWN7H7LZXL/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YBSB3SUPQ3VIFYUMHPO3MEQI4BJAXKCZ/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KFC2SPFG5FLCZBYY2K3T5MFW2D22NG6E/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/622OZXWG72ISQPLM5Y57YCVIMWHD4C3U/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/65UKKF5LBHEFDCUSPBHUN4IHYX7SRMHH/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FXUVMJM25PUAZRQZBF54OFVKTY3MINPW/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00028.html","tags":[]}],"priority":{"score":12.6,"factors":[{"name":"EPSS percentile","points":8.78},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"pip-maintainers","affectedVersions":[{"vendor":"Pip maintainers","product":"pip","versions":["all versions"]}],"fixedVersions":[{"vendor":"Pip maintainers","product":"pip","versions":["23.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-08T13:38:11.134953Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pip","vulnerableRanges":["<23.3"],"patched":["23.3"],"from":["GHSA-mq26-g339-26xf","PYSEC-2023-228"],"provenance":"source"}],"euvd":{"id":"EUVD-2023-0200","exploited":false,"provenance":"source"}}