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-2026-2361

CVE-2026-2361: PostgreSQL Anonymizer Privilege Escalation

CVE-2026-2361 is a privilege escalation vulnerability in PostgreSQL Anonymizer that allows users to gain superuser privileges via malicious temporary views. This article covers technical details, affected versions, and mitigations.

Published: February 13, 2026

CVE-2026-2361 Overview

PostgreSQL Anonymizer contains a privilege escalation vulnerability that allows authenticated users to gain superuser privileges through the creation of a malicious temporary view. The vulnerability exists in the anon.get_tablesample_ratio function, which can be exploited to execute arbitrary code with elevated privileges when a specially crafted view is created.

Critical Impact

Authenticated database users can escalate to superuser privileges, enabling complete database takeover, unauthorized data access, and potential lateral movement within the database infrastructure.

Affected Products

  • PostgreSQL Anonymizer versions prior to 3.0.1
  • PostgreSQL 15 and later (requires CREATE privilege)
  • PostgreSQL 14 and earlier versions (higher risk due to default public schema permissions)

Discovery Timeline

  • 2026-02-11 - CVE CVE-2026-2361 published to NVD
  • 2026-02-12 - Last updated in NVD database

Technical Details for CVE-2026-2361

Vulnerability Analysis

This privilege escalation vulnerability (CWE-427: Uncontrolled Search Path Element) allows attackers to achieve superuser access through PostgreSQL Anonymizer's view handling mechanism. The attack exploits the trust relationship between temporary views and the anon.get_tablesample_ratio function.

The vulnerability is particularly dangerous because it can be triggered by any user with CREATE privileges on a schema. In PostgreSQL 14 and earlier versions, or instances that were upgraded from these versions, the public schema grants creation permissions by default, significantly expanding the attack surface.

When exploited, an attacker gains complete superuser control over the PostgreSQL instance, enabling unauthorized data access, modification of security configurations, and potential compromise of other databases on the same server.

Root Cause

The root cause lies in insufficient privilege validation when the anon.get_tablesample_ratio function processes views. The function executes code contained within view definitions without properly verifying the security context, allowing malicious code embedded in a temporary view to run with superuser privileges rather than the calling user's privileges.

Attack Vector

The attack is network-accessible and requires high privileges (CREATE permission) to execute. An attacker must:

  1. Create a temporary view that references a function containing malicious code
  2. Trigger the execution of anon.get_tablesample_ratio which processes the malicious view
  3. The malicious code executes with superuser privileges, bypassing normal access controls

The attack leverages PostgreSQL's view execution model where the Anonymizer extension processes view definitions. When the vulnerable function is called, it evaluates the view's underlying function without proper privilege isolation, allowing the embedded malicious payload to execute in an elevated security context.

Detection Methods for CVE-2026-2361

Indicators of Compromise

  • Unexpected temporary views created in database schemas, particularly those referencing custom functions
  • Unusual calls to anon.get_tablesample_ratio from non-administrative users
  • Newly created superuser accounts or unexpected privilege grants in PostgreSQL
  • Suspicious function definitions containing system commands or privilege manipulation code

Detection Strategies

  • Monitor PostgreSQL logs for CREATE TEMPORARY VIEW statements followed by calls to anonymizer functions
  • Implement audit logging for all privilege changes and superuser activity
  • Deploy database activity monitoring to detect anomalous patterns in schema object creation
  • Review function definitions for suspicious code, particularly those created by non-administrative users

Monitoring Recommendations

  • Enable log_statement = 'all' in PostgreSQL configuration to capture all SQL statements
  • Configure alerting for any new superuser account creation or privilege escalation events
  • Implement real-time monitoring of the pg_roles and pg_auth_members system catalogs for unauthorized changes
  • Review audit logs for patterns of temporary view creation followed by anonymizer function calls

How to Mitigate CVE-2026-2361

Immediate Actions Required

  • Upgrade PostgreSQL Anonymizer to version 3.0.1 or later immediately
  • Review and revoke unnecessary CREATE privileges from non-administrative users
  • Audit existing temporary views and functions for malicious code
  • For PostgreSQL 14 or upgraded instances, revoke public CREATE permissions on the public schema using REVOKE CREATE ON SCHEMA public FROM PUBLIC;

Patch Information

The vulnerability has been resolved in PostgreSQL Anonymizer version 3.0.1 and later. Organizations should upgrade to the patched version as soon as possible. For detailed release information, refer to the GitLab Release Notes. Technical details about the vulnerability are available in GitLab Issue #617.

Workarounds

  • Restrict CREATE privileges to only trusted administrative users until patching is complete
  • Revoke default public schema permissions: REVOKE CREATE ON SCHEMA public FROM PUBLIC;
  • Implement network segmentation to limit database access to authorized application servers only
  • Consider temporarily disabling the PostgreSQL Anonymizer extension if not critical to operations
bash
# Revoke public CREATE permissions on public schema
psql -c "REVOKE CREATE ON SCHEMA public FROM PUBLIC;"

# Review users with CREATE privileges
psql -c "SELECT grantee, privilege_type FROM information_schema.role_table_grants WHERE privilege_type = 'CREATE';"

# Disable anonymizer extension temporarily (if not critical)
psql -c "DROP EXTENSION IF EXISTS anon;"

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.0

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-427
  • Technical References
  • GitLab Release Notes

  • GitLab Issue #617
  • Related CVEs
  • CVE-2026-2360: PostgreSQL Anonymizer Privilege Escalation

  • CVE-2024-10978: PostgreSQL Privilege Escalation Flaw

  • CVE-2024-0985: PostgreSQL Privilege Escalation Vulnerability

  • CVE-2022-1552: 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