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-8502

CVE-2024-8502: AgentScope Deserialization RCE Vulnerability

CVE-2024-8502 is a deserialization remote code execution flaw in modelscope/agentscope v0.0.6a3 that enables attackers to execute arbitrary commands. This article covers technical details, affected versions, and mitigation.

Published: April 15, 2026

CVE-2024-8502 Overview

A critical insecure deserialization vulnerability exists in the RpcAgentServerLauncher class of modelscope/agentscope v0.0.6a3. This vulnerability allows remote code execution (RCE) through the deserialization of untrusted data using the dill library. The flaw is present in the AgentServerServicer.create_agent method, where serialized input is processed using dill.loads, enabling attackers to execute arbitrary commands on the server without authentication.

Critical Impact

Attackers can achieve complete server compromise through unauthenticated remote code execution by sending malicious serialized payloads to the AgentScope RPC server.

Affected Products

  • modelscope/agentscope v0.0.6a3
  • AgentScope RPC Server components using RpcAgentServerLauncher
  • Systems utilizing AgentServerServicer.create_agent method with untrusted input

Discovery Timeline

  • 2025-03-20 - CVE CVE-2024-8502 published to NVD
  • 2025-03-20 - Last updated in NVD database

Technical Details for CVE-2024-8502

Vulnerability Analysis

This vulnerability is classified as CWE-502 (Deserialization of Untrusted Data). The root issue lies in the AgentScope framework's handling of serialized data within its RPC (Remote Procedure Call) server implementation. When processing agent creation requests, the AgentServerServicer.create_agent method deserializes incoming data using Python's dill library without proper validation or sanitization.

The dill library extends Python's pickle module with additional serialization capabilities, but inherits the same fundamental security concern: deserialized data can include arbitrary Python objects that execute code during the deserialization process. By crafting a malicious payload that includes code execution primitives, an attacker can trigger arbitrary command execution on the target server when the payload is processed by dill.loads.

This attack requires no authentication and can be executed remotely over the network, making it particularly dangerous for exposed AgentScope deployments.

Root Cause

The vulnerability stems from the use of dill.loads() to deserialize untrusted input in the AgentServerServicer.create_agent method. The dill library, like pickle, allows arbitrary Python object serialization including callable objects and code execution primitives. When untrusted data is passed to dill.loads(), an attacker can craft a serialized payload containing malicious code that executes during the deserialization process.

The fundamental issue is trusting client-supplied serialized data without implementing proper input validation, sanitization, or using a safe serialization format like JSON for agent creation parameters.

Attack Vector

The attack vector is network-based with no authentication required. An attacker can send a specially crafted RPC request to the AgentScope server containing a malicious serialized payload. When the create_agent method processes this request and calls dill.loads() on the attacker-controlled data, the malicious payload executes arbitrary code with the privileges of the AgentScope server process.

The vulnerability manifests in the AgentServerServicer.create_agent method where user-controlled serialized data is passed directly to dill.loads(). For technical details on the vulnerability mechanics, refer to the Huntr Bug Bounty Submission.

Detection Methods for CVE-2024-8502

Indicators of Compromise

  • Unexpected network connections from the AgentScope server to external destinations
  • Unusual process spawning by the AgentScope server process
  • Suspicious RPC requests to the agent creation endpoint with abnormally large or encoded payloads
  • Anomalous system command execution traced back to the Python interpreter running AgentScope

Detection Strategies

  • Monitor network traffic to AgentScope RPC endpoints for unusual serialized payloads or unexpected request patterns
  • Implement application-level logging for all create_agent method invocations and analyze payload characteristics
  • Deploy intrusion detection rules to identify dill/pickle deserialization attack patterns in network traffic
  • Use runtime application security monitoring to detect unexpected code execution paths during deserialization

Monitoring Recommendations

  • Enable verbose logging for the AgentScope RPC server to capture all incoming agent creation requests
  • Monitor process behavior for the AgentScope server, alerting on child process spawning or network connections
  • Implement network segmentation to limit exposure of AgentScope RPC services
  • Review access logs for the RPC endpoints for signs of reconnaissance or exploitation attempts

How to Mitigate CVE-2024-8502

Immediate Actions Required

  • Restrict network access to AgentScope RPC services to trusted hosts only using firewall rules
  • Disable the RPC agent server functionality if not required for operations
  • Implement network segmentation to isolate AgentScope deployments from untrusted networks
  • Audit existing deployments for signs of compromise before applying fixes

Patch Information

At the time of publication, users should check the modelscope/agentscope GitHub repository for updated versions that address this vulnerability. The issue was reported through the Huntr Bug Bounty program. Users should upgrade to a patched version as soon as one becomes available from the vendor.

Workarounds

  • Implement network-level access controls to restrict RPC server access to trusted IP addresses only
  • Deploy a web application firewall (WAF) or reverse proxy to filter malicious serialized payloads
  • Consider replacing dill deserialization with a safer serialization format like JSON for agent parameters
  • Run the AgentScope server in a sandboxed environment with limited privileges to reduce impact of exploitation
bash
# Example: Restrict access to AgentScope RPC port using iptables
# Replace 12345 with actual RPC port and 10.0.0.0/8 with trusted network
iptables -A INPUT -p tcp --dport 12345 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 12345 -j DROP

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechModelscope

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.41%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/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
  • Huntr Bug Bounty Submission
  • Related CVEs
  • CVE-2026-6603: ModelScope AgentScope RCE Vulnerability

  • CVE-2026-2256: ModelScope ms-agent RCE Vulnerability

  • CVE-2024-48050: Modelscope Agentscope RCE Vulnerability

  • CVE-2026-6604: ModelScope AgentScope SSRF 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