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
    • 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-2021-32028

CVE-2021-32028: PostgreSQL Information Disclosure Flaw

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

Published: February 25, 2026

CVE-2021-32028 Overview

A memory disclosure vulnerability was discovered in PostgreSQL that allows an authenticated database user to read arbitrary bytes of server memory. The flaw exists in the handling of INSERT ... ON CONFLICT ... DO UPDATE commands when executed against purpose-crafted tables. This vulnerability poses a significant threat to data confidentiality as it can expose sensitive information stored in server memory.

Critical Impact

Authenticated attackers can exploit this flaw to read arbitrary server memory contents, potentially exposing sensitive data including credentials, encryption keys, and confidential database information.

Affected Products

  • PostgreSQL (multiple versions)
  • Systems running vulnerable PostgreSQL database servers
  • Applications relying on affected PostgreSQL installations

Discovery Timeline

  • October 11, 2021 - CVE-2021-32028 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-32028

Vulnerability Analysis

This vulnerability is classified as an Information Exposure issue (CWE-200) that affects PostgreSQL database servers. The flaw allows authenticated database users to bypass normal memory access restrictions and read arbitrary bytes from server memory. The attack requires network access and low privilege authentication, but no user interaction is needed to exploit this vulnerability.

The vulnerability specifically manifests in how PostgreSQL processes INSERT ... ON CONFLICT ... DO UPDATE statements. When these commands are executed against specially crafted tables, the database engine fails to properly validate memory boundaries, resulting in the disclosure of memory contents that should be inaccessible to the user.

Root Cause

The root cause stems from improper memory boundary validation in PostgreSQL's conflict resolution mechanism for INSERT operations. When handling ON CONFLICT ... DO UPDATE clauses on purpose-crafted tables, the database engine fails to adequately restrict memory access, allowing authenticated users to read beyond intended boundaries. This represents a classic information exposure vulnerability where insufficient access controls permit unauthorized data retrieval.

Attack Vector

The attack requires an authenticated database user with privileges to create tables and execute INSERT statements. The attacker creates a specially crafted table structure designed to trigger the memory disclosure when used with the vulnerable SQL command pattern. By manipulating the INSERT ... ON CONFLICT ... DO UPDATE query, the attacker can systematically extract arbitrary bytes of server memory.

The attack leverages the network-accessible nature of PostgreSQL servers and requires only low-level authentication. Once authenticated, the attacker can construct malicious queries without requiring any interaction from legitimate users or administrators. The vulnerability specifically impacts data confidentiality, as the exposed memory may contain sensitive information such as database credentials, encryption keys, session tokens, or other confidential data residing in server memory.

Detection Methods for CVE-2021-32028

Indicators of Compromise

  • Unusual INSERT ... ON CONFLICT ... DO UPDATE queries against non-standard or newly created tables
  • Unexpected table creation patterns by low-privilege database users
  • Anomalous memory access patterns in PostgreSQL server logs
  • Suspicious database queries returning unexpected binary or encoded data

Detection Strategies

  • Monitor PostgreSQL query logs for INSERT ... ON CONFLICT ... DO UPDATE statements targeting unusual table structures
  • Implement database activity monitoring to detect privilege abuse patterns
  • Review audit logs for unauthorized table creation by standard database users
  • Deploy intrusion detection rules to identify memory disclosure exploitation attempts

Monitoring Recommendations

  • Enable detailed PostgreSQL query logging including parameter values
  • Configure alerting for suspicious SQL command patterns involving conflict resolution clauses
  • Implement database user behavior analytics to detect anomalous query activities
  • Review the Red Hat Bug Report #1956877 for additional detection guidance

How to Mitigate CVE-2021-32028

Immediate Actions Required

  • Upgrade PostgreSQL to the latest patched version immediately
  • Review database user permissions and apply principle of least privilege
  • Restrict table creation privileges to only trusted administrative accounts
  • Audit existing database users for unnecessary elevated permissions

Patch Information

PostgreSQL has released security patches to address this vulnerability. Organizations should consult the official PostgreSQL CVE-2021-32028 Security Notice for version-specific patch details and upgrade instructions. Additional vendor advisories are available from Gentoo GLSA 202211-04 and NetApp Security Advisory for distribution-specific patching guidance.

Workarounds

  • Limit database user privileges to prevent table creation by untrusted accounts
  • Implement network segmentation to restrict PostgreSQL access to authorized systems only
  • Enable row-level security policies where applicable to limit data exposure
  • Consider implementing database activity monitoring as a compensating control until patches can be applied
bash
# Configuration example
# Restrict table creation privileges for non-admin users
REVOKE CREATE ON SCHEMA public FROM PUBLIC;

# Enable detailed logging for security monitoring
# In 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.47%

  • 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

  • NVD-CWE-noinfo
  • Technical References
  • Gentoo GLSA 202211-04 Advisory

  • NetApp Security Advisory ntap-20211112-0003
  • Vendor Resources
  • Red Hat Bug Report #1956877

  • PostgreSQL CVE-2021-32028 Security Notice
  • 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
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