Skip to content

Instantly share code, notes, and snippets.

@Ro1ME
Last active September 26, 2026 04:38
Show Gist options
  • Select an option

  • Save Ro1ME/884fbbd589998b81fa05c20ac205569f to your computer and use it in GitHub Desktop.

Select an option

Save Ro1ME/884fbbd589998b81fa05c20ac205569f to your computer and use it in GitHub Desktop.
CVE-2026-51869 - Incorrect Access Control in DB-GPT (runtime_factory.py:RuntimeFactory.create)

CVE-2026-51869

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

Description

DB-GPT v0.8.0 sandbox API silently falls back to LocalRuntime and executes code on host.

Reproduction Notes (condensed, sanitized)

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:
  1. Check SANDBOX_RUNTIME environment variable
  2. Try Docker SDK (line 48-57)
  3. Try Podman (line 58-59)
  4. Try Nerdctl (line 60-61) …

Discoverer

Ro1ME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment