{"schemaVersion":3,"id":"CVE-2018-20225","aliases":["UBUNTU-CVE-2018-20225","DEBIAN-CVE-2018-20225","CGA-88qh-x6m9-v75g","CGA-8g9x-p8cj-p743","CGA-9mjq-gwjw-jcrx","CGA-jj96-rcfc-x4ww","CGA-mm9w-2xhf-xfjg","CGA-vpm2-mrg6-82rr","CGA-8x49-p253-mmm8","CGA-hqhm-rp8r-7cfp"],"status":"published","duplicateOf":null,"title":null,"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","dates":{"published":"2020-05-08T17:29:12.000Z","modified":"2026-04-15T20:50:17.582Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true}]},"epss":{"probability":0.0178,"percentile":0.77952,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.04399999999999994,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01736},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01736,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01736,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01736,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01736,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01736,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01736,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01736,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01736,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01736,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0178,"percentile":0.77952}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01736,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01736,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01736,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0178,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0178,"percentile":0.77952}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"}],"affected":[{"vendor":"chainguard","product":"conda","name":"conda","label":"conda","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/conda","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"pulumi","name":"pulumi","label":"pulumi","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/pulumi","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3-pip","name":"py3-pip","label":"py3-pip","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3-pip","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.9-pip","name":"py3.9-pip","label":"py3.9-pip","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.9-pip","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"conda","name":"conda","label":"conda","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/conda","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"pulumi","name":"pulumi","label":"pulumi","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/pulumi","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"py3-pip","name":"py3-pip","label":"py3-pip","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/py3-pip","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"python-pip","name":"python-pip","label":"python-pip","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/python-pip","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python-pip","name":"python-pip","label":"python-pip","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python-pip","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":9,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://pip.pypa.io/en/stable/news/","label":"pip.pypa.io/en/stable/news/","hostname":"pip.pypa.io","tags":["X Refsource MISC","Release Notes","Vendor Advisory","REPORT","Advisory"]},{"url":"https://cowlicks.website/posts/arbitrary-code-execution-from-pips-extra-index-url.html","label":"cowlicks.website/posts/arbitrary-code-execution-from-pips-extra-index-url.html","hostname":"cowlicks.website","tags":["X Refsource MISC","Third Party Advisory","REPORT","Advisory"]},{"url":"https://lists.apache.org/thread.html/rb1adce798445facd032870d644eb39c4baaf9c4a7dd5477d12bb6ab2%40%3Cgithub.arrow.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST","WEB"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1835736","label":"bugzilla.redhat.com/show_bug.cgi?id=1835736","hostname":"bugzilla.redhat.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2018-20225","label":"ubuntu.com/security/CVE-2018-20225","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-20225","label":"www.cve.org/CVERecord?id=CVE-2018-20225","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-20225","label":"security-tracker.debian.org/tracker/CVE-2018-20225","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20225","label":"nvd.nist.gov/vuln/detail/CVE-2018-20225","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-33P6-5WQQ-R5F2","CGA-42HR-CM3W-4CM9","CGA-4F97-M8HR-66CR","CGA-9P5H-C2P6-VCJP","CGA-F6Q8-2G35-WHVH","CGA-JM85-8753-PJXH","CGA-M8V2-C2C5-24W8","CGA-MJQC-6W4R-494Q","CGA-PX95-G846-4RRQ","CGA-QC45-XWRJ-86W8","CGA-VFPC-G4P3-J9H4"]},"timeline":[{"kind":"published","date":"2020-05-08T17:29:12.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-04-15T20:50:17.582Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T00:22:44.465Z","stale":false,"partial":false}}