/

CVE-2026-51869

Severity:

CRITICAL RISK

(9.8)

Sandbox Authorization Failure (CWE-284) in DB-GPT API

CVE-2026-51869

Deferred

Vulnerability type

Category:

Improper Access Control

CWE:

CWE-284

Impact:

Host-Level Remote Code Execution

Severity:

CRITICAL RISK

(9.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

DB-GPT v0.8.0 has a sandbox API that can silently fall back to LocalRuntime instead of maintaining isolated execution. When this fallback is triggered, submitted code may execute directly on the host rather than inside the intended sandbox.

DB-GPT v0.8.0 has a sandbox API that can silently fall back to LocalRuntime instead of maintaining isolated execution. When this fallback is triggered, submitted code may execute directly on the host rather than inside the intended sandbox.

Affected context

The vulnerability occurs in DB-GPT v0.8.0 deployments that expose or otherwise invoke the sandbox API while relying on its runtime-selection behavior for isolation. Risk increases when the API is reachable by untrusted users or networks and the fallback runtime has access to sensitive host resources.

The vulnerability occurs in DB-GPT v0.8.0 deployments that expose or otherwise invoke the sandbox API while relying on its runtime-selection behavior for isolation. Risk increases when the API is reachable by untrusted users or networks and the fallback runtime has access to sensitive host resources.

Exploit preconditions

  • Attack surface: DB-GPT sandbox API and its runtime-selection path
  • Required access: Ability to submit code or execution requests to the affected API; the CVSS rating indicates a potentially network-reachable, low-complexity scenario
  • Trigger point: A sandbox execution request that causes the API to select LocalRuntime
  • Why exploitation is possible: The API can silently substitute a host-backed runtime for the intended isolated environment, allowing submitted code to execute with the permissions of the DB-GPT process
  • Attack surface: DB-GPT sandbox API and its runtime-selection path
  • Required access: Ability to submit code or execution requests to the affected API; the CVSS rating indicates a potentially network-reachable, low-complexity scenario
  • Trigger point: A sandbox execution request that causes the API to select LocalRuntime
  • Why exploitation is possible: The API can silently substitute a host-backed runtime for the intended isolated environment, allowing submitted code to execute with the permissions of the DB-GPT process

Why this happens

The underlying bug is an authorization and isolation failure: the sandbox API does not reliably enforce the security boundary promised by its interface. Instead of failing closed when the isolated runtime is unavailable or unsuitable, it falls back to LocalRuntime without clearly rejecting the request or requiring an explicitly trusted configuration. This behavior maps to CWE-284: Improper Access Control, because execution is permitted outside the intended authorization and containment boundary.

The underlying bug is an authorization and isolation failure: the sandbox API does not reliably enforce the security boundary promised by its interface. Instead of failing closed when the isolated runtime is unavailable or unsuitable, it falls back to LocalRuntime without clearly rejecting the request or requiring an explicitly trusted configuration. This behavior maps to CWE-284: Improper Access Control, because execution is permitted outside the intended authorization and containment boundary.

Potential impact

  • An attacker may execute arbitrary code on the DB-GPT host
  • The application process may expose credentials, files, or environment data
  • Host and connected service integrity could be compromised
  • The attacker could move laterally into dependent systems or workloads
  • Data may be modified, deleted, or exfiltrated
  • An attacker may execute arbitrary code on the DB-GPT host
  • The application process may expose credentials, files, or environment data
  • Host and connected service integrity could be compromised
  • The attacker could move laterally into dependent systems or workloads
  • Data may be modified, deleted, or exfiltrated

General mitigation guidance

Mitigation generally focuses on enforcing isolation as a mandatory security property and preventing transparent fallback to a less trusted runtime.

Common defensive patterns include:

  • Fail closed when the sandbox runtime cannot be created or verified
  • Require explicit administrative configuration before any host-backed runtime is usable
  • Separate sandbox execution identities from application and host identities
  • Apply least privilege, filesystem restrictions, network egress controls, and resource limits to execution workers
  • Treat submitted code and execution parameters as untrusted input
  • Expose runtime selection and isolation status clearly in logs and API responses
  • Keep sensitive credentials and host interfaces unavailable to execution environments where possible

Mitigation generally focuses on enforcing isolation as a mandatory security property and preventing transparent fallback to a less trusted runtime.

Common defensive patterns include:

  • Fail closed when the sandbox runtime cannot be created or verified
  • Require explicit administrative configuration before any host-backed runtime is usable
  • Separate sandbox execution identities from application and host identities
  • Apply least privilege, filesystem restrictions, network egress controls, and resource limits to execution workers
  • Treat submitted code and execution parameters as untrusted input
  • Expose runtime selection and isolation status clearly in logs and API responses
  • Keep sensitive credentials and host interfaces unavailable to execution environments where possible

How teams detect issues like this

Organizations can look for:

  • Static analysis and code review signals involving fallback from isolated runtimes to local or host execution
  • Tests that deliberately make the sandbox unavailable and verify that requests are rejected rather than redirected
  • Policy checks requiring explicit approval for local execution providers
  • Runtime logs showing sandbox requests handled by LocalRuntime
  • Process, file, and network monitoring for unexpected child processes or host resource access by DB-GPT workers
  • Automated security review tools that flag fail-open authorization and isolation decisions

Organizations can look for:

  • Static analysis and code review signals involving fallback from isolated runtimes to local or host execution
  • Tests that deliberately make the sandbox unavailable and verify that requests are rejected rather than redirected
  • Policy checks requiring explicit approval for local execution providers
  • Runtime logs showing sandbox requests handled by LocalRuntime
  • Process, file, and network monitoring for unexpected child processes or host resource access by DB-GPT workers
  • Automated security review tools that flag fail-open authorization and isolation decisions

Sources

SourceLink
gist.github.comgist.github.com/Ro1ME/884fbbd589998b81fa05c20ac205569f
github.comgithub.com/eosphoros-ai/DB-GPT/issues/3082

Frequently asked

questions

It may be exploitable over the network when the affected sandbox API is exposed to an attacker who can submit execution requests. Actual scope depends on deployment exposure and access controls.

The CVSS score is consistent with a scenario requiring little or no authentication, but deployments may add authentication or authorization barriers. The important prerequisite is the ability to reach and invoke the sandbox execution interface.

Ensure sandbox execution fails closed when isolation cannot be established. Do not silently substitute a host-backed runtime, and require explicit trusted configuration for any local execution mode.

Treat isolation boundaries as mandatory security controls, test failure paths, apply least privilege to execution workers, and monitor for unexpected local-runtime use or host-level process activity.

It may be exploitable over the network when the affected sandbox API is exposed to an attacker who can submit execution requests. Actual scope depends on deployment exposure and access controls.

The CVSS score is consistent with a scenario requiring little or no authentication, but deployments may add authentication or authorization barriers. The important prerequisite is the ability to reach and invoke the sandbox execution interface.

Ensure sandbox execution fails closed when isolation cannot be established. Do not silently substitute a host-backed runtime, and require explicit trusted configuration for any local execution mode.

Treat isolation boundaries as mandatory security controls, test failure paths, apply least privilege to execution workers, and monitor for unexpected local-runtime use or host-level process activity.

Find out what's already
exploitable in your codebase.