Onyx
CVE-2025-7894
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain valid Onyx user credentials (via phishing, credential stuffing, or insider access)
-
DeliveryAuthenticate to Chat Interface
-
ExploitCraft malicious SQL injection payload in knowledge base search query
-
InstallSubmit search request to generate_simple_sql function
-
C2Function concatenates unvalidated input into SQL query
-
ExecuteMalicious query executes against backend database
-
ImpactExfiltrate sensitive data, modify records, or execute additional queries
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | Exploitation requires an authenticated user account with access to the Chat Interface knowledge base search functionality. The attacker must submit specially crafted search queries to the generate_simple_sql function containing SQL metacharacters or injection syntax. No non-default configuration is explicitly stated as required, suggesting the vulnerability is present in standard Onyx deployments. Exploitation is prevented or significantly hindered by: network-level access restrictions (if Onyx is not internet-facing or access is restricted to trusted networks), lack of valid user credentials (authentication is mandatory), and database permission restrictions (if the Onyx database account has read-only or limited privileges, damage is constrained, though confidentiality breaches remain possible). The vulnerability does NOT affect unauthenticated remote attackers. |
| Impact | The CVSS 4.0 score of 2.1 reflects low severity due to constraints: authentication is required (PR:L), impact is limited to confidentiality, integrity, and availability within the component scope only (VC:L/VI:L/VA:L with SC:N/SI:N/SA:N indicating no scope change), and attack complexity is low. However, EPSS percentile 21 (0.07% exploitation probability) suggests this vulnerability has low statistical likelihood of real-world exploitation despite public POC availability-a potential signal that exploitation requires specific environment configuration or that the vulnerability window is narrow. The contradiction between 'critical' classification in the description and low CVSS/EPSS scores warrants skepticism; review whether the initial 'critical' label applies to overall product risk rather than this specific flaw. Positive exploitation signals: public exploit code, vendor non-responsiveness (no patch timeline). Negative signals: authentication barrier, limited damage scope, low EPSS probability. Risk determination: Moderate for authenticated users on internet-facing Onyx instances; Low for air-gapped or internal deployments with restricted access controls. |
| Exploit ScenarioDerived | An authenticated user of Onyx's Chat Interface crafts a knowledge base search query containing SQL injection payloads (e.g., embedding single quotes, UNION clauses, or comment sequences within natural language search terms). The generate_simple_sql function concatenates this user input into a SQL query without sanitization, allowing the attacker to modify the query logic-e.g., exfiltrating sensitive data from the knowledge base, modifying stored records, or extracting information from other database tables accessible to the Onyx database connection. Exploitation requires valid authentication to the Chat Interface; an attacker cannot exploit this remotely without a legitimate user account or successful credential compromise. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
SQL injection in Onyx Chat Interface allows authenticated remote attackers to manipulate database queries via the generate_simple_sql function in the KB search component. Versions up to 0.29.1 are affected. While the CVSS score is low (2.1) due to limited impact scope and authentication requirement, public exploit code exists and the vendor has not responded to early disclosure, increasing real-world risk for users who cannot rapidly patch.
RemediationAI
No vendor-released patch identified at time of analysis, as the vendor has not responded to early disclosure notification. Immediate remediation options are limited: upgrade to a version beyond 0.29.1 if released by the maintainers (verify release notes at https://github.com/OnyxProject or project repository), or implement input validation and output encoding mitigations at the application layer. Compensating controls include restricting Chat Interface access to trusted internal users only via network segmentation or authentication gateway (reduces attack surface from remote to internal-only, accepting reduced functionality), disabling the KB search feature if not essential to operations (eliminates attack vector entirely at cost of feature loss), and implementing database query result monitoring to detect anomalous SQL patterns (does not prevent exploitation but enables rapid incident response). Database-level mitigation: configure database accounts used by Onyx with minimal required privileges (read-only where feasible, no DDL permissions) to limit damage from successful injection, though this does not prevent data exfiltration. Recommend contacting Onyx maintainers directly to request patch priority given non-response to initial disclosure.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in the generate_simple_sql function within backend/onyx/agents/agent_search/kb_search/nodes/a3_generate_simple_sql.py, part of Onyx's Chat Interface component. Classified as CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), this represents inadequate input validation or output encoding when constructing SQL queries. The function appears to accept user-controlled input that is incorporated directly into SQL statements without proper sanitization or parameterized query handling. Onyx is an open-source knowledge base and agent orchestration platform that integrates conversational AI with search capabilities, making the Chat Interface a critical attack surface where user queries directly influence backend data operations.
Know when Onyx 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
A vulnerability, which was classified as critical, has been found in Onyx up to 0.29.1. This issue affects the function generate_simple_sql of the file backend/onyx/agents/agent_search/kb_search/nodes/a3_generate_simple_sql.py of the component Chat Interface. The manipulation leads to sql injection. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
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.
Affected Products (CPE)CVE.org
In danswer-ai/danswer v0.3.94, administrators can set the visibility of pages within a workspace, including the search p
Cross-user credential disclosure in Onyx (open-source AI platform) lets any low-privileged BASIC_ACCESS user retrieve an
NVIDIA Mellanox OS, ONYX, Skyway, and MetroX-3 XCC contain a vulnerability in the web support, where an attacker can cau
NVIDIA Mellanox OS, ONYX, Skyway, MetroX-2 and MetroX-3 XC contain a vulnerability in the LDAP AAA component, where a us
NVIDIA Mellanox OS, ONYX, Skyway, MetroX-2 and MetroX-3 XC contain a vulnerability in ipfilter, where improper ipfilter
Plesk Onyx 17.8.11 has accessKeyId and secretAccessKey fields that are related to an Amazon AWS Firehose component. Rate
Credential disclosure in Onyx 4.6.6 allows any authenticated user to retrieve plaintext API keys and authorization heade
Privilege escalation in Onyx Enterprise Edition (versions prior to 4.3.0) allows any authenticated curator to modify use
Onyx versions prior to 3.0.9, 3.1.6, and 3.2.6 expose an authorization bypass in the GET /chat/file/{file_id} endpoint t
A GET-based XSS reflected vulnerability in Plesk Onyx 17.8.11 allows remote unauthenticated users to inject arbitrary Ja
Onyx versions before 3.0.9, 3.1.6, and 3.2.6 permit authenticated users to terminate any other user's active chat sessio
Cross-site scripting (CWE-79) in the Onyx chat/knowledge platform through version 5.0.0, specifically in the Craft featu
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB