製品・ソフトウェアに関する情報
PostgreSQL.orgのPostgreSQLにおけるUNIX Symbolic Link のフォローに関する脆弱性
Title PostgreSQL.orgのPostgreSQLにおけるUNIX Symbolic Link のフォローに関する脆弱性
Summary

PostgreSQLのpg_basebackupのプレーン形式およびpg_rewindにおけるシンボリックリンク追跡の脆弱性により、オリジンスーパーユーザーがローカルファイル(例:/var/lib/postgres/.bashrc)を上書きし、オペレーティングシステムのアカウントを乗っ取る可能性があります。これらのコマンドの実行後にサーバーを起動する際には、shared_preload_librariesのような機能によりオリジンスーパーユーザーが暗黙的に信頼される状態が続きます。したがって、この攻撃が実際的な意味を持つのは、これらのコマンドの実行とサーバー起動の間に、ファイルを異なるVMに移動するかVMのスナップショットを取るなどの適切な対策を講じた場合に限られます。影響を受けるバージョンはPostgreSQL 18.4未満、17.10未満、16.14未満、15.18未満、および14.23未満です。

Possible impacts 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date May 14, 2026, midnight
Registration Date May 20, 2026, 1:25 p.m.
Last Update May 20, 2026, 1:25 p.m.
CVSS3.0 : 重要
Score 8.8
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected System
PostgreSQL.org
PostgreSQL 14.23 未満
PostgreSQL 15.0 以上 15.18 未満
PostgreSQL 16.0 以上 16.14 未満
PostgreSQL 17.0 以上 17.10 未満
PostgreSQL 18.0 以上 18.4 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年05月20日]
  掲載
May 20, 2026, 1:25 p.m.

NVD Vulnerability Information
CVE-2026-6475
Summary

Symlink following in PostgreSQL pg_basebackup plain format and in pg_rewind allows an origin superuser to overwrite local files, e.g. /var/lib/postgres/.bashrc, that hijack the operating system account. It will remain the case that starting the server after these commands implicitly trusts the origin superuser, due to features like shared_preload_libraries. Hence, the attack has practical implications only if one takes relevant action between these commands and server start, like moving the files to a different VM or snapshotting the VM. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.

Publication Date May 14, 2026, 11:16 p.m.
Registration Date May 15, 2026, 4:24 a.m.
Last Update May 19, 2026, 12:02 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* 14.23
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* 15.0 15.18
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* 16.0 16.14
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* 17.0 17.10
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* 18.0 18.4
Related information, measures and tools
Common Vulnerabilities List