PostgreSQL の脆弱性情報は公式サイトの Support > Security > Known PostgreSQL Security Vulnerabilities から確認可能 JPUG-PGCON2025-E1 ⚫ CVE-2025-8713~8715詳細 CVEID Detail (原文) Detail (翻訳) CVE-2025-8715 Improper neutralization of newlines in pg_dump in PostgreSQL allows a user of the origin server to inject arbitrary code for restore-time execution as the client operating system account running psql to restore the dump, via psql meta-commands inside a purpose-crafted object name. The same attacks can achieve SQL injection as a superuser of the restore target server. pg_dumpall, pg_restore, and pg_upgrade are also affected. PostgreSQLのpg_dumpにおける改行コードの不適切な無効化により、オリジン サーバーのユーザーが、ダンプをリストアするためにpsqlを実行しているクライアントOSア カウントで、意図的に細工されたオブジェクト名内のpsqlメタコマンドを使用することで、 リストア時に任意のコードを挿入することが可能です。同様の攻撃により、リストア対象 サーバーのスーパーユーザーとしてSQLインジェクションを実行することも可能になります。 pg_dumpall、pg_restore、pg_upgradeも影響を受けます。 CVE-2025-8714 Untrusted data inclusion in pg_dump in PostgreSQL allows a malicious superuser of the origin server to inject arbitrary code for restore-time execution as the client operating system account running psql to restore the dump, via psql meta-commands. pg_dumpall is also affected. pg_restore is affected when used to generate a plain-format dump. PostgreSQLのpg_dumpに信頼できないデータが含まれているため、オリジンサー バーの悪意のあるスーパーユーザーが、psqlメタコマンドを介して、psqlを実行している クライアントOSアカウントでリストア時に任意のコードを挿入し、ダンプをリストアすること が可能です。pg_dumpallも影響を受けます。pg_restoreは、プレーンフォーマット のダンプを生成する際に影響を受けます。 CVE-2025-8713 PostgreSQL optimizer statistics allow a user to read sampled data within a view that the user cannot access. Separately, statistics allow a user to read sampled data that a row security policy intended to hide. PostgreSQL maintains statistics for tables by sampling data available in columns; this data is consulted during the query planning process. Prior to this release, a user could craft a leaky operator that bypassed view access control lists (ACLs) and bypassed row security policies in partitioning or table inheritance hierarchies. Reachable statistics data notably included histograms and most- common-values lists. PostgreSQL オプティマイザ統計により、ユーザーはアクセスできないビュー内のサンプ ルデータを読み取ることができます。また、統計により、行セキュリティ ポリシーで非表示 にすることを意図したサンプルデータを読み取ることもできます。PostgreSQL は、列 で利用可能なデータをサンプリングしてテーブルの統計を維持します。このデータは、ク エリ計画プロセス中に参照されます。このリリースより前は、ユーザーは、ビューのアクセ ス制御リスト (ACL) をバイパスし、パーティションまたはテーブル継承階層の行セキュリ ティ ポリシーをバイパスする漏洩演算子を作成することができました。アクセス可能な 統計データには、特にヒストグラムと最頻値リストが含まれていました。