REDHAT-BUG-2572565: High severity PostgreSQL postgresql vulnerability
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 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 minor versions before 18.7 are affected. Earlier PostgreSQL major versions are also affected when the server has libpq version 18 or later installed and in use.
What access does an attacker need?
The issue is reachable through PostgreSQL dblink and CREATE or ALTER SUBSCRIPTION. The provided information identifies a user as the actor, but does not specify the exact privileges required.
What is the practical impact?
A user can cause persistent denial of service by using the sslkeylogfile connection parameter to append NSS keylog-format data to a file of their choosing. The mechanism cannot write arbitrary bytes.