This vulnerability can be exploited remotely over the network, with a regular user account, without any user interaction.
A successful attack has high impact: reading confidential data.
Special conditions are required for a successful attack, which makes exploitation harder.
Weakness type: SQL injection.
✨ AI commentary
After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.
Official description
SQLBot is an intelligent Text-to-SQL system based on large language models and RAG. Prior to 1.9.0, the POST /api/v1/datasource/previewData endpoint in backend/apps/datasource/crud/datasource.py incorporates the client-controlled table_name value into generated SQL without safe identifier handling. An authenticated user can configure a datasource for SQLBot's internal PostgreSQL service and submit a crafted table_name that remains a SELECT operation under the read-only policy while invoking pg_read_file(), pg_read_binary_file(), or pg_ls_dir(). In the default tested trusted loopback authentication configuration, the internal connection accepts invalid credentials and executes with PostgreSQL superuser privileges, allowing filesystem content such as /etc/hosts and /etc/passwd to be returned in the previewData API response and potentially exposing configuration, credentials, authentication secrets, and source code. This issue is fixed in version 1.9.0.
Net::WoRMS versions before 1.901 for Perl allow SQL injection via SOAP response fields in the SQL output of printRecord. Net::WoRMS is a tool for querying the World Register of Marine Species (WoRMS). The SQL output…
GLPI 11.0.0 before 11.0.9 contains an unauthenticated sql injection vulnerability in the planning availability check via the begin and end parameters. Attackers can send genical and checkavailability parameters to…
JIESHUN JieLink+ Intelligent Terminal Operation Platform contains a SQL injection vulnerability that allows unauthenticated attackers to execute arbitrary SQL queries through the deviceId parameter of the…
GeoServer is an open source server that allows users to share and edit geospatial data. Prior to "org.geoserver:gs-wfs-core" versions 2.27.7, 2.28.6, and 3.0.2 and prior to "org.geotools:gt-metadata" versions 33.7,…
OS4ED openSIS Classic through 9.3 contains an sql injection vulnerability in api/StudentEnrollmentInfo.php and api/StaffInfo.php via the unquoted sch_year parameter. Attackers holding any valid API key and secret can…
mysql2 before 3.25.0 contains an sql injection vulnerability in Connection.format() and Connection.escape() because quotes are always backslash-escaped regardless of session SQL mode. When NO_BACKSLASH_ESCAPES is…