REDHAT-BUG-2572553: High severity PostgreSQL postgresql vulnerability
Missing authorization in PostgreSQL logical replication allows a compromised publisher to execute arbitrary code as the operating system user running the superuser-owned subscription, via naming a system catalog as a replication target. Only subscriptions owned by a superuser are vulnerable. 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
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
Which deployments are exposed to this issue?
Only PostgreSQL logical replication subscriptions owned by a superuser are vulnerable. The publisher must be compromised for exploitation to occur.
What access or control does an attacker need?
An attacker needs control of a publisher participating in logical replication with a superuser-owned subscription. They can then name a system catalog as the replication target to execute code as the operating system user running that subscription.
Which PostgreSQL versions need to be updated?
Affected releases are versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25. Update to the applicable listed release or later.
What can be done if patching cannot happen immediately?
Identify logical replication subscriptions owned by superusers and prioritize removing or avoiding that ownership where operationally possible. Treat publishers connected to such subscriptions as high-trust systems, since a compromised publisher is required for exploitation.