CVE-2026-142652: Agenta · SQL injection in tracing full-text content filter
Affects agentaSource GCVE Database
Not known to be exploited · CVSS 7.7 High : upgrade to 0.122.5 soon.
Data as of 3 Dec 2026, 19:16 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.7 |
|---|
- Patch
- Available – fixed in 0.122.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 3 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.
What to do
Upgrade agenta to 0.122.5.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIagenta | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
### Impact The full-text `content` filter used by the span query endpoint (`POST /api/spans/query`) inserted the user-supplied search term into the SQL query without parameter binding or escaping. A single quote in the search term ends the SQL string literal, and the rest of the term runs as SQL. Any authenticated user who can view spans in their own project can send this filter. The query runs against the tracing database, so an attacker can read tracing data from every project and every tenant, including other tenants' traces and spans. The attacker reads the data blind, for example through boolean or timing conditions. The tracing data is stored in a separate Postgres database. Users, API keys and secrets are stored in a different database, and this query cannot reach them. ### Affected code `api/oss/src/dbs/postgres/tracing/utils.py`, function `_handle_fts_field`. ### Patches The issue is fixed in version 0.122.5. The search term is now passed to `websearch_to_tsquery` as a bound query parameter. A regression test covers quoted and SQL-like search terms. ### Workarounds There is no workaround. Upgrade to 0.122.5 or later. Self-hosted operators can reduce the impact by running the API with a database role that is not a superuser and that has access only to the Agenta databases. ### Credits Reported by Lee Zhi Yang ([@Xeraaaaaaa](https://github.com/Xeraaaaaaa)).
References
- github.com/Agenta-AI/agenta/security/advisories/GHSA-96p7-33vc-xgf2 (opens in a new tab)
- github.com/Agenta-AI/agenta/pull/7529 (opens in a new tab)
- github.com/Agenta-AI/agenta/commit/345d6d3e22bc0ece92ebefdf11d8e453c658e51c (opens in a new tab)
- github.com/Agenta-AI/agenta (opens in a new tab)
- github.com/Agenta-AI/agenta/releases/tag/v0.122.5 (opens in a new tab)