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

CVE-2023-5869: PostgreSQL RCE Vulnerability

CVE-2023-5869 is a remote code execution flaw in PostgreSQL caused by integer overflow during SQL array modifications. Authenticated users can exploit this to execute arbitrary code and access server memory.

Updated: May 15, 2026

CVE-2023-5869 Overview

CVE-2023-5869 is an integer overflow vulnerability [CWE-190] in PostgreSQL that allows authenticated database users to execute arbitrary code. The flaw stems from missing overflow checks during SQL array value modification. An authenticated user can supply specially crafted array data to trigger the overflow, write arbitrary bytes to memory, and read extensive portions of server memory. The vulnerability affects PostgreSQL across multiple supported branches and downstream distributions including Red Hat Enterprise Linux, Debian, and NetApp products.

Critical Impact

Authenticated attackers can achieve arbitrary code execution within the PostgreSQL server process, compromising confidentiality, integrity, and availability of the database and underlying host.

Affected Products

  • PostgreSQL versions prior to 16.1, 15.5, 14.10, 13.13, 12.17, and 11.22
  • Red Hat Enterprise Linux 7, 8, and 9 (including EUS, AUS, and TUS variants)
  • Red Hat Software Collections 1.0 and CodeReady Linux Builder editions

Discovery Timeline

  • 2023-12-10 - CVE-2023-5869 published to the National Vulnerability Database
  • 2023-11 - PostgreSQL releases 16.1, 15.5, 14.10, 13.13, 12.17, and 11.22 with the fix
  • 2024-01-19 - NetApp publishes security advisory NTAP-20240119-0003
  • 2025-11-04 - Last updated in the NVD database

Technical Details for CVE-2023-5869

Vulnerability Analysis

The vulnerability resides in PostgreSQL's array modification logic. When the server processes SQL statements that modify array values, internal size calculations fail to verify that intermediate results remain within representable integer bounds. An authenticated user submits crafted array dimensions or subscripts that cause an arithmetic operation to wrap around. The wrapped value is then used as a length or offset for subsequent memory operations.

Because PostgreSQL stores array data inside its shared backend process memory, the resulting out-of-bounds write occurs in a privileged context. An attacker can manipulate the overflow to corrupt adjacent structures, redirect execution flow, or harvest server memory contents such as cached query results, credentials, and other tenants' data. Exploitation requires only standard database login privileges with the ability to issue SQL commands against an array column.

Root Cause

The root cause is an integer overflow [CWE-190] in the array length and offset computations used during SQL array value modification. The affected code path performs multiplication and addition on user-controlled dimension and subscript values without bounds validation. When the computed result exceeds the maximum value of the underlying signed integer type, it wraps to a small or negative value. The runtime then allocates an undersized buffer or performs a write using the attacker-influenced offset, producing the memory corruption primitive.

Attack Vector

Exploitation is network-reachable but requires authenticated access to the PostgreSQL instance with privileges sufficient to execute SQL statements modifying array values. The attacker connects to the database, issues SQL commands that operate on an array with crafted dimensions, and triggers the overflow. No user interaction is needed. Multi-tenant database services and applications that grant low-privilege SQL access to untrusted users carry the highest exposure.

No public proof-of-concept exploit has been released. Detailed technical mechanics are described in the PostgreSQL CVE-2023-5869 Security Note and the Red Hat Bugzilla Report #2247169.

Detection Methods for CVE-2023-5869

Indicators of Compromise

  • Unexpected PostgreSQL backend crashes with SIGSEGV or SIGBUS signals recorded in the server log, particularly correlated with array-manipulation queries.
  • SQL statements from low-privilege accounts that construct very large array dimensions or subscripts, for example calls to array_set_slice, UPDATE ... SET arr[...] = ..., or large multi-dimensional ARRAY[] literals.
  • Anomalous PostgreSQL process behavior such as spawning shells, outbound network connections, or file writes to non-data directories.
  • PostgreSQL versions reported by SELECT version(); that are older than 16.1, 15.5, 14.10, 13.13, 12.17, or 11.22 on internet-exposed or multi-tenant instances.

Detection Strategies

  • Enable PostgreSQL log_statement = 'mod' or 'all' and audit logs of array operations issued by non-administrative roles.
  • Hunt for backend termination messages such as server process was terminated by signal 11 in postgresql.log and correlate with the originating session and SQL statement.
  • Inventory PostgreSQL build versions across the estate and flag instances running pre-patch releases for prioritized remediation.

Monitoring Recommendations

  • Forward PostgreSQL logs to a centralized analytics platform and alert on repeated backend crashes from the same role or client address.
  • Monitor the host running PostgreSQL for unexpected child processes of postgres, new outbound connections, and writes outside PGDATA.
  • Track authentication and role-grant changes that expand SQL execution privileges to new accounts.

How to Mitigate CVE-2023-5869

Immediate Actions Required

  • Upgrade PostgreSQL to a fixed release: 16.1, 15.5, 14.10, 13.13, 12.17, or 11.22 or later within the same major branch.
  • Apply vendor packages for downstream distributions, including the Red Hat advisories listed in the references and the Debian LTS Announce Email.
  • Audit database roles and revoke SQL execution privileges from accounts that do not require them, particularly on multi-tenant or internet-facing instances.
  • Review PostgreSQL logs for prior backend crashes that may indicate exploitation attempts before patching.

Patch Information

The PostgreSQL project addressed CVE-2023-5869 in the November 2023 minor releases. See the PostgreSQL Release Announcement 16.1 and the PostgreSQL CVE-2023-5869 Security Note. Red Hat published more than two dozen errata covering RHEL 7, 8, and 9 streams, beginning with Red Hat Security Advisory RHSA-2023:7545 and continuing through Red Hat Security Advisory RHSA-2024:0337. NetApp customers should consult NetApp Security Advisory NTAP-20240119-0003.

Workarounds

  • Restrict PostgreSQL network exposure to trusted application servers using pg_hba.conf and firewall rules until patching completes.
  • Limit SQL privileges of application roles to the minimum required, denying array-modification operations on sensitive tables where feasible.
  • Isolate PostgreSQL instances per tenant when serving multiple untrusted parties to constrain the blast radius of any successful exploitation.
bash
# Verify PostgreSQL version and upgrade on a Red Hat-based host
psql -U postgres -c "SELECT version();"

# Apply the vendor update
sudo dnf update postgresql postgresql-server postgresql-contrib

# Restart the service after patching
sudo systemctl restart postgresql

# Confirm the patched version is in use
psql -U postgres -c "SHOW server_version;"

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPostgresql

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability1.61%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • 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:7771

  • Red Hat Security Advisory RHSA-2023:7772

  • Red Hat Security Advisory RHSA-2023:7778

  • Red Hat Security Advisory RHSA-2023:7783

  • Red Hat Security Advisory RHSA-2023:7784

  • Red Hat Security Advisory RHSA-2023:7785

  • Red Hat Security Advisory RHSA-2023:7786

  • Red Hat Security Advisory RHSA-2023:7788

  • Red Hat Security Advisory RHSA-2023:7789

  • Red Hat Security Advisory RHSA-2023:7790

  • Red Hat Security Advisory RHSA-2023:7878

  • 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

  • CVE-2023-5869 Security Issue

  • Red Hat Bugzilla Report #2247169

  • PostgreSQL Release Announcement 16.1

  • Debian LTS Announce Email

  • NetApp Security Advisory NTAP-20240119-0003
  • Vendor Resources
  • PostgreSQL CVE-2023-5869 Security Note
  • Related CVEs
  • CVE-2025-13957: Hard-coded Credentials RCE Vulnerability

  • CVE-2026-2004: PostgreSQL intarray Extension RCE Flaw

  • CVE-2026-2006: PostgreSQL RCE Vulnerability

  • CVE-2024-10979: PostgreSQL PL/Perl RCE 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