LiveActive security incident?Get immediate response
CVE Record

CVE-2018-20225: An issue was discovered in pip (all versions) because it installs the version with the highest version numb...

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

HighCVSS 7.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This is a Python package installation risk tied to pip’s --extra-index-url behavior. If a build expects a private package name that is absent from the public index, an attacker could publish that name publicly with a higher version number and have pip select it. The CVE includes a qualification that this may be intended functionality requiring secure user configuration.

Executive priority

Treat this as a supply-chain hygiene issue for Python environments, not evidence of an emergency breach. Prioritize teams that build or deploy software from private Python packages, especially CI and release pipelines.

Technical view

pip chooses the highest version across configured indexes when --extra-index-url is used. The reported condition requires the target package to be absent from the public index, enabling dependency confusion or package substitution by a higher-version public package. The record says all pip versions but lists nonspecific affected product metadata, and notes secure --extra-index-url use is the user’s responsibility.

Likely exposure

Exposure is most likely in Python build, CI, deployment, or developer environments that install private packages using --extra-index-url and names that could be claimed on the public package index.

Exploitation context

The source bundle does not show CISA KEV listing or active exploitation evidence. Exploitation requires user-triggered package installation and a package name not already present publicly, allowing an attacker to publish a higher-version package under that name.

Researcher notes

The record’s affected metadata is weak and includes a dispute-style note about intended behavior. Focus analysis on resolver configuration, package source trust boundaries, and dependency confusion exposure rather than assuming a patched product vulnerability.

Mitigation direction

  • Inventory all uses of pip --extra-index-url in builds and developer documentation.
  • Check pip and Python packaging vendor guidance for secure private index configuration.
  • Avoid relying on --extra-index-url for private-only package names when safer configuration is available.
  • Reserve or otherwise control private package names on public indexes where feasible.
  • Pin and review dependencies used in CI, release, and production build pipelines.

Validation and detection

  • Search repositories, CI configs, Dockerfiles, and deployment scripts for --extra-index-url usage.
  • Identify private package names referenced through extra indexes.
  • Check whether those names are absent or uncontrolled on the public package index.
  • Review build logs for unexpected public-index resolution of private dependencies.
  • Confirm dependency lockfiles or pinned requirements match approved package sources.
Prepared
Confidence
medium
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-20: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2018-20225 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
5Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H1.85.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.8High
CVSS 3.1 vector shape for CVE-2018-20225Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.