pghoard 細工されたバックアップで任意のファイルを書き込まれるおそれ
Summary
pghoard の restore.py におけるパストラバーサル対策が不完全なため、バックアップ保存先への書き込み権限を持つ攻撃者により、PostgreSQL のデータディレクトリ外へ任意のファイルを書き込まれるおそれがあります。影響を受けるのは 2.7.2 より前の版で、2.7.2 で修正されています。2.7.2 以降へ更新してください。
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.
pghoard の restore.py におけるパストラバーサル対策が不完全なため、バックアップ保存先への書き込み権限を持つ攻撃者により、PostgreSQL のデータディレクトリ外へ任意のファイルを書き込まれるおそれがあります。影響を受けるのは 2.7.2 より前の版で、2.7.2 で修正されています。2.7.2 以降へ更新してください。
Original description The description as published by the source.
pghoard is a PostgreSQL backup daemon and restore tooling that stores backup data in cloud object stores. Prior to version 2.7.2, an incomplete path traversal fix in pghoard allows an attacker with write access to the backup object storage (such as S3, GCS, or Azure) to execute arbitrary file writes and directory creation outside the designated PostgreSQL data directory (pgdata). When a database administrator executes a restore operation (via pghoard_restore get-basebackup), a maliciously crafted delta backup manifest with path traversal sequences (e.g., ../../../../etc/cron.d/backdoor) will write arbitrary payloads to the host system. This issue has been patched in version 2.7.2.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- web github.com