{"answers":{"affected":"3 open source packages ship an affected version, including pip. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-5752 in the wild and no public exploit code.","fix":"Upgrade pip to 23.3 or later.","what":"CVE-2023-5752 is a medium-severity command injection vulnerability in pip, published on 24 Oct 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-5752 and fix it if it is affected.\n\nWhat it is: CVE-2023-5752 is a medium-severity command injection vulnerability in pip, published on 24 Oct 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-5752 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pip (PyPI): affected all versions; fixed in 23.3\n- pip (PyPI): affected all versions; fixed in 23.3\n- pip (PyPI): affected all versions; fixed in 23.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-5752/ (Markdown: https://insights.sbomify.com/CVE-2023-5752/index.md)","id":"CVE-2023-5752","markdown":"https://insights.sbomify.com/CVE-2023-5752/index.md","name":"CVE-2023-5752","record":{"aliases":["AZL-39958","AZL-60006","DEBIAN-CVE-2023-5752","ECHO-1342-c991-4c68","GHSA-mq26-g339-26xf","MGASA-2025-0055","MINI-4xrg-28vr-6946","PYSEC-2023-228","ROOT-APP-PYPI-CVE-2023-5752","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"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python package installer","requires_auth":"low_privilege","summary":"Attackers can inject arbitrary Mercurial configuration options during pip installation from VCS URLs, potentially leading to code execution.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PSF","cpe":[{"product":"pip","vendor":"pypa"}],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"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.","ecosystems":["PyPI","SUSE:Linux Enterprise Module for Python 3 15 SP4","SUSE:Linux Enterprise Module for Python 3 15 SP5","SUSE:Linux Enterprise Module for Python 3 15 SP6","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","openSUSE:Leap 15.4","openSUSE:Leap 15.5","openSUSE:Leap 15.6"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Mercurial configuration injectable in repo revision when installing via pip","id":"CVE-2023-5752","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2023"},"n_packages":13,"n_references":7,"next":{"headline":"Potential buffer overflow vulnerabilities in the Zephyr Bluetooth subsystem","id":"CVE-2023-5753"},"packages":[{"ecosystem":"PyPI","fixed":["23.3"],"introduced":["0"],"last_affected":[],"package":"pip","purl":null,"source":"GHSA-mq26-g339-26xf"},{"ecosystem":"PyPI","fixed":["23.3"],"introduced":["0"],"last_affected":[],"package":"pip","purl":"pkg:pypi/pip","source":"GHSA-mq26-g339-26xf"},{"ecosystem":"PyPI","fixed":["23.3"],"introduced":["0"],"last_affected":[],"package":"pip","purl":"pkg:pypi/pip","source":"PYSEC-2023-228"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP4","fixed":["22.3.1-150400.17.12.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/suse/python-pip\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP4","source":"SUSE-SU-2023:4988-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP5","fixed":["22.3.1-150400.17.12.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/suse/python-pip\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP5","source":"SUSE-SU-2023:4988-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP6","fixed":["23.2.1-150600.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python312-pip","purl":"pkg:rpm/suse/python312-pip\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP6","source":"SUSE-SU-2024:3156-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["10.0.1-13.14.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/suse/python-pip\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2023:4987-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["20.2.4-8.15.1"],"introduced":["0"],"last_affected":[],"package":"python36-pip","purl":"pkg:rpm/suse/python36-pip\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2024:0892-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["10.0.1-13.14.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/suse/python-pip\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2023:4987-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["20.2.4-8.15.1"],"introduced":["0"],"last_affected":[],"package":"python36-pip","purl":"pkg:rpm/suse/python36-pip\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2024:0892-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["22.3.1-150400.17.12.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/opensuse/python-pip\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:4988-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["22.3.1-150400.17.12.1"],"introduced":["0"],"last_affected":[],"package":"python-pip","purl":"pkg:rpm/opensuse/python-pip\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2023:4988-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["23.2.1-150600.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python312-pip","purl":"pkg:rpm/opensuse/python312-pip\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:3156-1"}],"prev":{"headline":"CODESYS: Development system prone to DoS through exposure of resource to wrong sphere","id":"CVE-2023-5751"},"products":["pip"],"published":"2023-10-24","related":[{"cvss_score":7.8,"headline":"Supply chain in n/a","id":"CVE-2018-20225","kev_date_added":null,"published":"2020-05-08"},{"cvss_score":6.8,"headline":"Improper Input Validation in pip","id":"CVE-2013-1629","kev_date_added":null,"published":"2013-08-06"},{"cvss_score":5.6,"headline":"pip absolute path traversal during download from malicious package indexes","id":"CVE-2026-13346","kev_date_added":null,"published":"2026-07-29"},{"cvss_score":4.1,"headline":"pip can extract console_scripts and gui_scripts outside installation directory","id":"CVE-2026-8643","kev_date_added":null,"published":"2026-06-01"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["Pip maintainers"]},"summary":"Attackers can inject arbitrary Mercurial configuration options during pip installation from VCS URLs, potentially leading to code execution.","url":"https://insights.sbomify.com/CVE-2023-5752/"}