# CVE-2026-123020: eosphoros-ai DB-GPT Jinja2 Template __init__.py FileBasedSkill.get_prompt special elements in template engine

Status: published. Published: 2026-11-05. Updated: 2026-11-05.

A security vulnerability has been detected in eosphoros-ai DB-GPT up to 0.8.1. The affected element is the function FileBasedSkill.get_prompt of the file packages/dbgpt-core/src/dbgpt/agent/skill/claude_skill/__init__.py of the component Jinja2 Template Handler. The manipulation leads to improper neutralization of special elements used in a template engine. The attack may be initiated remotely. The exploit has been disclosed publicly and may be used. Upgrading to version 0.8.2 is sufficient to fix this issue. The identifier of the patch is a9e7a3c026d114fcfb4ffe3eaf78851a636ded16. It is suggested to upgrade the affected component.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: VulDB) — https://github.com/eosphoros-ai/DB-GPT/pull/3111
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: VulDB) — https://github.com/eosphoros-ai/DB-GPT/commit/a9e7a3c026d114fcfb4ffe3eaf78851a636ded16
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: VulDB) — https://github.com/eosphoros-ai/DB-GPT/releases/tag/v0.8.2

## Affected products and versions

- eosphoros-ai / DB-GPT: 0.8.0 (affected); 0.8.1 (affected); 0.8.2 (unaffected). Source: CNA: VulDB

## Severity and prioritization

- CVSS 4.0: 5.3 (medium); CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P; source: CNA: VulDB

- CVSS 3.1: 6.3 (medium); CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C; source: CNA: VulDB

- CVSS 3.0: 6.3 (medium); CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C; source: CNA: VulDB

- CVSS 2.0: 7.5 (high); AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C; source: CNA: VulDB

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-1336, CWE-791

## Exploit evidence

- exploit: https://github.com/ybyu-ieu/agent-security-advisories/blob/main/dbgpt/dbgpt-skill-template-jinja2-ssti-rce.md (CNA: VulDB)

## References

- https://vuldb.com/vuln/431394 (CNA: VulDB; vdb-entry, technical-description)

- https://vuldb.com/vuln/431394/cti (CNA: VulDB; signature, permissions-required)

- https://vuldb.com/cve/CVE-2026-123020 (CNA: VulDB; third-party-advisory)

- https://vuldb.com/submit/1033118 (CNA: VulDB; third-party-advisory)

- https://github.com/eosphoros-ai/DB-GPT/issues/3291 (CNA: VulDB; issue-tracking)

- https://github.com/eosphoros-ai/DB-GPT/pull/3111 (CNA: VulDB; issue-tracking, patch)

- https://github.com/ybyu-ieu/agent-security-advisories/blob/main/dbgpt/dbgpt-skill-template-jinja2-ssti-rce.md (CNA: VulDB; exploit)

- https://github.com/eosphoros-ai/DB-GPT/commit/a9e7a3c026d114fcfb4ffe3eaf78851a636ded16 (CNA: VulDB; patch)

- https://github.com/eosphoros-ai/DB-GPT/releases/tag/v0.8.2 (CNA: VulDB; patch)

- https://github.com/eosphoros-ai/DB-GPT/ (CNA: VulDB; product)

## Provenance

- CNA: VulDB: https://www.cve.org/CVERecord?id=CVE-2026-123020; retrieved 2026-11-05; source updated 2026-11-05

Revision: 04e07d7793c86c6a784708470df0c46fe1df96adf92a21ee8fc5ddd11440abe6

Canonical: https://y2.dev/cve/CVE-2026-123020

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.