PostgreSQL Fixes Superuser Privilege Escalation in Database Maintenance Operations
Attack Tradecraft · 4 sources · Updated 7d ago · First seen Jun 6, 2022

The PostgreSQL Global Development Group released versions 14.3, 13.7, 12.11, 11.16, and 10.21 to fix CVE-2022-1552, a privilege-escalation vulnerability affecting supported versions 10–14 at disclosure. An attacker permitted to create non-temporary objects in at least one schema could execute arbitrary SQL functions as a database superuser when privileged maintenance touched attacker-controlled objects. Autovacuum and operations including REINDEX, CREATE INDEX, REFRESH MATERIALIZED VIEW, CLUSTER, and pg_amcheck applied security restrictions too late or not at all. Red Hat rated the flaw Important, with a CVSS v3.1 score of 8.8, and issued updates for affected product streams. PostgreSQL credited Alexander Lakhin with reporting the issue.
Administrators should install the applicable upstream or vendor security updates. PostgreSQL described a temporary workaround requiring autovacuum to be disabled, affected maintenance operations to be avoided, and restores from pg_dump output to be suspended, but warned that performance could degrade quickly; Red Hat identified no practical mitigation and recommended updating. The PostgreSQL releases also corrected more than 50 bugs, including potential corruption of GiST indexes on ltree columns; administrators must rebuild those indexes after upgrading.


