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-2026-6666

CVE-2026-6666: Pgbouncer DOS Vulnerability

CVE-2026-6666 is a denial of service vulnerability in Pgbouncer caused by a null pointer reference that can crash the service. This article covers the technical details, affected versions, impact, and mitigation.

Published: May 18, 2026

CVE-2026-6666 Overview

CVE-2026-6666 is a null pointer dereference vulnerability in PgBouncer, the lightweight connection pooler for PostgreSQL. The flaw affects PgBouncer versions prior to 1.25.2 and triggers when a backend PostgreSQL server returns an error response missing the SQLSTATE field. PgBouncer fails to validate the presence of this field before dereferencing it, causing the process to crash. The result is a denial-of-service condition that disrupts all client connections routed through the affected pooler instance. The vulnerability is tracked under CWE-476 (NULL Pointer Dereference).

Critical Impact

A malformed error response from a backend server can crash PgBouncer, terminating all pooled database connections and disrupting application availability.

Affected Products

  • PgBouncer versions prior to 1.25.2
  • Deployments where PgBouncer brokers connections to untrusted or compromised PostgreSQL backends
  • Multi-tenant environments using shared PgBouncer instances

Discovery Timeline

  • 2026-05-09 - CVE-2026-6666 published to NVD
  • 2026-05-14 - Last updated in NVD database

Technical Details for CVE-2026-6666

Vulnerability Analysis

The vulnerability resides in PgBouncer's handling of PostgreSQL backend error messages. The PostgreSQL wire protocol defines error responses as a sequence of typed fields, where field C carries the SQLSTATE code. PgBouncer parses these fields and references the SQLSTATE value during error processing and logging.

When a backend server transmits an error response that omits the SQLSTATE field entirely, PgBouncer does not check whether its internal pointer to that field is NULL before dereferencing it. The resulting segmentation fault terminates the PgBouncer process. Because PgBouncer typically runs as a single multiplexing process, the crash severs every active client and server connection it manages.

This is a pre-authentication-adjacent issue from the network attacker's perspective only if the attacker controls a backend PostgreSQL server. In practice, exploitation requires the ability to position a malicious or compromised PostgreSQL instance behind PgBouncer.

Root Cause

The root cause is missing input validation on data received from a PostgreSQL backend. PgBouncer assumes that well-formed error responses always contain a SQLSTATE field, which is required by the PostgreSQL protocol specification. Non-compliant or maliciously crafted backends can omit this field, leading to a null pointer dereference [CWE-476] when PgBouncer accesses the absent field.

Attack Vector

An attacker who controls or compromises a PostgreSQL server reachable by PgBouncer can craft an error response without a SQLSTATE field. When PgBouncer receives this response during normal query processing or connection setup, the process crashes. This terminates pooled sessions and forces application reconnects until PgBouncer is restarted. Repeated triggering produces a persistent denial-of-service condition. See the PgBouncer Changelog - Version 1.25.x for the upstream description of the fix.

Detection Methods for CVE-2026-6666

Indicators of Compromise

  • Unexpected PgBouncer process termination accompanied by SIGSEGV entries in system logs or core dumps
  • Sudden mass disconnection events across applications that share a PgBouncer instance
  • PostgreSQL backend connections originating from unexpected hosts or sending malformed protocol messages

Detection Strategies

  • Monitor PgBouncer process uptime and restart frequency; repeated short-lived processes suggest crash-loop behavior
  • Inspect PostgreSQL wire protocol traffic for ErrorResponse messages lacking a C (SQLSTATE) field
  • Correlate application connection failures with PgBouncer service restarts in centralized logging

Monitoring Recommendations

  • Enable core dump collection for the PgBouncer process to capture crash forensics
  • Alert on PgBouncer service restarts via systemd, supervisord, or container orchestration health checks
  • Log all backend PostgreSQL endpoints that PgBouncer connects to and review for unauthorized changes

How to Mitigate CVE-2026-6666

Immediate Actions Required

  • Upgrade PgBouncer to version 1.25.2 or later on all affected hosts
  • Restrict PgBouncer's [databases] configuration so it only connects to trusted PostgreSQL backends
  • Place PgBouncer and its backends on isolated network segments to prevent attacker-controlled servers from being introduced
  • Configure process supervisors to auto-restart PgBouncer to limit downtime if a crash occurs

Patch Information

The PgBouncer maintainers fixed this issue in version 1.25.2. Refer to the PgBouncer Changelog - Version 1.25.x for release details. Operators should rebuild from the official source or install updated distribution packages once available.

Workarounds

  • Ensure all PostgreSQL backends are running official, unmodified PostgreSQL builds that always emit SQLSTATE in error responses
  • Enforce network access controls so only authorized PostgreSQL servers can communicate with PgBouncer
  • Deploy redundant PgBouncer instances behind a load balancer to maintain availability if a single instance crashes
bash
# Verify the running PgBouncer version and upgrade on Debian/Ubuntu
pgbouncer --version
sudo apt-get update && sudo apt-get install --only-upgrade pgbouncer
sudo systemctl restart pgbouncer
sudo systemctl status pgbouncer

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPgbouncer

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-476
  • Technical References
  • PgBouncer Changelog - Version 1.25.x
  • Related CVEs
  • CVE-2026-6664: PgBouncer DOS Vulnerability

  • CVE-2026-6665: PgBouncer Buffer Overflow Vulnerability

  • CVE-2026-6667: PgBouncer Auth Bypass Vulnerability

  • CVE-2025-12819: PgBouncer SQL Injection 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