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

CVE-2025-49131: Fastgpt Sandbox RCE Vulnerability

CVE-2025-49131 is a remote code execution flaw in Fastgpt Sandbox that enables attackers to escape isolation and access arbitrary files. This article covers technical details, affected versions, impact, and mitigation.

Published: April 15, 2026

CVE-2025-49131 Overview

CVE-2025-49131 is a critical sandbox escape vulnerability affecting FastGPT, an open-source platform for building, deploying, and operating AI-driven workflows and conversational agents. The vulnerability exists in the fastgpt-sandbox container, a specialized isolated environment designed to safely execute user-submitted or dynamically generated code. Due to insufficient isolation and inadequate restrictions on code execution through overly permissive syscalls, attackers can escape the intended sandbox boundaries.

Critical Impact

Attackers exploiting this vulnerability can read and overwrite arbitrary files on the host system and bypass Python module import restrictions, potentially leading to complete system compromise.

Affected Products

  • FastGPT versions prior to 4.9.11
  • fastgpt-sandbox container (all versions before the security patch)
  • FastGPT deployments utilizing the sandbox for code execution

Discovery Timeline

  • June 9, 2025 - CVE-2025-49131 published to NVD
  • December 29, 2025 - Last updated in NVD database

Technical Details for CVE-2025-49131

Vulnerability Analysis

This vulnerability stems from CWE-732 (Incorrect Permission Assignment for Critical Resource). The fastgpt-sandbox container was designed to provide isolation for executing untrusted code within FastGPT workflows. However, the sandbox implementation permitted an excessive number of system calls that an attacker could leverage to break out of the containerized environment.

The sandbox allowed syscalls such as SYS_EXECVE, SYS_OPEN, SYS_READLINK, and filesystem manipulation calls like SYS_MKDIRAT and SYS_MKDIR, which provided attackers with the primitives necessary to interact with the underlying filesystem beyond the intended sandbox scope. By chaining these syscalls, an attacker could achieve arbitrary file read and write capabilities, effectively nullifying the sandbox's security guarantees.

Root Cause

The root cause lies in the overly permissive syscall whitelist configuration within the sandbox environment. The original implementation allowed approximately 50+ syscalls including dangerous filesystem and process management calls. This excessive permission set violated the principle of least privilege, enabling attackers to perform operations that should have been blocked by a properly configured sandbox.

Attack Vector

The attack vector is network-based and requires low privileges to exploit. An authenticated attacker can submit malicious code through FastGPT's workflow system, which gets executed within the sandbox container. By leveraging the permitted syscalls, the attacker can:

  1. Escape the sandbox isolation boundary
  2. Read sensitive files from the host filesystem
  3. Overwrite arbitrary files, potentially achieving persistence or further compromise
  4. Bypass Python module import restrictions to load malicious libraries
typescript
// Security patch comparison - Syscall whitelist reduction
// Source: https://github.com/labring/FastGPT/commit/bb810a43a1c70683fab7f5fe993771e930a94426

// BEFORE (Vulnerable): Overly permissive syscall list
allowed_syscalls = [
    "syscall.SYS_ARCH_PRCTL", "syscall.SYS_BRK", "syscall.SYS_CLONE",
    "syscall.SYS_CLOSE", "syscall.SYS_EPOLL_CREATE1", "syscall.SYS_EXECVE",
    "syscall.SYS_EXIT", "syscall.SYS_EXIT_GROUP", "syscall.SYS_FCNTL",
    "syscall.SYS_FSTAT", "syscall.SYS_FUTEX", "syscall.SYS_GETDENTS64",
    "syscall.SYS_OPEN", "syscall.SYS_MKDIRAT", "syscall.SYS_MKDIR"
    // ... 50+ total syscalls allowed
]

// AFTER (Patched): Restricted to safer subset
allowed_syscalls = [
    "syscall.SYS_NEWFSTATAT",
    "syscall.SYS_LSEEK",
    "syscall.SYS_GETDENTS64",
    "syscall.SYS_CLOSE",
    "syscall.SYS_FUTEX",
    "syscall.SYS_MMAP",
    "syscall.SYS_BRK",
    // Significantly reduced syscall surface
]

Source: GitHub Commit Changes

Detection Methods for CVE-2025-49131

Indicators of Compromise

  • Unexpected file access or modification patterns originating from fastgpt-sandbox container processes
  • Anomalous syscall patterns including attempts to use SYS_EXECVE, SYS_OPEN, or SYS_MKDIR from sandbox processes
  • Python module import attempts for restricted or unexpected libraries within sandbox execution contexts
  • Log entries indicating sandbox boundary violations or permission denied errors followed by successful operations

Detection Strategies

  • Implement container runtime security monitoring with syscall auditing to detect unauthorized syscall usage from sandbox containers
  • Deploy file integrity monitoring (FIM) on host systems to detect unauthorized file modifications originating from container breakouts
  • Configure application-level logging to track code execution requests and correlate with container activity
  • Use behavioral analysis tools to identify anomalous sandbox escape patterns

Monitoring Recommendations

  • Enable audit logging for all syscall activity within containerized FastGPT sandbox environments
  • Monitor for outbound network connections or filesystem access patterns that deviate from expected sandbox behavior
  • Configure alerting on any EPERM or EACCES errors followed by successful syscall completion in sandbox logs
  • Review FastGPT workflow execution logs for suspicious code submissions or unusual execution patterns

How to Mitigate CVE-2025-49131

Immediate Actions Required

  • Upgrade FastGPT to version 4.9.11 or later immediately, as this version contains the security patch
  • Pull the latest fastgpt-sandbox container image from the official container registry
  • Audit existing FastGPT deployments for any signs of exploitation or unauthorized file access
  • Review workflow configurations and restrict code execution capabilities to trusted users only

Patch Information

The vulnerability has been addressed in FastGPT version 4.9.11. The fix significantly reduces the allowed syscall list from approximately 50+ calls to a minimal safe subset, removing dangerous filesystem and process management syscalls. Additionally, the patch includes improved error messaging to provide better visibility into blocked operations.

For detailed patch changes, refer to:

  • GitHub Security Advisory GHSA-f3pf-r3g7-g895
  • GitHub Release v4.9.11
  • Pull Request #4958

Workarounds

  • If immediate patching is not possible, disable the sandbox code execution feature until the update can be applied
  • Implement network segmentation to isolate FastGPT sandbox containers from sensitive systems
  • Apply additional container runtime security policies (such as seccomp profiles or AppArmor) to restrict syscall access at the infrastructure level
  • Limit sandbox access to trusted users and implement strict input validation on code submissions
bash
# Configuration example - Updating FastGPT sandbox container
# Pull the patched sandbox container image
docker pull ghcr.io/labring/fastgpt-sandbox:v4.9.11

# Verify the container version
docker inspect ghcr.io/labring/fastgpt-sandbox:v4.9.11 | grep -i version

# Restart FastGPT services with the updated sandbox
docker-compose down && docker-compose up -d

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechFastgpt

  • SeverityCRITICAL

  • CVSS Score9.9

  • EPSS Probability0.83%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-732
  • Technical References
  • GitHub Container Package

  • GitHub Pull Request Discussion

  • GitHub Release v4.9.11
  • Vendor Resources
  • GitHub Commit Changes

  • GitHub Security Advisory GHSA-f3pf-r3g7-g895
  • Related CVEs
  • CVE-2026-33075: Fastgpt Fastgpt RCE Vulnerability

  • CVE-2026-40351: FastGPT Auth Bypass Vulnerability

  • CVE-2026-40352: FastGPT Auth Bypass Vulnerability

  • CVE-2026-40100: FastGPT 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