CVE-2025-0868
JavaScript vulnerability analysis and mitigation

Overview

A critical Remote Code Execution (RCE) vulnerability (CVE-2025-0868) has been discovered in DocsGPT, affecting versions 0.8.1 through 0.12.0. The vulnerability was disclosed on February 20, 2025, and was reported to CERT Polska. DocsGPT is an open-source genAI tool designed to help users get reliable answers from knowledge sources while avoiding hallucinations (CERT Polska, GitHub DocsGPT).

Technical details

The vulnerability stems from improper parsing of JSON data using the eval() function, which allows an unauthorized attacker to execute arbitrary Python code via the /api/remote endpoint. The vulnerability has been classified as CWE-77 (Improper Neutralization of Special Elements used in a Command 'Command Injection'). The CVSS v4.0 score is 9.3 (CRITICAL) with the vector string: 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 (NVD).

Impact

The vulnerability allows unauthorized attackers to execute arbitrary Python code remotely on affected systems. This could potentially lead to complete system compromise, data theft, or service disruption, as the attack requires no authentication and can be executed remotely (CERT Polska).

Mitigation and workarounds

Users running DocsGPT versions 0.8.1 through 0.12.0 should upgrade to a newer version when available. As this is a recently disclosed vulnerability, users should monitor the official DocsGPT GitHub repository for security updates and patches (GitHub DocsGPT).

Community reactions

The vulnerability has gained attention in the cybersecurity community, being featured in The Hacker News' weekly recap alongside other significant security issues, indicating its importance in the current threat landscape (The Hacker News).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management