判定
- 現在の判定
- Matched(該当)
- 攻撃条件
- 満たさない(AV・PR・UI がすべて N か)
- 攻撃能力
- 満たさない(RCE・認証回避・シェル取得・root 取得のいずれか)
- 根拠
- AV:N / PR:L / UI:N(CNA・CVSS 4.0) / 該当する攻撃能力なし
解説
- 概要
- SQLBot のデータソースプレビュー API が、クライアント指定のテーブル名を安全に識別子処理せず SQL に組み込む脆弱性です。
- 影響
- 認証済みユーザーが細工したテーブル名を送ることで、PostgreSQL のファイル読み取り機能を呼び出し、サーバー上のファイル内容を API 応答から取得できます。コード実行や OS の root 権限取得は示されていません。
- 対象
- SQLBot 1.9.0 未満。
- 対策
- SQLBot 1.9.0 で修正されています。
- 判定
- AV:N / PR:L / UI:N(CNA・CVSS 4.0) / 該当する攻撃能力なし
CVSS 評価
| 出所 | 版 | AV / PR / UI | ベクトル | 出所側の更新日時 |
|---|---|---|---|---|
| CNA(採用) | 4.0 | AV:N / PR:L / UI:N | CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | 2026-09-18 06:39 |
攻撃能力(AI 判定)
| RCE | 非該当 |
| 認証回避 | 非該当 |
| シェル取得 | 非該当 |
| root 取得 | 非該当 |
根拠
-
RCE ・ CNA の説明文
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().
-
認証回避 ・ CNA の説明文
An authenticated user can configure a datasource
-
シェル取得 ・ CNA の説明文
allowing filesystem content such as /etc/hosts and /etc/passwd to be returned in the previewData API response
-
root 取得 ・ CNA の説明文
executes with PostgreSQL superuser privileges
モデル gpt-6-luna ・ プロンプト 2026-10-10 ・ 2026-10-13 05:54 ・ 入力 SHA-256 242158d1af0b
一致した監視対象製品
-
PostgreSQL — 説明文で一致 (AI の判定: 影響を受けるか 非該当)
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.
変更履歴
-
2026-09-19 05:01
- Matched(該当) と判定した
→ Matched(該当)