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-2024-10978

CVE-2024-10978: PostgreSQL Privilege Escalation Flaw

CVE-2024-10978 is a privilege escalation vulnerability in PostgreSQL that allows less-privileged users to view or modify unintended data. This article covers the technical details, affected versions, and mitigation.

Updated: May 15, 2026

CVE-2024-10978 Overview

CVE-2024-10978 is an incorrect privilege assignment vulnerability in PostgreSQL [CWE-266]. The flaw allows a less-privileged application user to view or modify rows that should have been inaccessible. Exploitation requires the application to use SET ROLE, SET SESSION AUTHORIZATION, or an equivalent feature.

When an application query reacts to current_setting('role') or the current user ID, PostgreSQL may apply an incorrect identity. The query then returns or modifies data as if the session had never switched roles. The attacker does not control which incorrect user ID applies, limiting predictability of the impact.

Critical Impact

Authenticated users can bypass role-based access controls in PostgreSQL applications relying on SET ROLE or SET SESSION AUTHORIZATION, leading to unauthorized data read or modification.

Affected Products

  • PostgreSQL versions prior to 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21
  • Debian Linux 11 (postgresql package)
  • Applications using SET ROLE or SET SESSION AUTHORIZATION for privilege separation

Discovery Timeline

  • 2024-11-14 - CVE-2024-10978 published to NVD
  • 2024-11-14 - PostgreSQL releases fixed versions 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2024-10978

Vulnerability Analysis

The vulnerability stems from PostgreSQL incorrectly tracking the active role identity after a session executes SET ROLE or SET SESSION AUTHORIZATION. Queries that reference current_setting('role') or the current user ID may evaluate against a stale or incorrect identity. Application logic that enforces row-level access using these identifiers can return or modify rows belonging to other users.

The attack requires an authenticated session with low privileges. The attacker must also influence query parameters or observe query results. Because the attacker does not control which incorrect user ID applies, the exposure is opportunistic rather than targeted.

The issue does not represent a sandbox escape. PostgreSQL documents that SET ROLE and SET SESSION AUTHORIZATION are not intended to contain unvetted query text. The risk applies specifically to applications that trust the role-switching feature for data isolation.

Root Cause

The root cause is incorrect privilege assignment [CWE-266] within PostgreSQL's session role-tracking logic. PostgreSQL fails to consistently apply the switched identity when evaluating built-in role functions during certain query paths.

Attack Vector

Exploitation occurs over the network against an authenticated database session. An attacker supplies crafted parameters to an application query, or observes query output, in a context where SET ROLE or SET SESSION AUTHORIZATION has been issued. The vulnerability has high attack complexity because the application must reference current_setting('role') or the current user ID in its logic.

No public proof-of-concept code or exploit is available. See the PostgreSQL Security Advisory CVE-2024-10978 for vendor-provided technical details.

Detection Methods for CVE-2024-10978

Indicators of Compromise

  • Unexpected data access patterns from low-privilege application accounts in PostgreSQL audit logs
  • Query results referencing current_setting('role') returning inconsistent or unexpected values
  • Anomalous row modifications occurring during sessions that issued SET ROLE or SET SESSION AUTHORIZATION

Detection Strategies

  • Enable PostgreSQL pg_audit or detailed log_statement logging to capture role-switching commands and parameterized queries
  • Review application query patterns for use of SET ROLE, SET SESSION AUTHORIZATION, and current_setting('role') references
  • Correlate authenticated session activity with row-level access changes across user accounts

Monitoring Recommendations

  • Forward PostgreSQL logs to a centralized SIEM and alert on role-switch operations from application service accounts
  • Track PostgreSQL server version banners across the fleet to confirm patched releases are deployed
  • Monitor for spikes in failed authorization checks or unexpected UPDATE/DELETE statements following role-switch operations

How to Mitigate CVE-2024-10978

Immediate Actions Required

  • Upgrade PostgreSQL to version 17.1, 16.5, 15.9, 14.14, 13.17, or 12.21 or later, matching the deployed major version
  • Inventory applications using SET ROLE or SET SESSION AUTHORIZATION and prioritize them for patching
  • Restart PostgreSQL services after upgrading to ensure all sessions use the fixed code path

Patch Information

PostgreSQL released fixes in versions 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 on 2024-11-14. Debian users should apply updates referenced in Debian LTS Announcement #11 and Debian LTS Announcement #18. Full vendor details are available in the PostgreSQL Security Advisory CVE-2024-10978.

Workarounds

  • Avoid relying on current_setting('role') or the current user ID for row-level authorization in application queries until patched
  • Enforce data isolation through native PostgreSQL row-level security policies bound to immutable session attributes
  • Restrict database connections to trusted application tiers and limit privileges granted to application roles
bash
# Verify the running PostgreSQL version after upgrade
psql -U postgres -c "SHOW server_version;"

# Example apt upgrade on Debian-based systems
sudo apt update
sudo apt install --only-upgrade postgresql postgresql-client
sudo systemctl restart postgresql

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechPostgresql

  • SeverityMEDIUM

  • CVSS Score4.2

  • EPSS Probability0.61%

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

  • NVD-CWE-noinfo
  • Technical References
  • Debian LTS Announcement #11

  • Debian LTS Announcement #18

  • PostgreSQL Mailing List Discussion
  • Vendor Resources
  • PostgreSQL Security Advisory CVE-2024-10978
  • Related CVEs
  • CVE-2026-9617: PostgreSQL Anonymizer Privilege Escalation

  • CVE-2026-2361: PostgreSQL Anonymizer Privilege Escalation

  • CVE-2026-2360: PostgreSQL Anonymizer Privilege Escalation

  • CVE-2024-0985: PostgreSQL Privilege Escalation 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