CVE-2025-61774: PyVista has Dependency Confusion Vulnerability in that leads to RCE
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-61774?
CVE-2025-61774 is rated as a critical vulnerability due to its potential for remote code execution.
How do I fix CVE-2025-61774?
To fix CVE-2025-61774, update PyVista to the latest version that addresses this vulnerability.
What impact does CVE-2025-61774 have on PyVista users?
CVE-2025-61774 allows attackers to execute arbitrary code remotely, compromising the security of PyVista installations.
Is CVE-2025-61774 easy to exploit?
Exploitation of CVE-2025-61774 can be relatively straightforward for an attacker familiar with dependency confusion techniques.
Which versions of PyVista are affected by CVE-2025-61774?
CVE-2025-61774 affects PyVista version 0.46.3 and earlier versions.