### [CVE-2023-5752](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-5752) ![](https://img.shields.io/static/v1?label=Product&message=pip&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue) ![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-77%20Improper%20Neutralization%20of%20Special%20Elements%20used%20in%20a%20Command%20('Command%20Injection')&color=brighgreen) ### Description When installing a package from a Mercurial VCS URL (ie "pip install hg+...") with pip prior to v23.3, the specified Mercurial revision could be used to inject arbitrary configuration options to the "hg clone" call (ie "--config"). Controlling the Mercurial configuration can modify how and which repository is installed. This vulnerability does not affect users who aren't installing from Mercurial. ### POC #### Reference No PoCs from references. #### Github - https://github.com/Murken-0/docker-vulnerabilities - https://github.com/PaulZtx/docker_practice - https://github.com/Viselabs/zammad-google-cloud-docker - https://github.com/alex-grandson/docker-python-example - https://github.com/efrei-ADDA84/20200511 - https://github.com/egorvozhzhov/docker-test - https://github.com/jbugeja/test-repo - https://github.com/malinkamedok/devops_sandbox - https://github.com/mmbazm/device_api - https://github.com/nqrm/sdl_docker