Skip to main content

Onyx CVE-2025-7894

LOW
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2025-07-20 cna@vuldb.com
2.1
CVSS 4.0 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Obtain valid Onyx user credentials (via phishing, credential stuffing, or insider access)
  2. Delivery
    Authenticate to Chat Interface
  3. Exploit
    Craft malicious SQL injection payload in knowledge base search query
  4. Install
    Submit search request to generate_simple_sql function
  5. C2
    Function concatenates unvalidated input into SQL query
  6. Execute
    Malicious query executes against backend database
  7. Impact
    Exfiltrate 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

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

NVD PRIMARY 2.1 LOW
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.1%
Top 79% exploitable
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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 LOW
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
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.

Affected Products (CPE)CVE.org

cpe:2.3:a:onyx:onyx:*:*:*:*:*:*:*:*

More in Onyx

View all
CVE-2024-9612 MEDIUM POC
6.5 Mar 20

In danswer-ai/danswer v0.3.94, administrators can set the visibility of pages within a workspace, including the search p

CVE-2026-71424 CRITICAL
9.6 Aug 17

Cross-user credential disclosure in Onyx (open-source AI platform) lets any low-privileged BASIC_ACCESS user retrieve an

CVE-2024-0113 HIGH
8.8 Aug 12

NVIDIA Mellanox OS, ONYX, Skyway, and MetroX-3 XCC contain a vulnerability in the web support, where an attacker can cau

CVE-2024-0104 HIGH
8.8 Aug 08

NVIDIA Mellanox OS, ONYX, Skyway, MetroX-2 and MetroX-3 XC contain a vulnerability in the LDAP AAA component, where a us

CVE-2024-0101 HIGH
7.5 Aug 08

NVIDIA Mellanox OS, ONYX, Skyway, MetroX-2 and MetroX-3 XC contain a vulnerability in ipfilter, where improper ipfilter

CVE-2023-43784 HIGH
7.5 Sep 22

Plesk Onyx 17.8.11 has accessKeyId and secretAccessKey fields that are related to an Amazon AWS Firehose component. Rate

CVE-2026-85700 HIGH
7.1 Sep 04

Credential disclosure in Onyx 4.6.6 allows any authenticated user to retrieve plaintext API keys and authorization heade

CVE-2026-63178 MEDIUM
6.5 Aug 17

Privilege escalation in Onyx Enterprise Edition (versions prior to 4.3.0) allows any authenticated curator to modify use

CVE-2026-42277 MEDIUM
6.5 May 08

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

CVE-2020-11584 MEDIUM
6.1 Aug 03

A GET-based XSS reflected vulnerability in Plesk Onyx 17.8.11 allows remote unauthenticated users to inject arbitrary Ja

CVE-2026-42276 MEDIUM
4.3 May 08

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

CVE-2026-116004 LOW
2.0 Oct 25

Cross-site scripting (CWE-79) in the Onyx chat/knowledge platform through version 5.0.0, specifically in the Craft featu

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