PyVista CVE-2025-61774
CRITICALAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify unpublished dependency name in build files
-
DeliveryPublish malicious higher-version package to PyPI
-
ExploitVictim builds devcontainer or slim Docker image
-
Executionpip resolves PyPI first, installs attacker package
-
ImpactCode executes, RCE in build/CI environment
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires two concrete conditions: (1) an attacker registers, on public PyPI, a package using the exact name referenced via --extra-index-url in PyVista's build artifacts but absent from PyPI, with a higher version than the legitimate external-index copy; and (2) a victim builds PyVista's development container (.devcontainer/offscreen/oncreatecommand.sh) or the slim Docker image (docker/slim.Dockerfile), both of which invoke pip with --extra-index-url. Because pip checks the PyPI index before the external index, the attacker's higher-version package is preferentially resolved and its code runs during install. Limiting factors that reduce realistic risk: this affects only those who build these specific developer/CI images - not ordinary users who |
| Impact | The CVSS 4.0 base score of 9.3 (Critical) reflects a network vector with low complexity, no privileges and no user interaction (AV:N/AC:L/PR:N/UI:N) plus full VC:H/VI:H/VA:H impact - in isolation this looks like a top-priority RCE. However, the real-world signals temper this sharply: EPSS is only 0.65% (50th percentile), there is no CISA KEV listing, and no public exploit was identified at time of analysis. The vulnerability is a dependency-confusion / supply-chain issue (CWE-94), not a directly reachable network service flaw: exploitation requires an attacker to pre-register a specific internal package name (absent from PyPI) with a higher version on PyPI AND a victim to build PyVista's development container (.devcontainer/offscreen/oncreatecommand.sh) or slim Docker image (docker/slim.Dockerfile), which invoke pip with --extra-index-url. This is a build/CI-time exposure affecting contributors and image-builders, not end users who simply |
| Exploit ScenarioDerived | An attacker identifies the internal package name that PyVista's Docker/devcontainer build scripts fetch via --extra-index-url but which is not published on public PyPI, then uploads a malicious package of that same name with a higher version number to PyPI. When a developer or CI pipeline builds PyVista's devcontainer or slim Docker image, pip (which checks PyPI before the external index) resolves and installs the attacker's package and executes its code, yielding remote code execution in the build environment. No public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 19, 2026
Dependency confusion in PyVista 0.46.3 allows an unauthenticated remote attacker to achieve code execution during builder/CI image construction by publishing a higher-versioned package to public PyPI under a name that PyVista's build scripts expect only from a secondary index. The vulnerable code paths are the offscreen devcontainer setup script and the slim Dockerfile, both of which pass --extra-index-url to pip; because pip consults PyPI first, an attacker-supplied package with a higher version wins resolution and executes at install time. Exposure is limited to developers and CI pipelines that actually build these specific images - ordinary pip install pyvista users are not affected - and exploitation requires the attacker to guess the unpublished internal package name and win on version precedence. No public exploit code was identified at time of analysis, and EPSS is low at 0.65% (50th percentile), though the vendor advisory notes no released patched version at publication.
RemediationAI
Vendor-released patch status: no patched version was available at time of publication, and the one commit referenced in the advisory (aabfb3db2b0d4980de9e94e66272240efba4ed95) addresses CLI argument parsing rather than pip index configuration, so it should not be relied on as the fix; track GHSA-xr7f-qcjc-63rv (https://github.com/pyvista/pyvista/security/advisories/GHSA-xr7f-qcjc-63rv) for the patched release. Until then, remediation is operational. First, edit .devcontainer/offscreen/oncreatecommand.sh and docker/slim.Dockerfile to replace --extra-index-url with a single --index-url pointing at a trusted private mirror that proxies PyPI, which restores authoritative ordering - the trade-off is that any package genuinely hosted only on the removed external index will fail to resolve until it is mirrored internally. Second, add a fully pinned requirements.txt with hashes and install via pip install --require-hashes, so a substituted package is rejected regardless of version - the cost is ongoing maintenance of pins when legitimate dependencies update. Third, defensively register the missing package name on public PyPI (or reserve it in a scoped namespace) so it cannot be squatted, accepting that the placeholder must be kept current. Fourth, wrap pip invocations with PIP_NO_INDEX/PIP_INDEX_URL environment overrides or block outbound access to pypi.org from build agents and route through an internal proxy - this breaks any workflow that legitimately needs upstream PyPI, so whitelist the proxy instead. Note that these mitigations matter only for hosts that build the affected devcontainer or slim image; patching or rebuilding those definitions is unnecessary for run-time consumers of the PyVista library.
Affected ProductsAI
PyVista (PyVista Project) version 0.46.3 is the affected release per the GitHub security advisory GHSA-xr7f-qcjc-63rv, but the vulnerable surface is narrow: only the repository's development/CI build assets are affected, specifically the offscreen devcontainer provisioning script .devcontainer/offscreen/oncreatecommand.sh (line 4) and docker/slim.Dockerfile (line 13), both of which run pip with --extra-index-url. No CPE strings were provided in the source data. Systems that merely install PyVista as a library from PyPI, and applications that import pyvista at runtime, are not in scope of this issue - the risk attaches to whoever builds or rebuilds these container definitions, including forks and downstream projects that copied them. Consult https://github.com/pyvista/pyvista/security/advisories/GHSA-xr7f-qcjc-63rv for the authoritative affected-artifact list and any subsequent version guidance.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PyVista is a Python library providing 3D plotting and mesh analysis on top of the Visualization Toolkit (VTK). The flaw is a classic dependency-confusion pattern rooted in pip's index resolution semantics: when --extra-index-url is supplied, pip does not treat the primary index as authoritative - it aggregates candidates from all configured indexes and selects the highest version that satisfies the requirement. Two artifacts in the PyVista repository (.devcontainer/offscreen/oncreatecommand.sh line 4 and docker/slim.Dockerfile line 13) invoke pip with --extra-index-url and reference at least one package name that does not exist on public PyPI. That name was presumably meant to resolve from a private or external index, but nothing prevents a third party from registering it on PyPI; a submission with a version number higher than the legitimate copy will be preferred, and its setup/installation code runs with the build user's privileges. The record is classified as CWE-94 (Improper Control of Generation of Code), though the underlying weakness is more precisely an untrusted-search-path / supply-chain substitution issue (CWE-829 family); either way, the injection occurs at package-install time rather than through any PyVista runtime parsing path. Notably, the referenced upstream commit aabfb3db2b0d4980de9e94e66272240efba4ed95 modifies the pyvista CLI argument parser (__main__.py, _plot.py, report.py) and does not appear to touch the pip index configuration, so it should not be treated as the dependency-confusion fix. No CPE identifiers were supplied, so version scoping relies on the vendor advisory.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Attacker delivers the payload remotely via public PyPI (AV:N) with automatic version-precedence resolution (AC:L, PR:N, UI:N), and successful install yields full code execution on the build host (C:H/I:H/A:H, S:U).
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
PyVista provides 3D plotting and mesh analysis through an interface for the Visualization Toolkit (VTK). Version 0.46.3 of the PyVista Project is vulnerable to remote code execution via dependency confusion. Two pieces of code use--extra-index-url. But when --extra-index-url is used, pip always checks for the PyPI index first, and then the external index. One package listed in the code is not published in PyPI. If an attacker publishes a package with higher version in PyPI, the malicious code from the attacker controlled package may be pulled, leading to remote code execution and a supply chain attack. As of time of publication, a patched version is unavailable.
Executive ViewAI
PyVista 0.46.3 contains a critical dependency confusion vulnerability that can lead to code execution during the construction of specific developer and CI/CD images (offscreen devcontainer and slim Dockerfile), potentially compromising build integrity and exposing sensitive pipeline credentials. Only teams that build these custom images are affected-ordinary users installing PyVista via pip are not at risk-but leadership should prioritize remediation because a compromised CI pipeline could enable supply chain attacks and lateral movement into production environments.
No vendor-released patch identified at time of analysis. Interim mitigations: remove --extra-index-url from pip invocations and use only an authenticated private index; pin all package versions with hashes; avoid building the affected devcontainer and slim Dockerfile until patched; restrict CI network egress; monitor PyPI for suspicious packages; rotate CI secrets if compromise suspected.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
NVD
CVE.org
EPSS
GitHub
Exploit-DB