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

株式会社WR

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

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

緊急 CVSS 9.9 PostgreSQL CVE-2026-61781 公表 2026年9月18日

PostgreSQLのpg_partmanに権限昇格の脆弱性

PostgreSQL — CVE-2026-61781

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

どんな問題か

partition作成時に、設定値をそのままSQLとして使ってしまう問題があります。権限を持つ利用者が細工した値を入れると、強い権限で処理が動くおそれがあります。

放置するとどうなるか

データベース全体の改ざんや情報流出につながる可能性があります。サーバー上で不正なコマンドが動くおそれもあります。

今すぐやること

5.5.0 へ更新してください。partman_user 権限の運用を見直し、設定値に不審な文字列が入っていないか確認してください。

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

  1. お使いのサーバー・プログラムに PostgreSQL が使われているか、制作会社・保守会社・サーバー会社に確認します(管理画面やサーバーのバージョン表示でも分かります)。
  2. バージョンが「5.5.0 より前の版」に当てはまるか確認します。
  3. 当てはまる場合は、修正版へのアップデートを依頼します。レンタルサーバーの場合はサーバー会社側で対応済みのこともあるので、お知らせを確認してください。
原文(英語)を表示
pg_partman is a PostgreSQL extension that manages partitioned tables by time or ID. Prior to 5.5.0, create_partition_time() reads the writable part_config.time_encoder text value and interpolates it without identifier quoting into a dynamically executed SELECT statement. A role with the documented partman_user INSERT and UPDATE privileges can store SQL rather than a function name. When pg_partman_bgw later creates a child partition for a text- or UUID-keyed set, the worker executes the stored SQL with pg_partman_bgw.role privileges, which default to PostgreSQL superuser. The persistent configuration row can repeatedly restore elevated access on later maintenance ticks, and successful exploitation can permit database-wide compromise and operating-system command execution as the PostgreSQL service account. This issue is fixed in version 5.5.0.

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

無料で相談する →