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/c09e6aca2e9c7280ca4fabb1f44dcd2a to your computer and use it in GitHub Desktop.

Select an option

Save Ro1ME/c09e6aca2e9c7280ca4fabb1f44dcd2a to your computer and use it in GitHub Desktop.
CVE-2026-51862 - Directory Traversal in DB-GPT (agentic_data_api.py:skill_upload)

CVE-2026-51862

Type: Directory Traversal Product: DB-GPT Affected versions: 0.8.0 Affected component: packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/agentic_data_api.py:skill_upload Suggested CWE: CWE-22 (Directory Traversal) Reference: eosphoros-ai/DB-GPT#3026

Description

DB-GPT 0.8.0 contains directory traversal in skill_upload (packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/agentic_data_api.py:40). A remote attacker can use the validated exploitation path to write files outside the intended workspace or storage boundary.

Reproduction Notes (condensed, sanitized)

Condensed from the authorized local validation used for the original report; local filesystem paths are replaced with <local-path>.

=== STEP 1: Setup Environment ===

  1. Clone repository: git clone https://github.com/eosphoros-ai/DB-GPT.git
  2. Checkout vulnerable version: git checkout v0.8.0
  3. Navigate to project root: cd DB-GPT
  4. Install dependencies: pip install -e ".[default]"
  5. Configure environment: cp .env.template .env
  6. Start DB-GPT service: python -m dbgpt.app.dbgpt_server === STEP 2: Verify Service Running ===
  7. Wait for: "Application startup complete" message
  8. Service runs on: http://localhost:5670
  9. Verify endpoint exists: curl http://localhost:5670/api/v1/skills/upload === STEP 3: Create Malicious Skill File === Create a test file (malicious_skill.py) with path traversal filename: echo "print('Malicious code executed')" > test_payload.py …

Discoverer

Ro1ME

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