A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-9617

CVE-2026-9617: PostgreSQL Anonymizer Privilege Escalation

CVE-2026-9617 is a privilege escalation vulnerability in PostgreSQL Anonymizer that allows users to gain superuser access through malicious table columns. This article covers technical details, affected versions, and mitigation.

Published: May 28, 2026

CVE-2026-9617 Overview

CVE-2026-9617 is a SQL injection vulnerability in PostgreSQL Anonymizer that allows a low-privileged database user to escalate to superuser. An attacker creates a table and embeds malicious SQL inside a column identifier. When a superuser later invokes the k-anonymity function, the injected code executes with superuser privileges. The flaw is tracked under CWE-89 (SQL Injection). PostgreSQL Anonymizer 3.1.0 resolves the issue.

Critical Impact

An authenticated user with CREATE TABLE permission can achieve full superuser privileges on the PostgreSQL instance, leading to complete database compromise.

Affected Products

  • PostgreSQL Anonymizer versions prior to 3.1.0
  • PostgreSQL 14 deployments (default public schema permissions increase exposure)
  • PostgreSQL 15+ instances upgraded from PostgreSQL 14 or earlier

Discovery Timeline

  • 2026-05-27 - CVE-2026-9617 published to NVD
  • 2026-05-27 - Last updated in NVD database

Technical Details for CVE-2026-9617

Vulnerability Analysis

PostgreSQL Anonymizer provides data masking functions, including k-anonymity analysis, that operate on user-defined tables. The vulnerability arises because the extension interpolates column identifiers into dynamically constructed SQL without sufficient sanitization. An attacker creates a table whose column name contains crafted SQL syntax. When a superuser subsequently runs the k-anonymity function against that table, the malicious identifier is concatenated into the executed query and runs with the caller's elevated privileges.

Exploitation requires high-privilege actions on both sides: the attacker must hold CREATE TABLE rights, and a superuser must voluntarily call the affected function on the attacker-controlled object. User interaction is therefore required, which limits opportunistic exploitation but does not prevent targeted attacks in shared or multi-tenant database environments.

Root Cause

The root cause is improper neutralization of special elements used in an SQL command [CWE-89]. PostgreSQL Anonymizer fails to safely quote or validate column identifiers before incorporating them into dynamic SQL. Identifiers in PostgreSQL should be passed through quote_ident() or supplied via parameterized DDL construction. Without these safeguards, an attacker-controlled column name becomes an SQL injection sink that executes in the security context of the calling role.

Attack Vector

The attack is network-reachable through any PostgreSQL client connection. PostgreSQL 14 is more exposed because the public schema grants CREATE to all users by default. From PostgreSQL 15 onward, the default permission on public is revoked, so exploitation requires an administrator to have explicitly granted CREATE TABLE to the attacker. Refer to the GitLab Issue Discussion for the technical breakdown.

// Conceptual flow (no public PoC published)
// 1. Attacker (low-privileged role) creates a table:
// CREATE TABLE evil ( "<malicious identifier containing SQL>" int );
// 2. Superuser later invokes the k-anonymity routine on evil.
// 3. The unsanitized identifier is interpolated into dynamic SQL
// and executed with superuser privileges.

Detection Methods for CVE-2026-9617

Indicators of Compromise

  • Tables created by non-administrative roles containing unusual, quoted column identifiers with embedded SQL keywords such as SELECT, CREATE ROLE, or COPY.
  • Audit log entries showing k-anonymity or related PostgreSQL Anonymizer function calls executed by superusers against tables owned by low-privileged users.
  • Unexpected role grants, new superuser accounts, or extension installations following an Anonymizer function invocation.

Detection Strategies

  • Enable pgaudit or log_statement = 'ddl' and review CREATE TABLE statements for column identifiers containing parentheses, quotes, or SQL keywords.
  • Query information_schema.columns for column names that do not match a strict identifier allowlist.
  • Alert on calls to PostgreSQL Anonymizer functions executed by superuser roles against tables owned by non-administrators.

Monitoring Recommendations

  • Forward PostgreSQL audit logs to a centralized SIEM and create rules for anomalous DDL by low-privileged users.
  • Track changes to pg_authid and pg_roles to detect privilege escalation outcomes.
  • Monitor extension activity in pg_stat_statements for unexpected dynamic SQL originating from anon schema functions.

How to Mitigate CVE-2026-9617

Immediate Actions Required

  • Upgrade PostgreSQL Anonymizer to version 3.1.0 or later on all affected database instances.
  • Revoke CREATE on the public schema from PUBLIC on PostgreSQL 14 and on upgraded clusters.
  • Audit existing roles and remove CREATE TABLE privileges from users that do not require them.
  • Review recent invocations of k-anonymity and related Anonymizer functions for signs of exploitation.

Patch Information

The vendor resolved the issue in PostgreSQL Anonymizer 3.1.0. The fix sanitizes column identifiers before they are used in dynamically generated SQL. Details are tracked in the GitLab Issue Discussion.

Workarounds

  • Restrict use of PostgreSQL Anonymizer k-anonymity functions to tables owned by trusted administrators until patching completes.
  • On PostgreSQL 14, execute REVOKE CREATE ON SCHEMA public FROM PUBLIC; to remove the default table creation right.
  • Segregate anonymization workloads into dedicated databases where untrusted users have no DDL privileges.
bash
# Configuration example: harden a PostgreSQL 14 instance against this class of abuse
psql -U postgres -c "REVOKE CREATE ON SCHEMA public FROM PUBLIC;"
psql -U postgres -c "ALTER EXTENSION anon UPDATE TO '3.1.0';"
psql -U postgres -c "SELECT extname, extversion FROM pg_extension WHERE extname = '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

  • SeverityMEDIUM

  • CVSS Score6.8

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • GitLab Issue Discussion
  • 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 Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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