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-5870

CVE-2023-5870: PostgreSQL pg_cancel_backend DoS Vulnerability

CVE-2023-5870 is a denial of service vulnerability in PostgreSQL affecting the pg_cancel_backend role that signals background workers. High privileged users can exploit this to disrupt specific workers. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

Published: February 11, 2026

CVE-2023-5870 Overview

A denial of service vulnerability exists in PostgreSQL involving the pg_cancel_backend role that allows signaling of background workers, including the logical replication launcher, autovacuum workers, and the autovacuum launcher. This flaw enables a remote high-privileged user to disrupt specific background worker processes under certain conditions.

Critical Impact

High-privileged attackers can terminate PostgreSQL background workers through the pg_cancel_backend role, potentially disrupting database maintenance operations and replication processes when non-core extensions with less-resilient background workers are in use.

Affected Products

  • PostgreSQL (versions prior to 16.1, 15.5, 14.10, 13.13, 12.17, and 11.22)
  • Red Hat Enterprise Linux 8.x and 9.x
  • Red Hat CodeReady Linux Builder EUS
  • Red Hat Software Collections

Discovery Timeline

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

Technical Details for CVE-2023-5870

Vulnerability Analysis

This vulnerability resides in PostgreSQL's privilege model for the pg_cancel_backend role. The flaw allows users with this role to send signals to background workers that should typically be protected from such operations. The vulnerability specifically affects the logical replication launcher, autovacuum workers, and the autovacuum launcher processes.

Successful exploitation requires specific preconditions: the target PostgreSQL instance must have a non-core extension installed that implements a less-resilient background worker. The impact is limited to that specific background worker, not the entire database system. This makes exploitation highly contextual and dependent on the target environment's configuration.

The vulnerability is classified under CWE-400 (Uncontrolled Resource Consumption), as the ability to terminate background workers can lead to resource management issues and service disruption.

Root Cause

The root cause lies in insufficient access controls within the pg_cancel_backend function. This function was designed to allow privileged users to cancel query backends, but the implementation did not adequately restrict its ability to signal certain critical background worker processes. When combined with non-core extensions that implement background workers without proper resilience mechanisms, this creates an exploitable condition.

Attack Vector

The attack requires network access and high privileges within the PostgreSQL database. An attacker must possess the pg_cancel_backend role to execute this attack. The exploitation path involves:

  1. Attacker authenticates to the PostgreSQL instance with a role that has pg_cancel_backend privileges
  2. Attacker identifies background workers associated with non-core extensions
  3. Attacker uses the pg_cancel_backend function to signal these workers
  4. Background workers without proper resilience mechanisms terminate unexpectedly

The attack does not require user interaction and affects system availability by disrupting background maintenance processes.

Detection Methods for CVE-2023-5870

Indicators of Compromise

  • Unexpected termination of PostgreSQL background worker processes
  • Repeated restarts of autovacuum or logical replication launcher processes in PostgreSQL logs
  • Anomalous pg_cancel_backend function calls from non-administrative sessions
  • Database maintenance operations failing or not completing as expected

Detection Strategies

  • Monitor PostgreSQL logs for frequent background worker termination events
  • Audit usage of the pg_cancel_backend function and correlate with user sessions
  • Implement alerts for unusual patterns in autovacuum and replication launcher activity
  • Review granted roles to identify accounts with pg_cancel_backend privileges

Monitoring Recommendations

  • Enable detailed logging for PostgreSQL administrative functions including pg_cancel_backend
  • Configure log aggregation to detect patterns of background worker process terminations
  • Monitor process lists for PostgreSQL background workers and alert on unexpected exits
  • Track role membership changes, particularly for pg_cancel_backend and pg_signal_backend roles

How to Mitigate CVE-2023-5870

Immediate Actions Required

  • Update PostgreSQL to patched versions: 16.1, 15.5, 14.10, 13.13, 12.17, or 11.22
  • Audit and restrict assignment of the pg_cancel_backend role to only essential users
  • Review installed extensions for non-core background workers and assess their resilience
  • Apply vendor-specific patches from Red Hat or other distribution providers

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. Organizations should update to these versions or later. Detailed patch information is available in the PostgreSQL Security Advisory for CVE-2023-5870.

Red Hat has released multiple security advisories addressing this vulnerability across their product portfolio. See Red Hat Security Advisory RHSA-2023:7545 and related advisories for RHEL-specific updates.

Workarounds

  • Revoke pg_cancel_backend role from non-essential database users as an interim measure
  • Remove or disable non-critical extensions that implement background workers until patching is complete
  • Implement network segmentation to limit database access to trusted administrative hosts only
  • Configure connection limits and authentication restrictions for privileged database roles
bash
# Revoke pg_cancel_backend role from non-essential users
psql -c "REVOKE pg_cancel_backend FROM non_essential_user;"

# List users with pg_cancel_backend role for auditing
psql -c "SELECT rolname FROM pg_roles WHERE pg_has_role(rolname, 'pg_cancel_backend', 'member');"

# Check PostgreSQL version to verify patch status
psql -c "SELECT version();"

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPostgresql

  • SeverityMEDIUM

  • CVSS Score4.4

  • EPSS Probability0.61%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400

  • 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 CVE-2023-5870

  • Red Hat Bugzilla Report #2247170

  • PostgreSQL Release Announcement 16.1, 15.5, 14.10, 13.3, 12.7, 11.2

  • Debian LTS Announcement November 2023

  • NetApp Security Advisory NTAP-20240119-0003
  • Vendor Resources
  • PostgreSQL Security CVE-2023-5870
  • Related CVEs
  • CVE-2026-32286: PostgreSQL DataRow DoS Vulnerability

  • CVE-2026-4427: pgproto3 Denial of Service Vulnerability

  • CVE-2025-4207: PostgreSQL GB18030 DoS Vulnerability

  • CVE-2025-13957: Hard-coded Credentials RCE Vulnerability
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