PostgreSQLのpg_dumpに SQLインジェクションの脆弱性 復元時に任意のSQLを実行される恐れ
Summary
PostgreSQLのpg_dumpに、SQLインジェクションの脆弱性が見つかりました。オブジェクトの作成者が細工したNOT NULL制約名を使うと、ダンプを復元したユーザーの権限で任意のSQLを実行されるおそれがあります。影響を受けるのはメジャーバージョン18のPostgreSQL 18.7より前の版で、修正版の18.7への更新が必要です。
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.
PostgreSQLのpg_dumpに、SQLインジェクションの脆弱性が見つかりました。オブジェクトの作成者が細工したNOT NULL制約名を使うと、ダンプを復元したユーザーの権限で任意のSQLを実行されるおそれがあります。影響を受けるのはメジャーバージョン18のPostgreSQL 18.7より前の版で、修正版の18.7への更新が必要です。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CVE の記録PostgreSQL |
≥ 18, < 18.7→ 18.7 |
18.7 |
| Bitnamipostgresql |
≥ 18.0.0, < 18.7.0→ 18.7.0 |
18.7.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Alpine Linux ALPINE-CVE-2026-116318 postgresql18, postgresql17, postgresql16 +1 more Fix available
- BellSoft Alpaquita BELL-CVE-2026-116318 postgresql18, postgresql17 Fix available
- Debian DEBIAN-CVE-2026-116318 postgresql-18 Fix available
- Ubuntu UBUNTU-CVE-2026-116318 postgresql-18, postgresql-16, postgresql-14 +4 more No fixed version in this record
Original description The description as published by the source.
SQL injection in PostgreSQL pg_dump allows an object creator to execute arbitrary SQL as the user restoring the dump, via an inherited column having a child-local not-null constraint whose name requires quoting. Within major version 18, minor versions before PostgreSQL 18.7 are affected. Versions before PostgreSQL 18 are unaffected.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- REDHAT Red Hat
- web postgresql.org
- web nvd.nist.gov
- web postgresql.org
- web github.com