CVE-2025-7894 Details
Description
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.
A critical SQL injection vulnerability has been identified in Onyx versions through 0.29.1. The issue arises in the Chat Interface component, specifically within the 'generate_simple_sql' function of the file 'backend/onyx/agents/agent_search/kb_search/nodes/a3_generate_simple_sql.py'. This vulnerability allows remote attackers to inject arbitrary SQL code, potentially leading to unauthorized access to sensitive database information, such as user credentials.
It is recommended to disable the vulnerable Knowledge Graph query tool in 'choose_tool.py' or implement strict input validation to block suspicious patterns. A definitive fix would involve refactoring the 'generate_simple_sql' function to prevent SQL injection, such as by using parameterized queries with a trusted library like SQLAlchemy.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 21, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.cnblogs.com/aibot/p/18982747 | CISA-ADP | ExploitThird Party Advisory |
| https://vuldb.com/?ctiid.317009 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.317009 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.615322 | [email protected] | Third Party AdvisoryVDB Entry |
| https://www.cnblogs.com/aibot/p/18982747 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| onyx onyx | <= 0.29.1 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Sep 17, 2025 | Initial Analysis | [email protected] |
| Jul 21, 2025 | CVE Modified | CISA-ADP |
| Jul 20, 2025 | New CVE Received | [email protected] |