{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-20225 in the wild and no public exploit code.","fix":"Change a configuration setting.","what":"CVE-2018-20225 is a high-severity vulnerability in n/a, published on 8 May 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2018-20225 and fix it if it is affected.\n\nWhat it is: CVE-2018-20225 is a high-severity vulnerability in n/a, published on 8 May 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2018-20225 in the wild and no public exploit code.\n\nAffected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2018-20225/ (Markdown: https://insights.sbomify.com/CVE-2018-20225/index.md)","id":"CVE-2018-20225","markdown":"https://insights.sbomify.com/CVE-2018-20225/index.md","name":"CVE-2018-20225","record":{"aliases":["GHSA-7p5p-7qq5-cc86","MINI-4fr4-36h6-gcc5","ROOT-OS-DEBIAN-12-CVE-2018-20225","UBUNTU-CVE-2018-20225"],"analysis":{"component_type":"developer_tool","fix_type":"configuration_change","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Python package installer","requires_auth":"none","summary":"Attackers can hijack private package installations via public indexes when using --extra-index-url, leading to arbitrary code execution.","user_interaction":"required","vuln_class":"supply_chain"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"pip","vendor":"pypa"}],"cvss":{"score":7.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"An issue was discovered in pip (all versions) because it installs the version with the highest version number, even if the user had intended to obtain a private package from a private index. This only affects use of the --extra-index-url option, and exploitation requires that the package does not already exist in the public index (and thus the attacker can put the package there with an arbitrary version number). NOTE: it has been reported that this is intended functionality and the user is responsible for using --extra-index-url securely","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2025-12-05","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-12-05T22:57:36Z","kind":"github_poc","ref":"https://github.com/brabster/cve-2018-20225","stars":0,"title":"Demonstrating CVE-2018-20225"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Supply chain in n/a","id":"CVE-2018-20225","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"supply_chain","year":"2018"},"n_packages":0,"n_references":4,"next":{"headline":"An organization administrator can add a super administrator in THEHIVE PROJECT Cortex before 2.1.3 due to the lack of overriding the Role.toString method.","id":"CVE-2018-20226"},"packages":[],"prev":{"headline":"XML external entity in n/a","id":"CVE-2018-20222"},"products":["n/a"],"published":"2020-05-08","related":[{"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":5.5,"headline":"Mercurial configuration injectable in repo revision when installing via pip","id":"CVE-2023-5752","kev_date_added":null,"published":"2023-10-24"},{"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":"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-15","vendors":["n/a"]},"summary":"Attackers can hijack private package installations via public indexes when using --extra-index-url, leading to arbitrary code execution.","url":"https://insights.sbomify.com/CVE-2018-20225/"}