Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-77932 Overview
CVE-2026-77932 is an unauthenticated remote code execution vulnerability in DB-GPT through version 0.8.2. The /api/v1/chat/react-agent endpoint relies on a mock get_user_from_headers function that grants every caller the admin role. Unauthenticated attackers can submit prompts that direct the ReAct agent's unsandboxed code_interpreter and shell_interpreter tools to execute arbitrary Python or bash commands as root inside the webserver container. The attack path also reaches the bundled database using default credentials. The weakness maps to [CWE-306: Missing Authentication for Critical Function].
Critical Impact
Remote attackers gain unauthenticated root-level command execution inside the DB-GPT container and can pivot to the bundled database.
Affected Products
- DB-GPT (eosphoros-ai) through version 0.8.2
- Deployments exposing the /api/v1/chat/react-agent endpoint
- Instances running the default code_interpreter and shell_interpreter tools
Discovery Timeline
- 2026-10-20 - CVE CVE-2026-77932 published to NVD
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-77932
Vulnerability Analysis
DB-GPT exposes a ReAct agent chat endpoint at /api/v1/chat/react-agent. The endpoint authenticates requests through a get_user_from_headers helper that was shipped as a mock implementation. The helper returns a static admin identity for any caller, regardless of request headers or session state. This design turns an authenticated internal API into an unauthenticated administrative surface.
Once an attacker reaches the ReAct agent, the agent exposes two tool integrations: code_interpreter and shell_interpreter. Neither tool runs inside a sandbox. Prompts that instruct the agent to invoke these tools cause the webserver process to execute attacker-supplied Python or bash. Because the DB-GPT container typically runs as root, commands inherit root privileges inside the container.
The bundled database ships with default credentials reachable from the same container. An attacker chaining code execution with the default credentials can read, modify, or exfiltrate stored data.
Root Cause
The root cause is missing authentication on a critical function [CWE-306]. The get_user_from_headers function in packages/dbgpt-serve/src/dbgpt_serve/utils/auth.py was intended as a development placeholder. Shipping it in production releases removed the authentication boundary in front of agent tooling. See the GitHub Auth Utility Script.
Attack Vector
Attackers reach the vulnerable endpoint over the network without credentials. A crafted JSON payload to /api/v1/chat/react-agent triggers the ReAct agent, which forwards attacker-controlled instructions into the code_interpreter or shell_interpreter tool. The tool executes the payload directly in the webserver container. Technical details for the interpreter path appear in the GitHub Code Interpreter Script and the VulnCheck DB-GPT RCE Advisory.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-77932
Indicators of Compromise
- Unexpected POST requests to /api/v1/chat/react-agent from untrusted sources.
- Child processes spawned by the DB-GPT webserver that invoke python, sh, bash, curl, or wget.
- Outbound network connections from the DB-GPT container to attacker-controlled hosts.
- Access to the bundled database using the default account outside normal application flow.
Detection Strategies
- Alert on HTTP requests to the ReAct agent endpoint that lack expected session context or originate from external IP ranges.
- Monitor the DB-GPT webserver process for execution of interpreter binaries or shell utilities that are not part of normal runtime behavior.
- Correlate agent chat requests with subsequent file writes under temporary directories inside the container.
Monitoring Recommendations
- Centralize webserver access logs and track per-endpoint request volume for /api/v1/chat/react-agent.
- Collect process execution telemetry from the DB-GPT host or container runtime and retain parent-child process lineage.
- Audit database authentication events for use of default credentials and connections from the application container at unusual times.
How to Mitigate CVE-2026-77932
Immediate Actions Required
- Restrict network access to the DB-GPT UI and API endpoints to trusted internal networks or VPN clients.
- Disable the code_interpreter and shell_interpreter tools in the ReAct agent configuration until a fix is in place.
- Replace the mock get_user_from_headers function with an enforcing authentication implementation that rejects anonymous callers.
- Rotate credentials for the bundled database and remove any default accounts.
Patch Information
At the time of publication the NVD entry does not list a fixed version. Review the Lasso CVE-2026-77932 Entry and the VulnCheck DB-GPT RCE Advisory for upstream fixes, and track the DB-GPT repository for releases after 0.8.2.
Workarounds
- Place DB-GPT behind an authenticating reverse proxy that enforces strong identity before requests reach the application.
- Run the DB-GPT container as a non-root user and apply filesystem and network egress restrictions.
- Remove or sandbox the agent tool definitions that invoke Python or shell execution.
- Segment the bundled database on a private network and change all default credentials.
# Configuration example: block external access to the ReAct agent endpoint at the reverse proxy
location /api/v1/chat/react-agent {
allow 10.0.0.0/8;
deny all;
proxy_pass http://dbgpt-backend;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

