WR 株式会社WR 松戸のホームページ制作・社内システム・IT相談

株式会社WR

千葉県松戸市
松戸・柏・市川・流山・船橋 対応

ホーム›脆弱性情報›MySQL›CVE-2026-61788

重要 CVSS 7.4 MySQL CVE-2026-61788 公表 2026年9月24日

DBHubのreadonly設定回避の脆弱性

MySQL — CVE-2026-61788

自分のサイトが該当するか無料診断 → 原文を見る(NVD(米国 脆弱性データベース))↗

どんな問題か

DBHubで、読み取り専用のはずのSQL実行が、実際には書き込み可能になってしまう問題です。認証なしで外部から触れる設定だと、想定外の操作が通ってしまうおそれがあります。

放置するとどうなるか

データの改ざんやファイルの読み書き、場合によってはサーバー上でのコード実行につながるおそれがあります。外部から直接悪用されると被害が大きくなります。

今すぐやること

DBHubを0.22.6へ更新してください。`/mcp` の公開範囲を見直し、認証と接続制限を必ず確認して、保守会社に緊急点検を依頼してください。

自分のサイトが該当するかの確認手順

  1. お使いのサーバー・プログラムに MySQL が使われているか、制作会社・保守会社・サーバー会社に確認します(管理画面やサーバーのバージョン表示でも分かります)。
  2. バージョンが「prior to 0.22.6」に当てはまるか確認します。
  3. 当てはまる場合は、修正版へのアップデートを依頼します。レンタルサーバーの場合はサーバー会社側で対応済みのこともあるので、お知らせを確認してください。
原文(英語)を表示
DBHub is a database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite. Prior to version 0.22.6, setting `readonly = true` on the `execute_sql` tool does not make the connection read-only. The connectors are written to set PostgreSQL `default_transaction_read_only=on` (and open SQLite in `readOnly` mode), but that code is gated on a config value that is never populated, so it never runs. The only thing left enforcing read-only is a classifier that inspects the first keyword of each statement. Any `SELECT` that writes or has side effects through a function call passes it. With an ordinary role this allows sequence tampering; with a privileged role it allows writing arbitrary files on the server (`lo_export`), reading arbitrary host files (`pg_read_file`), and remote code execution (`dblink` + `COPY ... TO PROGRAM`). The HTTP transport is unauthenticated and binds to `0.0.0.0` by default, so this is reachable by any network caller of `/mcp`. Version 0.22.6 patches the issue.

※ 解説は NVD(米国 脆弱性データベース) の公表内容をもとにAIが生成しています。対象バージョン・修正版などの正確な情報は、必ず原文をご確認ください。

無料で相談する →