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-2024-35198

CVE-2024-35198: PyTorch TorchServe Auth Bypass Vulnerability

CVE-2024-35198 is an authentication bypass flaw in PyTorch TorchServe that allows attackers to circumvent allowed_urls checks using path traversal sequences. This article covers technical details, affected versions, and mitigation.

Published: April 15, 2026

CVE-2024-35198 Overview

CVE-2024-35198 is a security bypass vulnerability in TorchServe, a flexible and easy-to-use tool for serving and scaling PyTorch models in production. The vulnerability allows attackers to bypass the allowed_urls configuration check by including path traversal characters such as .. in URLs. While TorchServe's security check fails to prevent malicious URLs, it does not stop the model from being downloaded into the model store. Once downloaded, the file can be referenced without providing a URL, effectively circumventing the security controls designed to restrict model sources.

Critical Impact

This vulnerability enables attackers to bypass URL validation controls, potentially allowing the download and execution of malicious PyTorch models from untrusted sources, leading to remote code execution in production ML inference environments.

Affected Products

  • PyTorch TorchServe versions prior to 0.11.0
  • Self-hosted TorchServe deployments with allowed_urls configuration
  • Note: Customers using PyTorch inference Deep Learning Containers (DLC) through Amazon SageMaker and EKS are not affected

Discovery Timeline

  • 2024-07-19 - CVE CVE-2024-35198 published to NVD
  • 2025-09-04 - Last updated in NVD database

Technical Details for CVE-2024-35198

Vulnerability Analysis

This vulnerability stems from insufficient URL validation in TorchServe's model download mechanism. The allowed_urls configuration is designed to restrict which external sources can be used to download models, providing a security boundary to prevent loading of untrusted or malicious model files. However, the validation logic fails to properly sanitize URLs containing path traversal sequences.

When a URL containing characters like .. is submitted, the initial security check may be bypassed, but the download operation proceeds successfully. The downloaded file is stored in the model store, and subsequent requests can reference this file directly without re-validation. This creates a persistent bypass of the security controls, as the malicious model remains accessible for inference operations.

The vulnerability is classified under CWE-706 (Use of Incorrectly-Resolved Name or Reference), indicating that the URL resolution process does not correctly handle path manipulation attempts, leading to security control bypass.

Root Cause

The root cause lies in the URL validation logic that checks against the allowed_urls whitelist. The validation fails to normalize or properly sanitize URLs before comparison, allowing path traversal characters to manipulate the URL in ways that bypass the security check while still resolving to the intended malicious target. The two-phase nature of the vulnerability—where downloads succeed despite failed validation—indicates a disconnect between the validation and download code paths.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker with access to the TorchServe management API can craft a malicious URL containing path traversal sequences such as .. to bypass the allowed_urls restrictions. The attack flow follows these steps:

  1. Attacker identifies a TorchServe instance with allowed_urls restrictions configured
  2. Attacker crafts a URL containing path traversal characters that bypasses validation but still resolves to a malicious model hosting location
  3. The model is downloaded into the model store despite the validation being intended to block it
  4. On subsequent requests, the attacker references the downloaded model directly, executing the malicious payload during inference

Since PyTorch models can contain arbitrary Python code executed during model loading and inference, successful exploitation can lead to remote code execution on the TorchServe host.

Detection Methods for CVE-2024-35198

Indicators of Compromise

  • Unexpected model files appearing in the TorchServe model store directory
  • Model download requests containing path traversal sequences (.., %2e%2e) in URLs
  • API requests to register models from URLs not in the allowed_urls configuration
  • Unusual outbound network connections from TorchServe to unexpected external hosts

Detection Strategies

  • Monitor TorchServe management API logs for model registration requests containing suspicious URL patterns
  • Implement network-level monitoring for outbound connections from TorchServe hosts to unknown or unauthorized endpoints
  • Deploy file integrity monitoring on the model store directory to detect unexpected model additions
  • Review audit logs for model registration events that don't match approved model sources

Monitoring Recommendations

  • Enable verbose logging on TorchServe management API endpoints
  • Configure network security groups or firewalls to log and alert on outbound connections from inference servers
  • Implement real-time alerting for any changes to the model store directory
  • Correlate model registration events with approved change management records

How to Mitigate CVE-2024-35198

Immediate Actions Required

  • Upgrade TorchServe to version 0.11.0 or later immediately
  • Audit the model store directory for any unexpected or unauthorized model files
  • Review management API access logs for suspicious model registration attempts
  • Restrict network access to the TorchServe management API to authorized administrators only

Patch Information

The PyTorch team has addressed this vulnerability in TorchServe release 0.11.0. The fix, implemented in PR #3082, validates URLs by rejecting those containing path traversal characters such as .. before initiating the download process. Users should upgrade to the latest TorchServe release to receive this security fix. Additional details are available in the GitHub Security Advisory.

Workarounds

  • There are no known workarounds for this vulnerability
  • The only recommended mitigation is upgrading to TorchServe version 0.11.0 or later
  • As a defense-in-depth measure, restrict network egress from TorchServe hosts to limit where models can be downloaded from
  • Implement strict network segmentation to limit access to the TorchServe management API

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechPytorch

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.18%

  • 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-706
  • Technical References
  • GitHub Release v0.11.0

  • GitHub Security Advisory
  • Vendor Resources
  • GitHub Pull Request
  • Related CVEs
  • CVE-2026-4538: PyTorch Deserialization Vulnerability

  • CVE-2026-24747: PyTorch weights_only RCE Vulnerability

  • CVE-2025-55551: PyTorch torch.linalg.lu DoS Vulnerability

  • CVE-2024-48063: PyTorch RemoteModule 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