BIT-postgresql-2026-14661: PostgreSQL dblink and subscriptions can append to arbitrary files
External control of file name in PostgreSQL dblink and CREATE/ALTER SUBSCRIPTION allows a user to achieve persistent denial of service, via appending invalid data to a chosen file. Specifically, the "sslkeylogfile" connection parameter appends data, in NSS keylog format, to a file of the user's choosing. This "sslkeylogfile" mechanism cannot add arbitrary bytes. Within major version 18, minor versions before PostgreSQL 18.7 are affected. Versions before PostgreSQL 18 are also affected if libpq version 18 or later is installed and in use by the server.
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 to a fixed release to a version that resolves this vulnerability.
Fixed in 18.7
Event History
Frequently Asked Questions
Which deployments are affected?
PostgreSQL 18 releases before 18.7 are affected. PostgreSQL versions before 18 are also affected when the server is using libpq version 18 or later.
What access does an attacker need?
The vector requires low privileges and no user interaction. Exploitation involves controlling connection parameters through dblink or CREATE/ALTER SUBSCRIPTION, including the sslkeylogfile parameter.
What is the practical impact?
An attacker can append NSS keylog-format data to a file of their choosing, but cannot write arbitrary bytes. This can cause persistent denial of service by corrupting a chosen file with invalid data.
What should be prioritized for remediation?
Upgrade PostgreSQL 18 to 18.7 or later. For pre-18 PostgreSQL deployments, assess whether the server uses libpq 18 or later, since those environments are affected as well.