Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to agno-fronted app
-
DeliveryIdentify metadata-accepting endpoint
-
ExploitSubmit crafted metadata key/value
-
ExecutionTrigger f-string SQL concatenation in delete_by_metadata
-
PersistClickHouse executes injected clause
-
ImpactDelete rows or exfiltrate via blind/error SQLi
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires (1) the target deployment using the ClickHouse vector database backend (ClickHouseDb in libs/agno/agno/vectordb/clickhouse/clickhousedb.py) - installations on PgVector, LanceDB, or any other backend are not affected, (2) the application reaching the vulnerable delete_by_metadata() method with attacker-influenced dictionary keys or values, which typically means an exposed agent tool, API endpoint, or admin function that forwards user-supplied metadata into vector cleanup, and (3) low-privileged authenticated access to that interface (CVSS PR:L). Exploitation does not need user interaction (UI:N) or attack prerequisites (AT:N) and is network-reachable (AV:N) with low complexity (AC:L), but is bounded by the fact that delete_by_metadata is not necessarily exposed to anonymous traffic - single-tenant agent deployments where only operators trigger deletes are not realistically reachable. |
| Impact | CVSS 4.0 8.7 (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L) describes a network-reachable, low-complexity attack requiring low privileges and no user interaction, with high confidentiality and integrity impact and low availability impact - consistent with an authenticated SQLi that can read and tamper with the vector store but not necessarily crash it. EPSS and CISA KEV data are not provided in the input, so real-world exploitation probability and active-exploitation status cannot be quantified; no public exploit identified at time of analysis. Practical risk depends on agno deployment shape: if metadata-bearing calls reach delete_by_metadata via an LLM tool or agent endpoint that forwards user-controlled fields, the PR:L requirement may be satisfied by any application user and the real risk approaches the CVSS rating; in closed, single-tenant agent harnesses where metadata is operator-supplied, exposure is lower. The CVSS vector indicates network reach, but exploitation still requires that the calling application expose delete_by_metadata to untrusted input - verify this against your integration before deprioritising. |
| Exploit ScenarioDerived | An attacker with low-privileged access to an agno-powered application - for example a chat user whose prompts feed metadata into an agent tool that calls ClickHouseDb.delete_by_metadata - supplies a crafted metadata key such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – May 29, 2026
SQL injection in agno 2.6.5's ClickHouse vector database backend allows authenticated attackers to inject arbitrary SQL via metadata keys and values passed to delete_by_metadata(). The flaw stems from unsafe f-string interpolation in clickhousedb.py and enables row deletion, targeted data tampering, and information extraction through error-based or blind SQLi. No public exploit identified at time of analysis, but a vendor patch (PR #7883) is available and the issue was disclosed by VulnCheck.
Earlier versions of this analysis (2)
SQL injection in agno 2.6.5's ClickHouse vector database backend allows authenticated attackers to inject arbitrary SQL via the delete_by_metadata() method, enabling row deletion, targeted record manipulation, or data extraction through error-based and blind techniques. The flaw stems from unsafe f-string interpolation of user-controlled metadata keys and values in clickhousedb.py, and an upstream fix is available (PR #7883) replacing string interpolation with ClickHouse named parameters. No public exploit identified at time of analysis, but the patch and detailed VulnCheck advisory provide a clear roadmap for exploitation.
SQL injection in agno 2.6.5's ClickHouse vector database backend allows authenticated attackers to execute arbitrary SQL via the delete_by_metadata() method, which unsafely interpolates user-controlled metadata keys and values into queries through Python f-strings. Successful exploitation enables row deletion, data extraction via error-based or blind injection, and tampering with vector store contents used by AI agent workflows. No public exploit identified at time of analysis, though the patched PR diff and unit tests publicly document the injection vectors, making PoC reconstruction trivial.
RemediationAI
Patch available per vendor advisory: upgrade agno to the release that contains PR https://github.com/agno-agi/agno/pull/7883, which rewrites delete_by_metadata to pass metadata keys and values as ClickHouse named parameters ({meta_key_N:String} / {meta_val_N:String|Float64|Bool}) instead of f-string-interpolated literals; the exact released patched version is not independently confirmed from the provided data, so pin to the first agno tag that includes commits 26a7439 and a0ec993. Until you can upgrade, the most effective compensating control is to stop forwarding untrusted metadata into ClickHouseDb.delete_by_metadata - either restrict the call site to operator-only code paths, or wrap it with a strict allowlist that rejects any key not matching ^[A-Za-z0-9_]+$ and coerces values to expected types before the call; this preserves functionality for trusted callers but blocks injection payloads. If agent tools expose deletion to end users, disable the delete-by-metadata tool entirely as an interim measure, accepting the loss of programmatic vector cleanup. Track the upstream issue at https://github.com/agno-agi/agno/issues/7866 and the VulnCheck advisory at https://www.vulncheck.com/advisories/agno-sql-injection-via-clickhouse-delete-by-metadata for a confirmed fixed version.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
agno is an open-source Python framework for building AI agents (CPE cpe:2.3:a:agno-agi:agno) that integrates with multiple vector database backends, including ClickHouse via the clickhouse_connect driver. The vulnerability is a classic CWE-89 (Improper Neutralization of Special Elements used in an SQL Command): the delete_by_metadata() method in libs/agno/agno/vectordb/clickhouse/clickhousedb.py iterated over caller-supplied metadata dictionaries and built ClickHouse JSONExtractString/JSONExtractFloat/JSONExtractBool WHERE conditions using Python f-string interpolation of both the dict key and value. Because neither identifier nor literal was passed through the ClickHouse named-parameter system ({name:Type} placeholders), any string that escaped the surrounding single quotes - for example a key containing ') = 1 OR (JSONExtractString(toString(filters), ' - was concatenated directly into the executed SQL. The fix replaces interpolation with named ClickHouse parameters (meta_key_N / meta_val_N typed as String, Float64, or Bool) so the driver performs proper escaping.
Know when Agno gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
Primary rating from Vendor (VulnCheck) · only source for this CVE.
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.org
agno 2.6.5 contains a SQL injection vulnerability in the ClickHouse vector database backend that allows attackers to inject arbitrary SQL expressions by supplying malicious metadata keys and values to the delete_by_metadata() method. Attackers can exploit the unsafe f-string interpolation in clickhousedb.py to delete all rows, target specific rows, or extract information through error-based or blind SQL injection techniques.
Executive ViewAI
agno 2.6.5 deployments using ClickHouse backend are vulnerable to SQL injection by authenticated users, enabling deletion, modification, and extraction of database records. While no public exploit identified at time of analysis, the vulnerability is straightforward to exploit for any user with application access, directly threatening data integrity and confidentiality. Immediate patching is essential to restore secure data protection.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Model-influenced tool calls in the Agno agent framework (agno-agi) through 3.0.6 and 3.1.1 reach Python exec()/runpy()/s
Missing authentication in Agno (agno-agi) through version 2.7.3 and 3.0.6 causes AgentOS agent endpoints to be reachable
Remote code execution in Agno prior to version 2.3.24 allows attackers to execute arbitrary Python code by manipulating
Unsafe reflection in Agno's PandasTools (all versions through 3.1.11) lets a model-controlled function name reach getatt
OS command injection in the Agno agent framework's CodingTools.run_shell helper (versions up to and including 3.0.9) let
Agno's Team Delegation Feature runs member agents without a confirmation gate, allowing an actor who can influence deleg
Code injection in the PythonTools component of Agno (agno-agi/agno) through version 3.0.6 lets an attacker who can influ
EUVD-2026-33358
GHSA-82m5-3pcp-hccq
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB