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-2025-0868

CVE-2025-0868: DocsGPT RCE Vulnerability

CVE-2025-0868 is a remote code execution flaw in DocsGPT caused by improper JSON parsing using eval(). Attackers can execute arbitrary Python code via the /api/remote endpoint. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2025-0868 Overview

A critical Remote Code Execution (RCE) vulnerability has been discovered in DocsGPT, an open-source AI documentation assistant. The vulnerability exists due to improper parsing of JSON data using Python's eval() function, allowing unauthorized attackers to execute arbitrary Python code via the /api/remote endpoint. This represents a severe security flaw that could enable complete system compromise without any authentication requirements.

Critical Impact

Unauthenticated attackers can achieve full remote code execution by sending malicious Python payloads to the vulnerable /api/remote endpoint, potentially leading to complete system compromise, data theft, or lateral movement within the network.

Affected Products

  • DocsGPT versions 0.8.1 through 0.12.0

Discovery Timeline

  • 2025-02-20 - CVE-2025-0868 published to NVD
  • 2025-10-03 - Last updated in NVD database

Technical Details for CVE-2025-0868

Vulnerability Analysis

This vulnerability falls under CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code), commonly known as "Eval Injection" or "Code Injection." The fundamental issue stems from the application's use of Python's dangerous eval() function to parse JSON data received from user input without proper sanitization or validation.

The /api/remote endpoint accepts JSON-formatted data from external sources. Instead of using safe JSON parsing methods like Python's built-in json.loads(), the application processes this data through eval(), which interprets the input as executable Python code. This design flaw enables attackers to craft malicious payloads that execute arbitrary Python commands on the server.

The vulnerability is particularly severe because it requires no authentication, operates over the network, and has low attack complexity. Successful exploitation grants attackers the ability to execute code with the same privileges as the DocsGPT application, potentially allowing them to read sensitive documents, modify data, install backdoors, or pivot to other systems.

Root Cause

The root cause is the use of Python's eval() function for parsing user-supplied JSON data. The eval() function executes any valid Python expression passed to it, making it inherently dangerous when processing untrusted input. Developers should never use eval() to parse JSON data, as Python provides the safe json.loads() function specifically designed for this purpose. The lack of input validation and sanitization before the eval() call compounds the vulnerability, allowing unrestricted code execution.

Attack Vector

The attack vector is network-based, targeting the /api/remote endpoint. An attacker can send a crafted HTTP request containing malicious Python code embedded within what should be JSON data. When the server processes this request using eval(), the malicious code executes on the server.

For example, instead of sending legitimate JSON like {"key": "value"}, an attacker could send a payload that imports system modules and executes shell commands. The attacker could leverage Python's os module to run system commands, the subprocess module to spawn processes, or even establish reverse shells for persistent access.

For detailed technical analysis and proof-of-concept information, refer to the CERT Poland advisory.

Detection Methods for CVE-2025-0868

Indicators of Compromise

  • Unusual HTTP POST requests to the /api/remote endpoint containing Python code syntax such as import, os.system, subprocess, exec, or __import__
  • Server processes spawning unexpected child processes or shell commands
  • Outbound network connections initiated by the DocsGPT application process to unusual destinations
  • Unexpected file modifications or new files created in the application directory

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block requests containing Python code patterns in JSON payloads
  • Monitor application logs for requests to /api/remote with suspicious payloads or unusual request sizes
  • Deploy network intrusion detection systems (NIDS) with signatures for common Python RCE payloads
  • Enable process monitoring to detect the DocsGPT application spawning unexpected child processes

Monitoring Recommendations

  • Establish baseline behavior for the DocsGPT application and alert on deviations such as new network connections or process spawning
  • Configure SIEM rules to correlate web requests to /api/remote with subsequent suspicious system activity
  • Implement application-level logging to capture all requests to the vulnerable endpoint for forensic analysis
  • Monitor system integrity on servers running DocsGPT for unauthorized modifications

How to Mitigate CVE-2025-0868

Immediate Actions Required

  • Upgrade DocsGPT to a version newer than 0.12.0 that addresses this vulnerability
  • If immediate upgrade is not possible, restrict network access to the /api/remote endpoint using firewall rules or reverse proxy configurations
  • Place DocsGPT instances behind authentication if not already configured
  • Implement network segmentation to limit the potential impact of successful exploitation

Patch Information

Organizations running DocsGPT versions 0.8.1 through 0.12.0 should upgrade to the latest available version immediately. Check the GitHub DocsGPT Repository for the latest release that addresses this vulnerability. Review the CERT Poland advisory for additional technical details and remediation guidance.

Workarounds

  • Disable or block access to the /api/remote endpoint at the web server or reverse proxy level if the functionality is not required
  • Implement a web application firewall rule to block requests containing Python code patterns targeting the vulnerable endpoint
  • Restrict access to the DocsGPT application to trusted internal networks only until patching is complete
  • Run DocsGPT in a containerized environment with minimal privileges to limit the impact of potential exploitation
bash
# Example: Block access to vulnerable endpoint using nginx
location /api/remote {
    deny all;
    return 403;
}

# Example: Restrict access to internal networks only
location /api/remote {
    allow 10.0.0.0/8;
    allow 172.16.0.0/12;
    allow 192.168.0.0/16;
    deny all;
}

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechDocsgpt

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability11.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-95
  • Technical References
  • CERT Poland CVE-2025-0868 Post

  • CERT Poland CVE-2025-0868 Details

  • GitHub DocsGPT Repository
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox 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