The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-45146

CVE-2025-45146: Codefuse Modelcache RCE Vulnerability

CVE-2025-45146 is a deserialization RCE flaw in Codefuse Modelcache through v0.2.0 that enables attackers to execute arbitrary code via crafted data. This article covers technical details, affected versions, and mitigation.

Published: March 18, 2026

CVE-2025-45146 Overview

CVE-2025-45146 is a critical insecure deserialization vulnerability affecting ModelCache for LLM through version v0.2.0. The vulnerability exists in the /manager/data_manager.py component and allows remote attackers to execute arbitrary code by supplying specially crafted serialized data. This flaw poses a severe risk to organizations using ModelCache for caching Large Language Model (LLM) inference results, as it can lead to complete system compromise without requiring any authentication or user interaction.

Critical Impact

Remote attackers can achieve arbitrary code execution by exploiting insecure deserialization in the data manager component, potentially leading to full system compromise of LLM infrastructure.

Affected Products

  • Codefuse ModelCache versions through v0.2.0
  • All deployments utilizing the vulnerable data_manager.py component
  • LLM caching infrastructure leveraging ModelCache

Discovery Timeline

  • 2025-08-11 - CVE-2025-45146 published to NVD
  • 2025-10-17 - Last updated in NVD database

Technical Details for CVE-2025-45146

Vulnerability Analysis

This vulnerability is classified as CWE-502 (Deserialization of Untrusted Data). The flaw exists in how ModelCache handles serialized data through PyTorch's torch.load() function. When processing cached model data, the application deserializes input without proper validation, allowing attackers to inject malicious serialized objects that execute arbitrary code upon deserialization.

The vulnerability is particularly dangerous in LLM infrastructure contexts, where ModelCache serves as a caching layer between applications and language models. An attacker who can supply crafted data to the cache can achieve remote code execution on the server processing the deserialization operation.

Root Cause

The root cause lies in the unsafe use of Python's pickle-based deserialization through PyTorch's torch.load() function. The vulnerable code in data_manager.py processes serialized data without implementing the recommended weights_only=True parameter or other safeguards against arbitrary object instantiation. When torch.load() deserializes data, it can instantiate arbitrary Python objects specified in the serialized payload, including objects with __reduce__ methods that execute malicious commands.

Attack Vector

The attack is network-based with low complexity requirements. An attacker can exploit this vulnerability by:

  1. Crafting a malicious serialized payload containing a Python object with a __reduce__ method that executes arbitrary commands
  2. Submitting this crafted payload to the ModelCache service through the data manager interface
  3. The torch.load() function deserializes the payload, triggering code execution during object instantiation

No privileges or user interaction are required for exploitation. The attacker can gain the same privileges as the service running ModelCache, potentially leading to data exfiltration, lateral movement, or complete infrastructure compromise.

The vulnerability is particularly concerning because PyTorch's documentation explicitly warns that torch.load() uses pickle under the hood and should not be used with untrusted data. For detailed technical analysis of the vulnerable code paths, refer to the vulnerability research documentation and the vulnerable data_manager.py code.

Detection Methods for CVE-2025-45146

Indicators of Compromise

  • Unexpected process spawning from Python processes running ModelCache services
  • Suspicious outbound network connections from ModelCache server infrastructure
  • Anomalous file system modifications or creation of new files in ModelCache directories
  • Unusual CPU or memory consumption patterns during cache operations

Detection Strategies

  • Monitor for use of torch.load() with untrusted or external data sources in application logs
  • Implement network-level monitoring for suspicious payloads containing pickle magic bytes (\\x80\\x04\\x95 for protocol 4)
  • Deploy endpoint detection to identify reverse shell or command execution attempts originating from Python processes
  • Review cache storage for serialized objects with suspicious __reduce__ method implementations

Monitoring Recommendations

  • Enable verbose logging for ModelCache data manager operations
  • Implement file integrity monitoring on ModelCache installation directories
  • Configure alerting for any child process creation from the ModelCache service
  • Monitor network traffic from LLM infrastructure for unexpected egress connections

How to Mitigate CVE-2025-45146

Immediate Actions Required

  • Upgrade ModelCache to a patched version when available from Codefuse
  • Restrict network access to ModelCache services using firewall rules and network segmentation
  • Implement input validation to reject serialized data from untrusted sources
  • Consider disabling external cache data ingestion until a patch is applied

Patch Information

Organizations should monitor the Codefuse ModelCache repository for security updates addressing this vulnerability. The fix is expected to implement safe deserialization practices, potentially using torch.load() with weights_only=True as recommended in the PyTorch documentation.

Workarounds

  • Modify data_manager.py to use torch.load(file, weights_only=True) to prevent arbitrary code execution during deserialization
  • Implement allowlist-based validation of serialized object types before deserialization
  • Run ModelCache in an isolated container or sandbox environment to limit the impact of potential exploitation
  • Apply strict network access controls to limit exposure of ModelCache services
bash
# Network isolation example - restrict ModelCache access
# Configure firewall to allow only trusted internal hosts
iptables -A INPUT -p tcp --dport 8080 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 8080 -j DROP

# Run ModelCache in isolated container with limited capabilities
docker run --cap-drop=ALL --cap-add=NET_BIND_SERVICE \
    --read-only --tmpfs /tmp \
    --network=internal-only \
    modelcache:latest

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechCodefuse

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.43%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Technical References
  • GitHub CVE-2025-45146 Research

  • GitHub CodeFuse Data Manager Code

  • GitHub CodeFuse Factory Code

  • PyTorch Documentation for torch.load
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE 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