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-2021-32029

CVE-2021-32029: PostgreSQL Information Disclosure Flaw

CVE-2021-32029 is an information disclosure vulnerability in PostgreSQL that allows authenticated users to read arbitrary server memory through crafted UPDATE RETURNING commands. This article covers technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-32029 Overview

A memory disclosure vulnerability was discovered in PostgreSQL that allows authenticated database users to read arbitrary bytes of server memory. The flaw exists in the handling of UPDATE ... RETURNING commands when executed against specially crafted tables, enabling attackers to extract sensitive information from the database server's memory space.

Critical Impact

An authenticated attacker can leverage this vulnerability to read arbitrary server memory, potentially exposing sensitive data including credentials, encryption keys, and confidential database contents stored in memory.

Affected Products

  • PostgreSQL (multiple versions)
  • Red Hat JBoss Enterprise Application Platform 7.0.0

Discovery Timeline

  • 2021-10-08 - CVE-2021-32029 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-32029

Vulnerability Analysis

This vulnerability is classified under CWE-200 (Exposure of Sensitive Information) and CWE-125 (Out-of-Bounds Read). The flaw resides in PostgreSQL's query execution engine, specifically in how it processes UPDATE ... RETURNING statements against tables with certain characteristics.

When a malicious authenticated user constructs a purpose-crafted table and executes an UPDATE ... RETURNING command against it, the database server fails to properly validate memory boundaries during the result set construction. This allows the attacker to read memory contents beyond the intended data structures, effectively creating an information disclosure primitive.

The vulnerability requires network access and authenticated database credentials to exploit. The attacker does not need administrative privileges—standard database user permissions are sufficient to trigger the memory read condition.

Root Cause

The root cause lies in improper bounds checking within PostgreSQL's query execution path when handling the RETURNING clause of UPDATE statements. The server fails to adequately validate that the memory regions being accessed for constructing the returned data correspond only to legitimate table data, allowing out-of-bounds memory reads when operating on specially constructed table structures.

Attack Vector

The attack requires an authenticated database connection with permissions to create tables and execute UPDATE statements. The attacker must:

  1. Create a purpose-crafted table with specific characteristics that trigger the vulnerability
  2. Execute an UPDATE ... RETURNING statement against this table
  3. Extract the returned data which contains arbitrary server memory bytes

The vulnerability is exploitable over the network, making it a concern for any PostgreSQL deployment with authenticated users who may be malicious or compromised. The attack complexity is low once the attacker has valid database credentials.

The vulnerability mechanism involves crafting specific table structures that cause PostgreSQL to mishandle memory boundaries during UPDATE ... RETURNING operations. For detailed technical information, refer to the PostgreSQL Security Advisory CVE-2021-32029.

Detection Methods for CVE-2021-32029

Indicators of Compromise

  • Unusual UPDATE ... RETURNING queries executed against newly created or modified tables
  • Database users creating tables with atypical column configurations or data types
  • Unexpected large result sets returned from UPDATE operations
  • Anomalous memory access patterns in PostgreSQL server logs

Detection Strategies

  • Monitor PostgreSQL query logs for UPDATE ... RETURNING statements from untrusted users
  • Implement database activity monitoring to detect table creation followed by immediate UPDATE operations
  • Enable statement logging and analyze patterns of DDL followed by specific DML operations
  • Deploy SentinelOne Singularity to detect anomalous database process behavior

Monitoring Recommendations

  • Enable log_statement = 'all' or log_statement = 'mod' in PostgreSQL configuration
  • Review audit logs for unusual table structures being created
  • Monitor for users executing UPDATE statements with RETURNING clauses on self-created tables
  • Implement alerting on suspicious query patterns targeting memory disclosure

How to Mitigate CVE-2021-32029

Immediate Actions Required

  • Upgrade PostgreSQL to a patched version immediately
  • Review and restrict database user permissions to minimize attack surface
  • Audit database users and remove unnecessary accounts
  • Implement network segmentation to limit database access to trusted hosts only

Patch Information

PostgreSQL has released security updates addressing this vulnerability. Administrators should upgrade to the latest patched versions available from the official PostgreSQL repositories. For detailed patch information and affected version ranges, consult the PostgreSQL Security Advisory CVE-2021-32029 and the Red Hat Bug Report #1956883.

NetApp customers should also review the NetApp Security Advisory NTAP-20211112-0003 for product-specific guidance.

Workarounds

  • Restrict CREATE TABLE permissions to trusted users only
  • Implement strict database role separation and least privilege principles
  • Use connection pooling with authentication to limit direct database access
  • Deploy network-level access controls to restrict database connectivity
bash
# Configuration example - Restrict table creation privileges
# Connect to PostgreSQL as superuser and revoke CREATE from public schema
psql -U postgres -c "REVOKE CREATE ON SCHEMA public FROM PUBLIC;"

# Grant CREATE only to trusted roles
psql -U postgres -c "GRANT CREATE ON SCHEMA public TO trusted_role;"

# Enable detailed query logging for monitoring
# Add to postgresql.conf:
# log_statement = 'all'
# log_min_duration_statement = 0

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechPostgresql

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.24%

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

  • CWE-125
  • Technical References
  • NetApp Security Advisory NTAP-20211112-0003
  • Vendor Resources
  • Red Hat Bug Report #1956883

  • PostgreSQL Security Advisory CVE-2021-32029
  • Related CVEs
  • CVE-2026-2003: PostgreSQL Information Disclosure Flaw

  • CVE-2023-5868: PostgreSQL Information Disclosure Flaw

  • CVE-2024-10977: PostgreSQL Information Disclosure Flaw

  • CVE-2024-4317: PostgreSQL Information Disclosure Flaw
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