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-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 rows. This article covers the technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-10978 Overview

CVE-2024-10978 is an Incorrect Privilege Assignment vulnerability affecting PostgreSQL database systems. This flaw allows a less-privileged application user to view or modify data rows different from those intended when the application utilizes SET ROLE, SET SESSION AUTHORIZATION, or equivalent features.

The vulnerability arises when an application query uses attacker-controlled parameters or conveys query results to the attacker, and that query reacts to current_setting('role') or the current user ID. Under these conditions, the query may modify or return data as though the session had not used SET ROLE or SET SESSION AUTHORIZATION. While the attacker does not control which incorrect user ID applies, this still represents a significant authorization bypass that can lead to unauthorized data access or modification.

Critical Impact

Authenticated attackers can potentially view or modify database rows belonging to other users through privilege confusion when applications use session authorization switching features.

Affected Products

  • PostgreSQL versions before 17.1
  • PostgreSQL versions before 16.5, 15.9, 14.14, 13.17, and 12.21
  • Debian Linux 11.0

Discovery Timeline

  • November 14, 2024 - CVE-2024-10978 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2024-10978

Vulnerability Analysis

This vulnerability is classified under CWE-266 (Incorrect Privilege Assignment). The flaw exists in how PostgreSQL handles privilege context during role switching operations. When an application uses SET ROLE or SET SESSION AUTHORIZATION to temporarily assume a different user context, queries that reference the current role or user ID may not correctly reflect the switched context.

The attack requires specific conditions to be exploitable: the target application must utilize role switching functionality, and the application must either accept query parameters from the attacker or return query results to them. If a query checks current_setting('role') or evaluates the current user ID as part of its authorization logic, it may incorrectly process requests using the original session's privilege context rather than the switched role.

This creates a window where authorization decisions based on the current role may be inconsistent with the actual effective privileges, potentially allowing access to rows or data that should be restricted.

Root Cause

The root cause is improper handling of privilege context state within PostgreSQL when role switching operations are performed. The internal representation of the current role or user ID can become inconsistent with the effective authorization context established by SET ROLE or SET SESSION AUTHORIZATION. This inconsistency causes queries that rely on these internal values for row-level security or similar authorization checks to make incorrect access decisions.

Attack Vector

The attack is network-based but requires low-level authentication to the database. The attack complexity is high because it requires a specific application architecture that:

  1. Uses SET ROLE or SET SESSION AUTHORIZATION for privilege switching
  2. Accepts user-controlled parameters in queries OR returns query results to the attacker
  3. Contains queries that reference current_setting('role') or current user ID for authorization decisions

The vulnerability manifests when these conditions align, causing the privilege checking mechanism to evaluate against the wrong user context. The attacker cannot directly control which incorrect user ID is applied, limiting the precision of exploitation but still enabling unauthorized data access or modification.

For detailed technical information, refer to the PostgreSQL Security Advisory and related PostgreSQL mailing list discussion.

Detection Methods for CVE-2024-10978

Indicators of Compromise

  • Unexpected query results returning data from other users or roles
  • Audit log entries showing data access patterns inconsistent with user privileges
  • Database modifications to rows that the authenticated user should not have access to
  • Anomalous patterns in applications using SET ROLE or SET SESSION AUTHORIZATION

Detection Strategies

  • Review application code for usage of SET ROLE, SET SESSION AUTHORIZATION, or similar privilege-switching functions
  • Audit database queries that reference current_setting('role') or current_user for authorization logic
  • Enable PostgreSQL logging to capture role switching operations and subsequent query activity
  • Implement query result validation to detect unexpected data access patterns

Monitoring Recommendations

  • Monitor PostgreSQL logs for SET ROLE and SET SESSION AUTHORIZATION statements followed by suspicious query patterns
  • Configure database activity monitoring to alert on cross-user data access anomalies
  • Implement row-level access auditing for sensitive tables
  • Deploy SentinelOne Singularity to detect exploitation attempts and anomalous database access patterns

How to Mitigate CVE-2024-10978

Immediate Actions Required

  • Upgrade PostgreSQL to patched versions: 17.1, 16.5, 15.9, 14.14, 13.17, or 12.21
  • Review applications using SET ROLE or SET SESSION AUTHORIZATION for vulnerable query patterns
  • Audit queries that use current_setting('role') or user ID checks for authorization decisions
  • Consider implementing application-level authorization checks independent of session role context

Patch Information

PostgreSQL has released security updates addressing this vulnerability. Upgrade to the following minimum versions based on your current major version:

Major VersionPatched Version
PostgreSQL 1717.1
PostgreSQL 1616.5
PostgreSQL 1515.9
PostgreSQL 1414.14
PostgreSQL 1313.17
PostgreSQL 1212.21

Debian Linux users should apply updates per the Debian LTS security announcements.

Workarounds

  • Avoid using SET ROLE or SET SESSION AUTHORIZATION in applications until patches are applied
  • Implement application-layer authorization checks that do not rely on PostgreSQL session context
  • Use separate database connections with appropriate credentials instead of role switching
  • Restrict database user privileges to minimize impact of potential exploitation
bash
# Verify PostgreSQL version and check for vulnerable configurations
psql -c "SELECT version();"

# Check for applications using SET ROLE or SET SESSION AUTHORIZATION
grep -r "SET ROLE\|SET SESSION AUTHORIZATION" /path/to/application/

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

  • Debian LTS Announcement 2024-11-18

  • PostgreSQL Mailing List Thread
  • Vendor Resources
  • PostgreSQL Security Advisory
  • Related CVEs
  • CVE-2026-2361: PostgreSQL Anonymizer Privilege Escalation

  • CVE-2026-2360: PostgreSQL Anonymizer Privilege Escalation

  • CVE-2024-0985: PostgreSQL Privilege Escalation Vulnerability

  • CVE-2022-1552: PostgreSQL Privilege Escalation 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