Skip to main content

Agenta CVE-2026-142652

| EUVDEUVD-2026-143493 HIGH
SQL Injection (CWE-89)
2026-12-03 GitHub_M GHSA-96p7-33vc-xgf2
7.7
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege project user
  2. Delivery
    Send crafted content filter to /api/spans/query
  3. Exploit
    Break out of SQL string literal with quote
  4. Execution
    Run blind boolean/timing conditions
  5. Impact
    Exfiltrate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

agenta < 0.122.5

Affected Packages

pypi agenta fix: 0.122.5

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

Vendor (GitHub_M) PRIMARY 7.7 HIGH
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
vuln.today AI 7.7 HIGH

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).

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
Dec 03, 2026 - 18:04 EUVD
CVE Published
Dec 03, 2026 - 16:35 cve.org
HIGH 7.7

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.9%
Top 40% exploitable
Prevalence
Low
niche open-source LLMOps platform, limited production/enterprise footprint
Threat Intel
1
1 source
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy