CVE-2024-10976

PostgreSQL row security below e.g. subqueries disregards user ID changes

MEDIUM
5.4
CVSS Score
Published: November 14, 2024 at 01:00 PM UTC
Updated: June 17, 2026 at 06:56 AM UTC
1 product affected across 1 vendorPostgreSQL

Using PostgreSQL by N/A?

Get instant alerts when new vulnerabilities affect PostgreSQL - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.4
Exploit prediction
EPSS 0.8%
SSVC
No known exploit

Description

Incomplete tracking in PostgreSQL of tables with row security allows a reused query to view or change different rows from those intended. CVE-2023-2455 and CVE-2016-2193 fixed most interaction between row security and user ID changes. They missed cases where a subquery, WITH query, security invoker view, or SQL-language function references a table with a row-level security policy. This has the same consequences as the two earlier CVEs. That is to say, it leads to potentially incorrect policies being applied in cases where role-specific policies are used and a given query is planned under one role and then executed under other roles. This scenario can happen under security definer functions or when a common user and query is planned initially and then re-used across multiple SET ROLEs. Applying an incorrect policy may permit a user to complete otherwise-forbidden reads and modifications. This affects only databases that have used CREATE POLICY to define a row security policy. An attacker must tailor an attack to a particular application's pattern of query plan reuse, user ID changes, and role-specific row security policies. Versions before PostgreSQL 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 are affected.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 12.2112.0 ≤ v < 12.2113 ≤ v < 13.1713.0 ≤ v < 13.1714 ≤ v < 14.1414.0 ≤ v < 14.1415 ≤ v < 15.915.0 ≤ v < 15.916 ≤ v < 16.516.0 ≤ v < 16.517 ≤ v < 17.117.0 ≤ v < 17.11314151617
Affected range stops below 12.21, so it looks safe — our inference, not a vendor statement
Affected range stops below 13.17, so it looks safe — our inference, not a vendor statement
Affected range stops below 14.14, so it looks safe — our inference, not a vendor statement
Affected range stops below 15.9, so it looks safe — our inference, not a vendor statement
Affected range stops below 16.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 17.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

Vendor Advisory
Source: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
https://www.postgresql.org/support/security/CVE-2024-10976/
Source: af854a3a-2127-422b-91ae-364da2661108
https://security.netapp.com/advisory/ntap-20250509-0010/
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2024/11/msg00011.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-1250NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card