CVE-2025-0868
Published: 20 February 2025
Summary
CVE-2025-0868 is a uncategorised-severity Eval Injection (CWE-95) vulnerability in Cert (inferred from references). Its CVSS base score is N/A.
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 5.2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and SI-2 (Flaw Remediation).
Threat & Defense at a Glance
Threat & Defense Details
Mitigating Controls (NIST 800-53 r5)AI
Directly requires validation of JSON inputs to the /api/remote endpoint to ensure they are within expected format, preventing arbitrary Python code execution via eval().
Mandates timely identification, reporting, and correction of the specific flaw in DocsGPT versions 0.8.1 through 0.12.0 that enables RCE through improper JSON parsing.
Enforces least privilege on the DocsGPT process to limit the scope and impact of potential RCE exploitation even if arbitrary code executes.
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Direct RCE via unauthenticated remote exploitation of a public-facing web app using Python eval injection.
NVD 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…
more
affects DocsGPT: from 0.8.1 through 0.12.0.
Deeper analysisAI
CVE-2025-0868 is a remote code execution (RCE) vulnerability in DocsGPT, an open-source application, affecting versions from 0.8.1 through 0.12.0. The flaw stems from improper parsing of JSON data using the eval() function, which allows arbitrary Python code to be executed. This issue, classified under CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code), was published on 2025-02-20.
An unauthorized remote attacker can exploit this vulnerability by sending malicious JSON payloads containing arbitrary Python code to the /api/remote endpoint. Successful exploitation results in remote code execution on the server hosting DocsGPT, potentially granting full control over the affected system.
Mitigation details are available in advisories from CERT.PL at https://cert.pl/en/posts/2025/02/CVE-2025-0868/ and https://cert.pl/posts/2025/02/CVE-2025-0868/, as well as the DocsGPT GitHub repository at https://github.com/arc53/DocsGPT. Security practitioners should review these resources for patching instructions and upgrade guidance.
Details
- CWE(s)