Description
A security flaw has been discovered in zhongyu09 OpenChatBI up to 0.3.0. Affected by this vulnerability is the function _validate_sql_safety of the file openchatbi/text2sql/generate_sql.py. Performing a manipulation results in sql injection. The attack can be initiated remotely. Versions v0.2.0 through v0.2.2 have no SQL safety validation at all, while v0.3.0 introduced a validator and v1.0.0b1/main kept the same incomplete one with an optional stricter mode. The vendor was contacted early about this disclosure but did not respond in any way.
Published: 2026-09-01
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in OpenChatBI’s generate_sql.py, specifically the _validate_sql_safety routine, permits remote attackers to inject arbitrary SQL statements. The vulnerability can allow unauthorized data exfiltration, modification, or deletion, compromising the confidentiality, integrity, and availability of the underlying database. The issue is a classic SQL injection (CWE‑74, CWE‑89).

Affected Systems

Vendor zhongyu09’s OpenChatBI product is affected. All releases from version 0.2.0 through 1.0.0b1 contain the vulnerable validator; earlier 0.2.x builds had no safety checks at all, while the 0.3.0 and 1.0.0b1 releases implement an incomplete validator that still permits injection. No later versions are listed as fixed.

Risk and Exploitability

The CVSS score of 5.3 denotes a medium severity, and the EPSS score is not available, indicating no current data on exploitation likelihood. OpenChatBI is not listed in the CISA KEV catalog. The vulnerability is exploitable remotely by sending crafted input to the generate_sql endpoint, potentially enabling a malicious actor to execute arbitrary SQL commands against the database behind the application. The attack requires network reachability to the OpenChatBI instance and access to the endpoint that triggers _validate_sql_safety.

Generated by OpenCVE AI on September 1, 2026 at 13:44 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade OpenChatBI to the latest available release that provides a fully validated or removed _validate_sql_safety function; if no patch exists, contact the vendor for a fix.
  • Restrict access to the generate_sql interface so that only trusted administrators can invoke it, using role‑based access controls or network segmentation.
  • Implement a custom input validation layer that rejects or sanitizes any SQL command containing injection‑suspicious patterns before it reaches the database.

Generated by OpenCVE AI on September 1, 2026 at 13:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 01 Sep 2026 12:30:00 +0000

Type Values Removed Values Added
Description A security flaw has been discovered in zhongyu09 OpenChatBI up to 0.3.0. Affected by this vulnerability is the function _validate_sql_safety of the file openchatbi/text2sql/generate_sql.py. Performing a manipulation results in sql injection. The attack can be initiated remotely. Versions v0.2.0 through v0.2.2 have no SQL safety validation at all, while v0.3.0 introduced a validator and v1.0.0b1/main kept the same incomplete one with an optional stricter mode. The vendor was contacted early about this disclosure but did not respond in any way.
Title zhongyu09 OpenChatBI generate_sql.py _validate_sql_safety sql injection
First Time appeared Zhongyu09
Zhongyu09 openchatbi
Weaknesses CWE-74
CWE-89
CPEs cpe:2.3:a:zhongyu09:openchatbi:*:*:*:*:*:*:*:*
Vendors & Products Zhongyu09
Zhongyu09 openchatbi
References
Metrics cvssV2_0

{'score': 6.5, 'vector': 'AV:N/AC:L/Au:S/C:P/I:P/A:P/E:ND/RL:ND/RC:UR'}

cvssV3_0

{'score': 6.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:X/RL:X/RC:R'}

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:X/RL:X/RC:R'}

cvssV4_0

{'score': 5.3, 'vector': '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:X'}


Subscriptions

Zhongyu09 Openchatbi
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-09-01T12:00:09.788Z

Reserved: 2026-09-01T05:44:47.108Z

Link: CVE-2026-84061

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-01T13:20:05.200

Modified: 2026-09-01T13:20:05.200

Link: CVE-2026-84061

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-01T13:45:05Z

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')