Skip to main content
Mallory
← Back to News
privilege-escalation-methodwidely-deployed-product-advisoryopen-source-dependency-vulnerability

PostgreSQL Fixes Superuser Privilege Escalation in Database Maintenance Operations

Attack Tradecraft · 4 sources · Updated 7d ago · First seen Jun 6, 2022

PostgreSQL Fixes Superuser Privilege Escalation in Database Maintenance Operations

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.

Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

11 events · May 12, 2022 – Jun 6, 2022
  1. Reported Jun 6, 20224y ago

    Red Hat patches PostgreSQL 13 Software Collection for RHEL 7

    Red Hat released a fix for rh-postgresql13-postgresql in Red Hat Software Collections for RHEL 7 through RHSA-2022:4929.

    CVE-2022-1552 - Red Hat Customer Portal
  2. Jun 6, 20224y ago

    Red Hat patches PostgreSQL 10 and 12 Software Collections for RHEL 7

    Red Hat released fixes for rh-postgresql10-postgresql and rh-postgresql12-postgresql in Red Hat Software Collections for RHEL 7 through RHSA-2022:4913 and RHSA-2022:4915.

    CVE-2022-1552 - Red Hat Customer Portal
  3. Jun 1, 20224y ago

    Red Hat patches PostgreSQL 10 and 12 in RHEL 8.4 EUS

    Red Hat released fixes for the postgresql:10 and postgresql:12 streams in RHEL 8.4 Extended Update Support through RHSA-2022:4854 and RHSA-2022:4856.

    CVE-2022-1552 - Red Hat Customer Portal
  4. Reported May 31, 20224y ago

    Red Hat issues an additional PostgreSQL fix for RHEL 8.4 EUS

    Red Hat also addressed CVE-2022-1552 in RHEL 8.4 Extended Update Support through RHSA-2022:4857. The supplied content does not specify this advisory's release date.

    2081126 - (CVE-2022-1552) CVE-2022-1552 postgresql: Autovacuum, REINDEX, and others omit "security restricted operation" sandbox
  5. Reported May 31, 20224y ago

    Red Hat releases fixes for RHEL 8 PostgreSQL streams

    Red Hat addressed CVE-2022-1552 in Red Hat Enterprise Linux 8 through RHSA-2022:4805, RHSA-2022:4807, and RHSA-2022:4855. The supplied content does not specify release dates for these advisories.

    2081126 - (CVE-2022-1552) CVE-2022-1552 postgresql: Autovacuum, REINDEX, and others omit "security restricted operation" sandbox
  6. Reported May 31, 20224y ago

    Red Hat releases PostgreSQL fix for RHEL 7

    Red Hat addressed CVE-2022-1552 in Red Hat Enterprise Linux 7 through RHSA-2022:5162.

    2081126 - (CVE-2022-1552) CVE-2022-1552 postgresql: Autovacuum, REINDEX, and others omit "security restricted operation" sandbox
  7. Reported May 31, 20224y ago

    Red Hat closes the CVE-2022-1552 tracking bug

    Red Hat's Product Security DevOps Team closed Bugzilla issue 2081126 and directed subsequent product-specific updates to Red Hat's CVE-2022-1552 page.

    2081126 - (CVE-2022-1552) CVE-2022-1552 postgresql: Autovacuum, REINDEX, and others omit "security restricted operation" sandbox
  8. Reported May 31, 20224y ago

    Red Hat releases fixes for RHEL 8.2 EUS

    Red Hat addressed CVE-2022-1552 in RHEL 8.2 Extended Update Support through RHSA-2022:4895 and RHSA-2022:4893.

    2081126 - (CVE-2022-1552) CVE-2022-1552 postgresql: Autovacuum, REINDEX, and others omit "security restricted operation" sandbox
  9. Reported May 31, 20224y ago

    Red Hat patches RHEL 8.1 Update Services for SAP Solutions

    Red Hat addressed CVE-2022-1552 in RHEL 8.1 Update Services for SAP Solutions through RHSA-2022:4894.

    2081126 - (CVE-2022-1552) CVE-2022-1552 postgresql: Autovacuum, REINDEX, and others omit "security restricted operation" sandbox
  10. May 30, 20224y ago

    Red Hat releases PostgreSQL fix for RHEL 9

    Red Hat addressed CVE-2022-1552 in Red Hat Enterprise Linux 9 through advisory RHSA-2022:4771.

    2081126 - (CVE-2022-1552) CVE-2022-1552 postgresql: Autovacuum, REINDEX, and others omit "security restricted operation" sandbox
  11. May 12, 20225y ago

    PostgreSQL discloses and patches CVE-2022-1552

    The PostgreSQL Global Development Group released versions 14.3, 13.7, 12.11, 11.16, and 10.21, fixing CVE-2022-1552 and more than 50 bugs. The vulnerability, reported by Alexander Lakhin, allowed users with permission to create non-temporary schema objects to execute arbitrary SQL functions as a superuser through inadequately protected maintenance operations.

    PostgreSQL: PostgreSQL 14.3, 13.7, 12.11, 11.16, and 10.21 Released!
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.