postgresql-logfdwに認証済みユーザーが想定外のファイルを読める脆弱性
Summary
AWSのpostgresql-logfdw(log_fdw)拡張機能に、パス・トラバーサルの脆弱性(CVE-2026-139820)が見つかりました。log_fdwの権限を与えられた非スーパーユーザーが、細工した外部テーブルのファイル名で、ログディレクトリの外にあるファイルを読めるおそれがあります。1.5より前の版が対象で、1.5以降に更新してください。ファイル名がログディレクトリ直下の単純な名前でない外部テーブルは、作り直すか変更することが案内されています。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
AWSのpostgresql-logfdw(log_fdw)拡張機能に、パス・トラバーサルの脆弱性(CVE-2026-139820)が見つかりました。log_fdwの権限を与えられた非スーパーユーザーが、細工した外部テーブルのファイル名で、ログディレクトリの外にあるファイルを読めるおそれがあります。1.5より前の版が対象で、1.5以降に更新してください。ファイル名がログディレクトリ直下の単純な名前でない外部テーブルは、作り直すか変更することが案内されています。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| AWSpostgresql-logfdw |
< 1.5→ 1.5 |
1.5 |
Original description The description as published by the source.
Relative path traversal in the foreign table file name validation in the AWS postgresql-logfdw (log_fdw) extension before version 1.5 allows an authenticated non-superuser user who has been granted log_fdw privileges to read files outside the configured log directory via a crafted foreign table file name. The user can only read files that the database server process has permission to read.
To remediate this issue, users should upgrade to version 1.5 or later and recreate or alter any foreign table whose file name is not a plain file name in the log directory.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory aws.amazon.com
- advisory github.com
- advisory nvd.nist.gov
- AWS aws.amazon.com
- patch github.com