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
    • 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-42302

CVE-2026-42302: FastGPT Agent-Sandbox RCE Vulnerability

CVE-2026-42302 is a remote code execution flaw in FastGPT's agent-sandbox component that allows unauthenticated attackers to gain full control over the sandbox. This article covers the technical details, versions 4.14.10-4.14.13, and how to mitigate the risk.

Published: May 18, 2026

CVE-2026-42302 Overview

FastGPT is an AI Agent building platform developed by labring. CVE-2026-42302 is an unauthenticated Remote Code Execution (RCE) vulnerability in the agent-sandbox component of FastGPT. The startup script entrypoint.sh launches code-server with --auth none and binds the service to 0.0.0.0:8080, exposing it on all network interfaces without authentication. Any attacker with network access to the port can take full control of the sandbox environment. The flaw affects FastGPT versions 4.14.10 through versions before 4.14.13 and is patched in version 4.14.13. The weakness is categorized as Missing Authentication for Critical Function [CWE-306].

Critical Impact

Unauthenticated attackers reaching TCP port 8080 on the sandbox container can execute arbitrary code with the privileges of the code-server process, leading to complete sandbox compromise.

Affected Products

  • FastGPT versions 4.14.10 through 4.14.12
  • FastGPT agent-sandbox component (projects/agent-sandbox/entrypoint.sh)
  • Deployments exposing the agent-sandbox container port 8080 to untrusted networks

Discovery Timeline

  • 2026-05-08 - CVE-2026-42302 published to NVD
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2026-42302

Vulnerability Analysis

The FastGPT agent-sandbox container runs code-server to provide an in-browser development environment for AI agent skills. The container entrypoint script started code-server with two insecure flags: --auth none disabled password protection and --bind-addr 0.0.0.0:8080 exposed the listener on every network interface. Combined, these settings allowed any client that could reach port 8080 to load the code-server web interface and use its built-in terminal and file editor to execute commands inside the container. Because code-server exposes shell access by design, authentication bypass directly converts into arbitrary command execution.

Root Cause

The root cause is missing authentication on a privileged interface [CWE-306]. The entrypoint script hardcoded --auth none, removing the only access control on the code-server HTTP endpoint, while binding to 0.0.0.0 rather than a loopback or internal address. The patched configuration removes both flags and moves the listener to port 44772, isolating the service from external traffic by default.

Attack Vector

The attack is network-based and requires no privileges or user interaction. An attacker scans for exposed port 8080 on FastGPT deployments, opens the code-server interface in a browser, and spawns a terminal to run arbitrary commands. From the sandbox, the attacker can read agent code, exfiltrate secrets mounted into the container, pivot to internal services, or stage further attacks against the FastGPT control plane.

bash
# Security patch in projects/agent-sandbox/entrypoint.sh
# Source: https://github.com/labring/FastGPT/commit/9d1cafce9241430fb5bcdd646455055c5f4ae0a4

# Start code-server or sleep forever
if [ "${_ENABLE_CODE_SERVER}" = "true" ]; then
-  # --bind-addr 0.0.0.0:8080 allows access from outside the container
-  # --auth none removes password protection
   exec code-server \
-       --bind-addr 0.0.0.0:8080 \
-       --auth none \
        --disable-telemetry \
        --disable-update-check \
        --disable-workspace-trust \

The companion change in packages/service/core/agentSkills/sandboxConfig.ts moves the target port from 8080 to 44772, reducing the attack surface for any residual exposure.

Detection Methods for CVE-2026-42302

Indicators of Compromise

  • Unexpected inbound TCP connections to port 8080 on agent-sandbox containers from non-FastGPT source addresses.
  • HTTP requests to code-server paths such as /?folder= or /stable-*/static/ originating from external networks.
  • New or modified files under /home/sandbox/workspace that were not deployed by the agent skill workflow.
  • Outbound connections from the sandbox container to unfamiliar hosts, indicating possible reverse shells or data exfiltration.

Detection Strategies

  • Inspect running FastGPT deployments for code-server processes started with --auth none or --bind-addr 0.0.0.0:8080.
  • Review container image versions and reject agent-sandbox images built from FastGPT 4.14.10 through 4.14.12.
  • Alert on shell spawns (/bin/sh, /bin/bash) parented by the code-server process inside sandbox containers.

Monitoring Recommendations

  • Log and audit egress traffic from sandbox containers and baseline normal destinations.
  • Monitor Kubernetes or Docker network policies for changes that expose port 8080 externally.
  • Track FastGPT release versions across environments and flag any host running an affected build.

How to Mitigate CVE-2026-42302

Immediate Actions Required

  • Upgrade FastGPT to version 4.14.13 or later, which removes the --auth none and --bind-addr 0.0.0.0:8080 flags from entrypoint.sh.
  • Block external access to TCP port 8080 on any host running the agent-sandbox container until the upgrade is complete.
  • Rotate any credentials, API keys, or tokens that may have been accessible from the sandbox workspace.

Patch Information

The fix is delivered in FastGPT v4.14.13. The patch removes the insecure code-server flags and changes the configured targetPort from 8080 to 44772. See the GitHub Security Advisory GHSA-34rc-438g-7w78, the Pull Request #6781, the commit 9d1cafc, and the v4.14.13 release notes.

Workarounds

  • Set the _ENABLE_CODE_SERVER environment variable to a value other than true to prevent code-server from starting in the sandbox.
  • Restrict the sandbox container network with firewall rules or Kubernetes NetworkPolicy objects so that only the FastGPT backend can reach the service.
  • Bind code-server to 127.0.0.1 and front it with an authenticated reverse proxy if the editor must remain enabled before upgrading.
bash
# Example Kubernetes NetworkPolicy restricting access to the agent-sandbox pod
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: fastgpt-agent-sandbox-restrict
spec:
  podSelector:
    matchLabels:
      app: fastgpt-agent-sandbox
  policyTypes:
    - Ingress
  ingress:
    - from:
        - podSelector:
            matchLabels:
              app: fastgpt-backend
      ports:
        - protocol: TCP
          port: 8080

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.8

  • EPSS Probability0.39%

  • 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-306
  • Technical References
  • GitHub Commit Details

  • GitHub Pull Request

  • GitHub Release Notes v4.14.13

  • GitHub Security Advisory GHSA-34rc-438g-7w78
  • Related CVEs
  • CVE-2026-33075: Fastgpt Fastgpt RCE Vulnerability

  • CVE-2025-49131: Fastgpt Sandbox RCE Vulnerability

  • CVE-2026-42343: FastGPT Code-Sandbox DoS Vulnerability

  • CVE-2026-44284: FastGPT MCP Tool SSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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