Impact
This vulnerability arises from improper neutralization of special elements in the Jinja2 template engine used by the FileBasedSkill.get_prompt function of DB‑GPT. The flaw allows an attacker to inject arbitrary template payloads that are evaluated by the engine, leading to server‑side template injection and potentially remote code execution. The weakness corresponds to CWE‑1336 (Template Injection) and CWE‑791 (Use of Uninitialized Variable).
Affected Systems
The flaw exists in eosphoros‑ai DB‑GPT versions up to and including 0.8.1. The affected component resides in packages/dbgpt-core/src/dbgpt/agent/skill/claude_skill/__init__.py. The patch that resolves the issue is available in release v0.8.2, and the corresponding commit identifier is a9e7a3c026d114fcfb4ffe3eaf78851a636ded16.
Risk and Exploitability
The CVSS score for this vulnerability is 5.3, indicating a moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Attack sources are remote, and the exploit has been publicly disclosed. Organizations should treat this as a moderate but actionable risk; remote attackers could potentially gain code execution if the template engine processes unsanitized data. Updating to the patched version mitigates the risk, while other controls can reduce exploitation likelihood.
OpenCVE Enrichment