Type: Incorrect Access Control
Product: DB-GPT
Affected versions: 0.8.0
Affected component: packages/dbgpt-sandbox/src/dbgpt_sandbox/sandbox/execution_layer/runtime_factory.py:RuntimeFactory.create
Suggested CWE: CWE-284 (Incorrect Access Control)
Reference: eosphoros-ai/DB-GPT#3082
DB-GPT v0.8.0 sandbox API silently falls back to LocalRuntime and executes code on host.
Condensed from the authorized local validation used for the original report; local filesystem paths are replaced with <local-path>.
EXPECTED SUCCESSFUL RESULT:
- Without Docker: marker file created on host at /tmp/dbgpt_web_unsandboxed.txt
- File contains "UNSANDBOXED_EXECUTION_VIA_WEB"
- Demonstrates that natural language requests through the Web UI can trigger arbitrary code execution
- The AI agent automatically generates and executes code based on user prompts
- Without proper sandboxing, this creates a remote code execution vulnerability ROOT CAUSE CHECK:
- Source: packages/dbgpt-sandbox/src/dbgpt_sandbox/sandbox/execution_layer/runtime_factory.py:44
- The RuntimeFactory.create() method has a fallback chain:
- Check SANDBOX_RUNTIME environment variable
- Try Docker SDK (line 48-57)
- Try Podman (line 58-59)
- Try Nerdctl (line 60-61) …
Ro1ME