The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-1552

CVE-2022-1552: PostgreSQL Privilege Escalation Vulnerability

CVE-2022-1552 is a privilege escalation vulnerability in PostgreSQL that allows attackers to execute arbitrary SQL functions under superuser identity. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-1552 Overview

A privilege escalation vulnerability was discovered in PostgreSQL where several database maintenance operations fail to operate safely when a privileged user is maintaining objects owned by another user. The affected commands—Autovacuum, REINDEX, CREATE INDEX, REFRESH MATERIALIZED VIEW, CLUSTER, and pg_amcheck—either activate relevant security protections too late in their execution or fail to activate them entirely. This flaw allows an attacker with permission to create non-temporary objects in at least one schema to execute arbitrary SQL functions under a superuser identity.

Critical Impact

Attackers with limited database privileges can escalate to superuser access, enabling complete database compromise including unauthorized data access, modification, and system command execution.

Affected Products

  • PostgreSQL (multiple versions)
  • Systems running PostgreSQL with multi-user configurations
  • Enterprise deployments utilizing Autovacuum and maintenance commands

Discovery Timeline

  • 2022-08-31 - CVE-2022-1552 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-1552

Vulnerability Analysis

This vulnerability stems from incomplete security measures implemented during privileged maintenance operations in PostgreSQL. When a database superuser performs maintenance tasks on objects owned by less privileged users, PostgreSQL should restrict the execution context to prevent privilege abuse. However, the affected commands fail to properly enforce these restrictions throughout their execution lifecycle.

The core issue lies in the timing of privilege checks and security context restrictions. Commands such as REINDEX and CREATE INDEX may execute user-defined functions (e.g., index expression functions or operator functions) during their operation. When these protections are applied too late or not at all, malicious functions embedded in seemingly innocuous database objects can execute with superuser privileges.

This vulnerability is classified under CWE-459 (Incomplete Cleanup) and CWE-89 (SQL Injection), reflecting both the incomplete security measure application and the potential for arbitrary SQL execution.

Root Cause

The root cause is the incomplete implementation of the SECURITY_RESTRICTED_OPERATION mode in PostgreSQL's maintenance commands. This mode is designed to prevent privilege escalation by restricting what user-defined functions can do when invoked from privileged operations. However, the affected commands either:

  1. Activate the restricted mode after potentially dangerous operations have already begun
  2. Fail to activate the restricted mode for certain code paths entirely
  3. Leave gaps where user-defined code can execute before restrictions are applied

This allows a malicious user to craft database objects with embedded trigger functions, index expressions, or operator functions that execute arbitrary SQL when a superuser performs routine maintenance.

Attack Vector

The attack exploits the network-accessible PostgreSQL service and requires only low-level authenticated access (the ability to create non-temporary objects in at least one schema). An attacker would:

  1. Create a malicious database object (such as a table with a specially crafted index expression or a trigger function)
  2. Wait for a superuser to perform maintenance operations on the schema containing the malicious object
  3. The malicious function executes with superuser privileges when the maintenance command processes the object
  4. The attacker's code can then perform any operation available to a superuser, including creating new superuser accounts, accessing sensitive data, or executing system commands

This attack does not require user interaction beyond the routine database maintenance that superusers typically perform, often automatically via Autovacuum.

Detection Methods for CVE-2022-1552

Indicators of Compromise

  • Unexpected user-defined functions or trigger functions in database schemas
  • New superuser accounts or privilege grants that cannot be attributed to authorized administrators
  • Unusual database objects in schemas accessible to unprivileged users
  • Log entries showing function execution during REINDEX, VACUUM, or CREATE INDEX operations with unexpected results

Detection Strategies

  • Monitor PostgreSQL logs for privilege escalation attempts during maintenance operations
  • Audit user-defined functions and index expressions for suspicious SQL code
  • Review database schemas for objects created by low-privilege users that contain executable code
  • Implement database activity monitoring (DAM) to detect anomalous privilege usage patterns

Monitoring Recommendations

  • Enable detailed logging of DDL operations and function executions in postgresql.conf
  • Configure alerts for new superuser account creation or privilege modifications
  • Monitor Autovacuum activity logs for unusual function invocations
  • Deploy SentinelOne Singularity to detect post-exploitation activity at the endpoint level

How to Mitigate CVE-2022-1552

Immediate Actions Required

  • Upgrade PostgreSQL to patched versions: 14.3, 13.7, 12.11, 11.16, or 10.21 immediately
  • Audit existing database objects for potentially malicious functions before upgrading
  • Restrict schema creation and object creation privileges to trusted users only
  • Review and limit which users have CREATE permissions in shared schemas

Patch Information

PostgreSQL has released security updates addressing this vulnerability. The following versions contain the fix:

  • PostgreSQL 14.3
  • PostgreSQL 13.7
  • PostgreSQL 12.11
  • PostgreSQL 11.16
  • PostgreSQL 10.21

Detailed information is available in the PostgreSQL CVE-2022-1552 Security Notice and the PostgreSQL Release Announcement. Additional vendor advisories are available from Red Hat, Gentoo, and NetApp.

Workarounds

  • Restrict CREATE privileges on schemas to prevent untrusted users from creating objects
  • Disable Autovacuum on schemas containing objects from untrusted users until patched
  • Manually review all user-defined functions and index expressions before performing maintenance
  • Consider running maintenance operations in a restricted environment until updates are applied
bash
# Restrict CREATE privilege on public schema
psql -c "REVOKE CREATE ON SCHEMA public FROM PUBLIC;"

# Audit existing functions for suspicious content
psql -c "SELECT n.nspname, p.proname, p.prosrc FROM pg_proc p JOIN pg_namespace n ON p.pronamespace = n.oid WHERE n.nspname NOT IN ('pg_catalog', 'information_schema');"

# Check index expressions for potential malicious code
psql -c "SELECT schemaname, tablename, indexname, indexdef FROM pg_indexes WHERE indexdef LIKE '%(%';"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechPostgresql

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability3.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-459

  • CWE-89
  • Technical References
  • Red Hat CVE-2022-1552 Advisory

  • Gentoo GLSA 202211-04

  • NetApp Security Advisory ntap-20221104-0005
  • Vendor Resources
  • Red Hat Bugzilla Report 2081126

  • PostgreSQL Release Announcement

  • PostgreSQL CVE-2022-1552 Security Notice
  • Related CVEs
  • CVE-2026-2361: PostgreSQL Anonymizer Privilege Escalation

  • CVE-2026-2360: PostgreSQL Anonymizer Privilege Escalation

  • CVE-2024-10978: PostgreSQL Privilege Escalation Flaw

  • CVE-2024-0985: PostgreSQL Privilege Escalation Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English