CVE Professor
/
All CVEs
CVE-2026-142652

CVE-2026-142652 — Agenta-AI Agenta — CWE-89

HIGH CVSS 7.7 Shodan

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

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

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Changed S:C
Confidentiality High C:H
Integrity None I:N
Availability None A:N
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-142652
CVSS 7.7/10 · HIGH · 03.12.2026
CWE: CWE-89
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
SQL Injection (SQLi)
Summary: ### 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.
Affected: Agenta-AI agenta

⚡ ATTACK VECTOR
Network / Remote (AV:N) · low-privilege account (PR:L) · no user interaction (UI:N) · low attack complexity (AC:L).
⚠️ Scope changes (S:C) — impact can cross security boundaries.

🌍 REAL WORLD IMPACT
All confidential data readable/stealable; pivot to other systems possible.

🛡️ REMEDIATION
→ Apply vendor security update for Agenta-AI agenta.
→ Use prepared statements and parameterized queries.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
⚠️ Planned maintenance (2 weeks).

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Agenta-AI agenta"
CVSS Score
7.7 / 10 · CVSS HIGH
Weakness Types (CWE)
Affected Products (1)
Agenta-AI:agenta
References & Advisories (4)
Related CVEs
9.9
CVE-2026-45262
FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.2, Core/Where.php::s
9.8
CVE-2026-145040
WWBN AVideo before 29.9.0 contains a blind sql injection vulnerability that allows unauthenticated attackers t
9.3
CVE-2026-136358
Joomla Extension - joomboost.com - Unauthenticated SQL injection in JoomMedia extension 1.0.0-6.1.5 - The list
9.3
CVE-2026-136369
Joomla Extension - joomboost.com - Unauthenticated SQL injection in JoomInvoice extension 1.0.0-6.5.2 - Inputs
9.3
CVE-2026-136376
Joomla Extension - joomboost.com - SQL injection in search time filters in JoomRecipe extension 1.0.0-6.9.8 -
9.3
CVE-2026-77432
activity_notification provides integrated user activity notifications for Ruby on Rails. Prior to version 2.7.
9.2
CVE-2026-145153
LangChain4j before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 contains an injection vulner