CVE-2026-84061

zhongyu09 OpenChatBI generate_sql.py _validate_sql_safety sql injection

Published Sep 1, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

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'}

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')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Sep 1, 2026, 3:54 PM
Reserved
Sep 1, 2026, 5:44 AM
Status
Deferred
Published
Sep 1, 2026, 1:20 PM
Modified
Sep 1, 2026, 8:47 PM