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-2023-5868

CVE-2023-5868: PostgreSQL Information Disclosure Flaw

CVE-2023-5868 is an information disclosure vulnerability in PostgreSQL that allows remote users to access sensitive system memory through aggregate function calls. This article covers technical details, affected versions, and mitigation.

Published: February 4, 2026

CVE-2023-5868 Overview

A memory disclosure vulnerability was discovered in PostgreSQL that allows remote authenticated users to access sensitive information by exploiting certain aggregate function calls with 'unknown'-type arguments. When PostgreSQL handles 'unknown'-type values from string literals without proper type designation, it can inadvertently disclose bytes from system memory, potentially revealing confidential information stored in server memory.

This vulnerability exists due to excessive data output in aggregate function calls. An authenticated attacker with the ability to execute SQL queries can craft specific aggregate function invocations that cause the database server to return memory contents beyond the intended data boundaries.

Critical Impact

Authenticated remote users can read portions of PostgreSQL server system memory, potentially exposing sensitive data including credentials, configuration details, or data from other database sessions.

Affected Products

  • PostgreSQL (multiple versions up to and including 16.0)
  • Red Hat Enterprise Linux 8.x and 9.x
  • Red Hat CodeReady Linux Builder EUS (multiple architectures)
  • Red Hat Software Collections 1.0

Discovery Timeline

  • December 10, 2023 - CVE-2023-5868 published to NVD
  • November 4, 2025 - Last updated in NVD database

Technical Details for CVE-2023-5868

Vulnerability Analysis

This memory disclosure vulnerability stems from improper handling of 'unknown'-type arguments within PostgreSQL's aggregate function processing. When aggregate functions receive string literals that lack explicit type designation, the database engine fails to properly bound the memory read operations, resulting in information leakage.

The vulnerability is classified under CWE-686 (Function Call With Incorrect Argument Type), indicating that the root issue involves type handling inconsistencies when processing function arguments. An authenticated user with query execution privileges can leverage this flaw to extract memory contents from the PostgreSQL server process.

The attack requires network access and valid database credentials, but does not require any user interaction or special privileges beyond basic query execution rights. The impact is limited to confidentiality compromise, with no direct effect on data integrity or system availability.

Root Cause

The vulnerability originates from PostgreSQL's type inference system when handling aggregate functions. When a string literal is passed to an aggregate function without explicit type casting, PostgreSQL treats it as an 'unknown' type. The aggregate function processing code fails to properly validate and constrain the memory access when handling these 'unknown'-type values, leading to out-of-bounds memory reads that return unintended data to the query result.

Attack Vector

The attack requires an authenticated connection to a vulnerable PostgreSQL server. An attacker constructs SQL queries that invoke aggregate functions with specially crafted string literal arguments that lack type designation. When the database processes these queries, the improper handling of 'unknown'-type values causes memory beyond the intended boundaries to be included in the query response.

The attacker can potentially retrieve sensitive information residing in server memory, such as data from other sessions, internal configuration values, or fragments of previously processed queries. Multiple queries may be required to extract meaningful data, as the memory disclosure is limited to portions of memory adjacent to the legitimate data being processed.

Detection Methods for CVE-2023-5868

Indicators of Compromise

  • Unusual aggregate function queries with untyped string literals in database logs
  • Queries attempting multiple variations of aggregate function calls with different string patterns
  • Increased query activity from specific user accounts targeting system or sensitive tables
  • Abnormal query result sizes that exceed expected data returns

Detection Strategies

  • Enable detailed query logging in PostgreSQL (log_statement = 'all') and monitor for suspicious aggregate function usage patterns
  • Implement database activity monitoring (DAM) solutions to detect anomalous query patterns
  • Review database audit logs for repeated failed or unusual queries from the same user session
  • Deploy SentinelOne Singularity to detect and alert on exploitation attempts targeting database servers

Monitoring Recommendations

  • Configure PostgreSQL logging to capture all aggregate function calls with enhanced detail
  • Set up alerts for query patterns that match known exploitation signatures
  • Monitor network traffic to PostgreSQL servers for unusual connection patterns or data exfiltration indicators
  • Implement baseline monitoring for normal query behavior to identify statistical anomalies

How to Mitigate CVE-2023-5868

Immediate Actions Required

  • Upgrade PostgreSQL to a patched version (16.1, 15.5, 14.10, 13.13, 12.17, or 11.22)
  • Review database user privileges and apply least-privilege principles
  • Enable comprehensive database query logging for forensic purposes
  • Audit recent query logs for potential exploitation attempts

Patch Information

PostgreSQL has released security updates addressing this vulnerability. Patched versions include PostgreSQL 16.1, 15.5, 14.10, 13.13, 12.17, and 11.22. Users should upgrade to these versions or later to remediate the vulnerability.

For Red Hat Enterprise Linux users, multiple security advisories have been published including RHSA-2023:7545, RHSA-2023:7579, and subsequent advisories. Consult the PostgreSQL Security Advisory for complete version-specific guidance.

Workarounds

  • Restrict database access to trusted users only until patches can be applied
  • Implement network segmentation to limit who can connect to PostgreSQL servers
  • Use application-level controls to sanitize and type-cast all SQL query parameters
  • Consider temporarily disabling or restricting access to non-essential aggregate functions if operationally feasible
bash
# Verify PostgreSQL version and check if patched
psql --version

# Check installed PostgreSQL package on RHEL/CentOS
rpm -qa | grep postgresql

# Update PostgreSQL on RHEL-based systems
sudo dnf update postgresql*

# 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 Score4.3

  • EPSS Probability2.72%

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

  • NVD-CWE-noinfo
  • Technical References
  • Red Hat Security Advisory RHSA-2023:7545

  • Red Hat Security Advisory RHSA-2023:7579

  • Red Hat Security Advisory RHSA-2023:7580

  • Red Hat Security Advisory RHSA-2023:7581

  • Red Hat Security Advisory RHSA-2023:7616

  • Red Hat Security Advisory RHSA-2023:7656

  • Red Hat Security Advisory RHSA-2023:7666

  • Red Hat Security Advisory RHSA-2023:7667

  • Red Hat Security Advisory RHSA-2023:7694

  • Red Hat Security Advisory RHSA-2023:7695

  • Red Hat Security Advisory RHSA-2023:7714

  • Red Hat Security Advisory RHSA-2023:7770

  • Red Hat Security Advisory RHSA-2023:7772

  • Red Hat Security Advisory RHSA-2023:7784

  • Red Hat Security Advisory RHSA-2023:7785

  • Red Hat Security Advisory RHSA-2023:7883

  • Red Hat Security Advisory RHSA-2023:7884

  • Red Hat Security Advisory RHSA-2023:7885

  • Red Hat Security Advisory RHSA-2024:0304

  • Red Hat Security Advisory RHSA-2024:0332

  • Red Hat Security Advisory RHSA-2024:0337

  • Red Hat CVE-2023-5868 Details

  • Red Hat Bugzilla Report #2247168

  • PostgreSQL Version Release Announcement

  • Debian LTS Announcement November 2023

  • NetApp Security Advisory ntap-20240119-0003
  • Vendor Resources
  • PostgreSQL Security Advisory CVE-2023-5868
  • Related CVEs
  • CVE-2026-2003: PostgreSQL Information Disclosure Flaw

  • CVE-2024-10977: PostgreSQL Information Disclosure Flaw

  • CVE-2024-4317: PostgreSQL Information Disclosure Flaw

  • CVE-2021-32029: 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