REDHAT-BUG-2572568: High severity PostgreSQL postgresql vulnerability
Improper protection of alternate path in PostgreSQL security-restricted operations allows an object creator to execute arbitrary SQL as the operation's caller, via a domain, enum, or range type created in pgtemp. The victim session must later run a query containing an unqualified type name, e.g. "SELECT '1'::bigint"; autovacuum and other common security-restricted operation users do not do so, so they are unaffected. 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
What must an attacker and victim session do for this issue to be exploitable?
An attacker must be able to create a domain, enum, or range type in pg_temp. A later victim session must run a security-restricted operation containing an unqualified type name, such as SELECT '1'::bigint, allowing arbitrary SQL to run as that operation's caller.
Are autovacuum or other common security-restricted operations exposed?
No. Autovacuum and other common users of security-restricted operations do not use unqualified type names in the relevant way and are unaffected.
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.