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

株式会社WR

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

ホーム›脆弱性情報›PostgreSQL›CVE-2026-61820

重要 CVSS 8.5 PostgreSQL CVE-2026-61820 公表 2026年9月18日

PostgreSQLのpg_partmanにSQL注入の脆弱性

PostgreSQL — CVE-2026-61820

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

どんな問題か

PostgreSQL拡張のpg_partmanで、名前の扱いが不十分なため、細工した列名がSQLに紛れ込む問題です。権限を持つ利用者が、想定外のSQLを実行できる可能性があります。

放置するとどうなるか

データベース全体の乗っ取りや、OS上でのコマンド実行につながるおそれがあります。サーバー全体に重大な影響が出ます。

今すぐやること

5.5.0 へ更新してください。partman_user 権限の運用を見直し、不要なユーザーには付与しないでください。

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

  1. お使いのサーバー・プログラムに PostgreSQL が使われているか、制作会社・保守会社・サーバー会社に確認します(管理画面やサーバーのバージョン表示でも分かります)。
  2. バージョンが「Prior to 5.5.0」に当てはまるか確認します。
  3. 当てはまる場合は、修正版へのアップデートを依頼します。レンタルサーバーの場合はサーバー会社側で対応済みのこともあるので、お知らせを確認してください。
原文(英語)を表示
pg_partman is a PostgreSQL extension that manages partitioned tables by time or ID. Prior to 5.5.0, inherit_template_properties() manually surrounds primary-key column names from pg_attribute.attname with double quotes without escaping embedded double-quote characters. A partman_user who owns a template table can create a crafted column name that breaks out of the generated ALTER TABLE ADD PRIMARY KEY identifier when the background worker applies the key to a child partition. The generated SQL then executes with pg_partman_bgw.role privileges, which default to PostgreSQL superuser, permitting database-wide compromise and operating-system command execution as the PostgreSQL service account. The crafted catalog identifier persists until removed and can trigger again during later partition creation. This issue is fixed in version 5.5.0.

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

無料で相談する →