Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-61774

CVE-2025-61774: PyVista Dependency Confusion RCE Flaw

CVE-2025-61774 is a remote code execution vulnerability in PyVista 0.46.3 caused by dependency confusion in pip's --extra-index-url configuration, allowing supply chain attacks. This article covers technical details, impact, and mitigation.

Published: April 1, 2026

CVE-2025-61774 Overview

CVE-2025-61774 is a critical remote code execution vulnerability affecting PyVista, a popular 3D plotting and mesh analysis library that provides an interface for the Visualization Toolkit (VTK). Version 0.46.3 of the PyVista Project is vulnerable to dependency confusion, a supply chain attack vector that allows attackers to execute arbitrary code by exploiting misconfigurations in package installation.

The vulnerability stems from the use of --extra-index-url in pip installation commands within the project's build scripts. When this flag is used, pip checks PyPI first before consulting the external index. An attacker can exploit this behavior by publishing a malicious package with a higher version number on PyPI for a package name that exists only on the private/external index, causing pip to pull the attacker-controlled package instead.

Critical Impact

This vulnerability enables remote code execution through supply chain compromise, potentially affecting all developers and CI/CD pipelines that build PyVista from source or use its development containers.

Affected Products

  • PyVista version 0.46.3
  • PyVista development containers using oncreatecommand.sh
  • PyVista Docker images built from slim.Dockerfile

Discovery Timeline

  • 2025-10-06 - CVE-2025-61774 published to NVD
  • 2025-10-08 - Last updated in NVD database

Technical Details for CVE-2025-61774

Vulnerability Analysis

This vulnerability is classified as CWE-94 (Improper Control of Generation of Code), specifically manifesting as a dependency confusion attack. The root issue lies in how pip resolves package dependencies when multiple package indexes are configured.

In PyVista's build infrastructure, the --extra-index-url flag is used to specify an additional package index. However, this configuration creates a security gap: pip will check PyPI (the public Python Package Index) first, before checking the specified extra index URL. If an internal or private package name is not registered on PyPI, an attacker can register that name on PyPI with a high version number.

When pip encounters this situation, it will prefer the package from PyPI (due to the higher version number) over the intended package from the private index, resulting in the installation and execution of attacker-controlled code during the build process.

Root Cause

The vulnerability originates from insecure pip configuration in two locations within the PyVista repository:

  1. The development container setup script at .devcontainer/offscreen/oncreatecommand.sh (line 4)
  2. The Docker build file at docker/slim.Dockerfile (line 13)

Both files use --extra-index-url without proper safeguards. The secure alternative would be to use --index-url to completely replace the default PyPI index, or to use hash verification and pinned versions. Additionally, packages referenced in these scripts were not registered on PyPI, leaving the namespace open for malicious registration.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker exploits this vulnerability through the following mechanism:

  1. The attacker identifies an unpublished package name used in PyVista's build scripts that references a private package index
  2. The attacker creates a malicious Python package with the same name and registers it on PyPI with a high version number (e.g., 999.0.0)
  3. When a developer or CI/CD pipeline builds PyVista, pip installs the malicious package from PyPI
  4. Malicious code in the package's setup.py or package initialization executes during installation or import

The attack is particularly dangerous because it targets the software supply chain, potentially compromising any system that builds or installs the affected PyVista version.

Detection Methods for CVE-2025-61774

Indicators of Compromise

  • Unexpected network connections to unknown package hosting servers during pip install operations
  • Unusual packages appearing in pip list output that were not explicitly installed
  • Modified or unexpected files in Python site-packages directories after PyVista installation
  • Anomalous process execution spawned from Python pip install or package import operations

Detection Strategies

  • Audit pip installation logs for packages sourced from unexpected indexes during PyVista builds
  • Monitor for new packages registered on PyPI that match internal or private package names used in your organization
  • Implement software composition analysis (SCA) tools to verify package integrity and provenance
  • Review build artifacts and Docker images for unauthorized package installations

Monitoring Recommendations

  • Enable verbose pip logging (pip install -v) and archive logs for security review
  • Implement network monitoring to detect unexpected outbound connections during build processes
  • Configure alerts for changes to Python package installations in production environments
  • Use package lockfiles with hash verification to detect unexpected package substitutions

How to Mitigate CVE-2025-61774

Immediate Actions Required

  • Avoid using PyVista version 0.46.3 development containers and Docker builds until a patch is available
  • Audit all pip configurations in your projects for use of --extra-index-url without proper safeguards
  • Register placeholder packages on PyPI for any internal package names to prevent namespace hijacking
  • Use --index-url instead of --extra-index-url when possible to avoid dual-index resolution issues

Patch Information

As of the publication date, a patched version of PyVista is unavailable. The PyVista project has acknowledged the vulnerability in their GitHub Security Advisory. A commit addressing this issue has been made to the repository.

Organizations using PyVista should monitor the official repository for security updates and apply patches immediately when released.

Workarounds

  • Replace --extra-index-url with --index-url in build scripts to prevent PyPI fallback behavior
  • Implement hash verification in requirements.txt using the --require-hashes flag
  • Use a private PyPI mirror or proxy that filters external packages
  • Pin exact package versions and verify checksums before installation
bash
# Secure pip configuration example
# Use --index-url instead of --extra-index-url to prevent dependency confusion
pip install --index-url https://your-private-index.example.com/simple/ \
    --require-hashes \
    -r requirements.txt

# Alternative: Use pip.conf to set trusted index
cat > ~/.pip/pip.conf << EOF
[global]
index-url = https://your-private-index.example.com/simple/
trusted-host = your-private-index.example.com
EOF

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPyvista

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.45%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub PoC Repository

  • GitHub Dockerfile Example

  • GitHub Commit History

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2025-11419: Keycloak TLS DoS Vulnerability

  • CVE-2025-13947: WebKitGTK Information Disclosure Flaw

  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English