Arc53 DocsGPT
Remote Code Execution in DocsGPT
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.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 0.8.1, <= 0.12.0
Mitigation
The record names no fix. Check the vendor advisory below.
Timeline
Days relative to CVE publicationFirst public PoC 5 days after publication; not in CISA KEV. First PoC: nuclei template: DocsGPT - Unauthenticated Remote Code Execution (nuclei template, 25 Feb 2025).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| pbuff07/waf_repeater | 9 May 2025 +78 d | 17 | PoC |
| aidana-gift/CVE-2025-0868 | 25 May 2025 +94 d | 1 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | DocsGPT 0.12.0 - Remote Code Execution | 9 Apr 2025 | 14 Nov 2026 |
| nuclei template | nuclei template: DocsGPT - Unauthenticated Remote Code Execution | 25 Feb 2025 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 2 PoC reposPOST //cwbase/web/themes/elfinder/php/connector.minimal.php
- Key headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9Accept-Language: zh-CN,zh;q=0.9,en;q=0.8Cookie: id=4878d749336b447428d5a36114e9bfacIf-Modified-Since: Sun, 07 Aug 2022 14:54:27 GMTIf-None-Match: "62efd223-3"Upgrade-Insecure-Requests: 1- Body markers
target=l1_<@base64>/var/www/html/elfinder/files/<@/base64>downLoad=1inapplication/x-www-form-urlencoded- PoC User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36- Seen in
- 1 repo: pbuff07/waf_repeater
- Evidence
- pbuff07/waf_repeater/README.md:59 pbuff07/waf_repeater/payload.txt:1
POST /api/remote
- Body markers
"data":"__import__('os').system('rm -rf /')"inapplication/x-www-form-urlencoded- Ports
- 7091
- Seen in
- 1 repo: aidana-gift/CVE-2025-0868
- Evidence
- aidana-gift/CVE-2025-0868/CVE-2025-0868.py:16 aidana-gift/CVE-2025-0868/README.md:66 aidana-gift/CVE-2025-0868/README.md:97
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^//cwbase/web/themes/elfinder/php/connector\.minimal\.php(?:[?#].*)?$
(?i)^/api/remote(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-0868 Arc53 DocsGPT exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"//cwbase/web/themes/elfinder/php/connector.minimal.php"; http.header; content:"Accept: text/html,application/xhtml+xml,application/xml|3b|q=0.9,image/avif,image/webp,image/apng,*/*|3b|q=0.8,application/signed-exchange|3b|v=b3|3b|q=0.9"; nocase; http.header; content:"Accept-Language: zh-CN,zh|3b|q=0.9,en|3b|q=0.8"; nocase; http.header; content:"Cookie: id=4878d749336b447428d5a36114e9bfac"; nocase; http.header; content:"If-Modified-Since: Sun, 07 Aug 2022 14:54:27 GMT"; nocase; http.header; content:"If-None-Match: |22|62efd223-3|22|"; nocase; http.header; content:"Upgrade-Insecure-Requests: 1"; nocase; http.request_body; content:"target=l1_<@base64>/var/www/html/elfinder/files/<@/base64>"; http.request_body; content:"downLoad=1"; reference:url,poc.griffinguard.io/cve/CVE-2025-0868; classtype:web-application-attack; sid:9419265; rev:1;)
alert http any any -> $HOME_NET [7091] (msg:"GG PoC-Monitor CVE-2025-0868 Arc53 DocsGPT exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/remote"; http.request_body; content:"|22|data|22|:|22|__import__('os').system('rm -rf /')|22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-0868; classtype:web-application-attack; sid:9336886; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Arc53 DocsGPT exploit attempt (CVE-2025-0868)
id: gg-pocmon-cve-2025-0868-9419265
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-0868. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-0868
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '//cwbase/web/themes/elfinder/php/connector.minimal.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.0868
title: Arc53 DocsGPT exploit attempt (CVE-2025-0868)
id: gg-pocmon-cve-2025-0868-9336886
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-0868. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-0868
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/remote'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.0868