Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege project user
-
DeliverySend crafted content filter to /api/spans/query
-
ExploitBreak out of SQL string literal with quote
-
ExecutionRun blind boolean/timing conditions
-
ImpactExfiltrate cross-tenant traces and spans
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 | Requires an authenticated account that can view spans in at least one Agenta project, and the attacker must reach the POST /api/spans/query endpoint and supply the full-text 'content' filter, which flows through _handle_fts_field and is concatenated into websearch_to_tsquery without parameter binding (affects default behavior of versions <= 0.122.4 - no non-default feature toggle needed). Exploitation is limited by the need for valid authentication (any project-level span-viewing user suffices, so the bar is low on multi-tenant/shared instances) and by the blind nature of extraction (data is read via boolean/timing inference, not returned directly). It cannot reach the separate database holding users, API keys, and secrets. No workaround exists; the vendor states upgrading to 0.122.5 is the fix, and self-hosted operators can only reduce impact by running the API under a non-superuser DB role scoped to the Agenta databases. |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N = 7.7 High) is internally consistent with the advisory: a network-reachable endpoint (POST /api/spans/query), low attack complexity (a single quote breaks out of the SQL string literal), and a scope change (S:C) that correctly captures reading data belonging to other projects and tenants beyond the attacker's authorization boundary. PR:L is justified because the GHSA states any authenticated user who can view spans in their own project can send the filter, so this is not unauthenticated. Impact is confidentiality-only (C:H, I:N, A:N): the attacker reads traces blind via boolean/timing conditions but the advisory does not describe writes or destructive effect, and the separate database holding users, API keys, and secrets is explicitly stated to be unreachable through this query. The vuln.today Decision label is 'this_week' (not act_now/emergency). No EPSS score, no KEV listing, and no SSVC fields were supplied in the input, so exploitation probability and automatability cannot be quantified from the data; this is a confirmed, well-documented SQL injection but there is no signal of active exploitation. Net: a genuine multi-tenant data-confidentiality priority for anyone running Agenta, but the available signals point to patch-this-week urgency rather than emergency, and the ceiling of damage is read-only cross-tenant trace disclosure, not credential or secret theft. |
| Exploit ScenarioDerived | A legitimate low-privilege user of one Agenta project (or any attacker who has obtained such an account on a shared/multi-tenant instance) submits a POST /api/spans/query request whose full-text content filter contains a single quote followed by injected SQL. Because the term reaches _handle_fts_field unescaped and unbound, the injected clause runs against the tracing database, letting the attacker use blind boolean or timing conditions to read traces and spans from every other project and tenant. No public working exploit is referenced, but the patch diff and regression tests publicly demonstrate the exact injectable sink. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 03, 2026
SQL injection in Agenta's span query endpoint (POST /api/spans/query) allows an authenticated user who can view spans in a single project to read tracing data belonging to every project and tenant, because the full-text 'content' filter is concatenated into a PostgreSQL websearch_to_tsquery call without parameter binding in api/oss/src/dbs/postgres/tracing/utils.py (_handle_fts_field). Affects versions up to and including 0.122.4; the flaw is exploitable by default with no special configuration, though extraction is blind (boolean or timing inference) and the separate database holding users, API keys and secrets cannot be reached through this query. A public proof-of-concept or exploit is not referenced in the available intelligence, and there is no CISA KEV listing; the vendor-released patch is version 0.122.5, which passes the search term as a bound parameter and adds regression tests for quoted and SQL-like terms.
RemediationAI
Vendor-released patch: 0.122.5. Upgrade Agenta to version 0.122.5 or later, available at https://github.com/Agenta-AI/agenta/releases/tag/v0.122.5, which binds the full-text search term in _handle_fts_field as a query parameter (and also parameterizes the ltree folder-prefix filter) as shown in https://github.com/Agenta-AI/agenta/pull/7529; the full advisory is at https://github.com/Agenta-AI/agenta/security/advisories/GHSA-96p7-33vc-xgf2. The vendor states there is no workaround and that upgrading is required; self-hosted operators can only reduce the blast radius by running the API with a database role that is not a superuser and that has access solely to the Agenta databases, which limits what an injected query can reach but does not prevent cross-tenant trace and span disclosure through the vulnerable endpoint. Because the issue requires an authenticated user with span-viewing rights, reviewing project memberships and span-view permissions on shared or multi-tenant instances is a complementary containment step while patching is scheduled.
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
Agenta stores traces and spans in a dedicated PostgreSQL database and exposes a query API whose filter builder (api/oss/src/dbs/postgres/tracing/utils.py, function _handle_fts_field) constructs a full-text search against the 'simple' text-search configuration over the spans.attributes and spans.events columns (to_tsvector('simple', ...)). Rather than binding the caller-supplied search value, the code interpolated it into a SQLAlchemy text() fragment passed to websearch_to_tsquery, producing the classic CWE-89 injection surface: a single quote terminates the string literal and the remainder of the term is parsed as SQL. The fix replaces the interpolated fragment with bindparam(None, str(value), type_=Text), so the term is sent to the server as a query parameter; the accompanying regression tests assert that the literal value never appears in compiled SQL and that two content conditions bind distinct values. The same pull request parameterizes an ltree prefix filter in api/oss/src/dbs/postgres/folders/dao.py, which had also been built via string interpolation with manual quote doubling, replacing it with a bindparam cast to LtreeType. The scope change in the CVSS vector reflects that the injected query executes with the tracing database's own privileges across all tenants' trace and span rows, while a separate database holds identity and secret material and is not reachable from this code path.
Know when Agenta 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
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Network endpoint and trivial quote-breakout give AV:N/AC:L; any span-viewing user is required so PR:L; cross-tenant read crosses the authorization boundary (S:C) with confidentiality-only impact (C:H, I:N, A:N).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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 _handle_fts_field 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.
Technical POC Analysis
CWE-89 (SQL Injection) in Agenta's own first-party API code, not in a third-party library.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Agenta's span query endpoint contains a high-severity SQL injection flaw (CVE-2026-142652) that allows an authenticated user with limited span visibility to read tracing data from all projects and tenants. This cross-tenant data exposure could affect any organization using Agenta for observability, risking unauthorized access to sensitive tracing information and potential regulatory violations.
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.
Arbitrary code execution in Agenta-API prior to version 0.48.1 allows authenticated users to escape the RestrictedPython
Authenticated attackers can execute arbitrary code on Agenta API servers through server-side template injection in the e
Server-side request forgery in Agenta before 0.122.5 lets a workspace member who holds workflow or evaluator edit rights
EUVD-2026-143493
GHSA-96p7-33vc-xgf2
NVD
CVE.org
EPSS
Exploit-DB