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-2026-32128

CVE-2026-32128: FastGPT Privilege Escalation Vulnerability

CVE-2026-32128 is a privilege escalation flaw in FastGPT's Python Sandbox that allows attackers to bypass file write restrictions. This post explains its impact, affected versions, and mitigation steps.

Published: March 13, 2026

CVE-2026-32128 Overview

CVE-2026-32128 is an authorization bypass vulnerability affecting FastGPT, an AI Agent building platform. In version 4.14.7 and earlier, the FastGPT Python Sandbox (fastgpt-sandbox) implements security guardrails intended to prevent file write operations through static detection and seccomp filtering. However, these guardrails can be bypassed by remapping stdout (file descriptor 1) to an arbitrary writable file descriptor using the fcntl system call. After remapping, writing via sys.stdout.write() still satisfies the seccomp rule write(fd==1), enabling arbitrary file creation and overwrite inside the sandbox container despite the intended "no file writes" restriction.

Critical Impact

Attackers with low-privilege access can bypass sandbox file write restrictions, potentially enabling arbitrary file creation/overwrite within the container environment, which could lead to container escape or further exploitation.

Affected Products

  • FastGPT version 4.14.7 and earlier
  • FastGPT Python Sandbox (fastgpt-sandbox) component

Discovery Timeline

  • 2026-03-11 - CVE-2026-32128 published to NVD
  • 2026-03-12 - Last updated in NVD database

Technical Details for CVE-2026-32128

Vulnerability Analysis

This vulnerability represents a classic sandbox escape scenario where the security controls are implemented at an abstraction level that can be circumvented by lower-level system operations. The FastGPT sandbox employs a two-layer defense mechanism: static code analysis to detect potentially dangerous file operations, and seccomp (secure computing mode) filtering to restrict system calls at runtime.

The seccomp filter permits write() system calls only when targeting file descriptor 1 (stdout). This design assumes that stdout will always point to the console output stream. However, Unix-like operating systems allow processes to manipulate file descriptors using fcntl() and dup2() system calls. An attacker can leverage these operations to reassign what file descriptor 1 actually points to, redirecting it from the console to an arbitrary file path.

The impact allows authenticated users with sandbox access to create or overwrite files within the container environment. While the scope remains unchanged (no privilege escalation beyond the sandbox container), this bypass undermines the core security assumption of the sandbox—that untrusted code cannot modify the filesystem.

Root Cause

The root cause is classified as CWE-184: Incomplete List of Disallowed Inputs. The seccomp filter focuses narrowly on the write() system call and its target file descriptor, but fails to restrict the fcntl() system call that can be used to remap file descriptors. The static detection mechanism similarly does not flag fcntl-based file descriptor manipulation as a dangerous pattern. This incomplete blocklist approach leaves a gap that allows the bypass.

Attack Vector

The attack is network-accessible, requiring low-privilege authentication to the FastGPT platform. The attacker needs the ability to execute Python code within the sandbox environment, which is a standard feature for legitimate users of the AI Agent building platform. No user interaction is required beyond the attacker's own actions.

The exploitation technique involves:

  1. Opening a target file path using a file descriptor manipulation technique
  2. Using fcntl to duplicate the file's descriptor to stdout (fd 1)
  3. Writing arbitrary content via sys.stdout.write(), which the seccomp filter permits
  4. The content is written to the target file instead of the console

This technique satisfies all seccomp rules while achieving unauthorized file writes. For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-32128

Indicators of Compromise

  • Unexpected files appearing in the sandbox container filesystem
  • Modifications to configuration files or scripts within the container
  • Sandbox execution logs showing fcntl or dup2 system calls in user-submitted code
  • Anomalous file descriptor manipulation patterns in audit logs

Detection Strategies

  • Implement code analysis to detect fcntl, dup2, or similar file descriptor manipulation functions in user-submitted Python code
  • Monitor sandbox container filesystems for unexpected file creation or modification events
  • Enable seccomp logging mode to capture and analyze all system call attempts, including permitted calls
  • Deploy file integrity monitoring within sandbox containers to detect unauthorized changes

Monitoring Recommendations

  • Audit user-submitted code for patterns involving os.open(), fcntl, dup2, and file descriptor manipulation
  • Implement runtime monitoring for file descriptor table changes within sandbox processes
  • Set up alerts for file write events in directories that should be read-only within the sandbox
  • Review sandbox execution logs regularly for suspicious patterns

How to Mitigate CVE-2026-32128

Immediate Actions Required

  • Upgrade FastGPT to a version newer than 4.14.7 when a patched release becomes available
  • Review and audit any code executed in the sandbox for malicious file descriptor manipulation
  • Consider temporarily restricting sandbox access to trusted users until patching is complete
  • Implement additional filesystem-level protections such as read-only mounts for sensitive directories

Patch Information

A security advisory has been published at the FastGPT GitHub Security Advisories page. Organizations should monitor this advisory for patch release information and apply updates as soon as they become available.

Workarounds

  • Extend the seccomp filter to also restrict fcntl() and dup2() system calls, or limit them to safe operations only
  • Add static analysis rules to detect and block code patterns involving file descriptor manipulation
  • Mount sandbox filesystems as read-only at the container level to prevent file writes regardless of code execution
  • Implement additional sandboxing layers such as user namespace isolation or mandatory access control (AppArmor/SELinux policies)
bash
# Example: Mount sandbox directories as read-only in container configuration
# Add to container runtime configuration or docker-compose.yml
# volumes:
#   - /app/sandbox:/app/sandbox:ro
# 
# Alternative: Use tmpfs for writable areas with size limits
# --tmpfs /tmp:rw,noexec,nosuid,size=10m

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechFastgpt

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-184
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40351: FastGPT Auth Bypass Vulnerability

  • CVE-2026-40352: FastGPT Auth Bypass Vulnerability

  • CVE-2026-40100: FastGPT SSRF Vulnerability

  • CVE-2026-40252: FastGPT Auth Bypass 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