BIT-postgresql-2026-116330: PostgreSQL pg_dump tar restore.sql fails to block psql command injection
Untrusted data inclusion in PostgreSQL pgdump tar-format restore.sql allows a compromised origin server to execute arbitrary code as the client operating system account running psql, via the predictable restriction key in restore.sql. This is a gap in the fix for CVE-2025-8714. restore.sql is undocumented. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 14.25.0 - Upgrade
Upgrade
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 15.20.0 - Upgrade
Upgrade
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 16.16.0 - Upgrade
Upgrade
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 17.12.0 - Upgrade
Upgrade
bitnami/postgresqlto a version that resolves this vulnerability.Fixed in 18.7.0 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 18.7 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 17.12 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 16.16 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 15.20 - Upgrade
Upgrade
PostgreSQLto a version that resolves this vulnerability.Fixed in 14.25
Event History
Frequently Asked Questions
Who is exposed to exploitation?
Organizations are exposed when they use tar-format dump content from a compromised origin server and process the included restore.sql with psql. Successful exploitation executes code as the client operating system account that runs psql.
What does an attacker need to exploit this issue?
The attacker needs control of the origin server or otherwise needs to provide untrusted data included in a pg_dump tar-format archive. Exploitation also requires a user to process the affected restore.sql content with psql.
Which releases need to be updated?
Affected releases are PostgreSQL versions before 18.7, 17.12, 16.16, 15.20, and 14.25. Update to the applicable listed release or later.
How can I determine whether my environment is affected?
Check the PostgreSQL version in use against the fixed versions and identify workflows that process tar-format pg_dump archives from untrusted or potentially compromised origin servers. The relevant file is restore.sql, which is included in this archive format and is undocumented.