CVE-2026-142652: Agenta: SQL injection in tracing full-text content filter
Agenta is an open-source LLMOps platform. Prior to 0.122.5, the full-text content filter accepted by POST /api/spans/query passes a user-supplied search term through api/oss/src/dbs/postgres/tracing/utils.py in handleftsfield without parameter binding or escaping, allowing an authenticated user who can view spans in one project to alter a query against the tracing database. The attacker can use blind boolean or timing conditions to read traces and spans from every project and tenant, while the separate database containing users, API keys, and secrets is not reachable through this query. This issue is fixed in version 0.122.5.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.122.5
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated user who has permission to view spans in any one project can exploit the vulnerable full-text content filter. No user interaction is required, and the vulnerable endpoint is POST /api/spans/query.
What data could an attacker access?
An attacker can use blind boolean or timing-based SQL injection conditions to read traces and spans across every project and tenant in the tracing database. The separate database holding users, API keys, and secrets is not reachable through this query.
Which versions are affected and what is the fix?
Agenta versions prior to 0.122.5 are affected. Upgrade to version 0.122.5, which fixes the handling of the full-text content filter.