CVE-2024-10976 in Postgresql
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-la...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Postgresql | Postgresql | ≥ 12.0, < 12.21 ≥ 13.0, < 13.17 ≥ 14.0, < 14.14 ≥ 15.0, < 15.9 ≥ 16.0, < 16.5 ≥ 17.0, < 17.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-10976 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-181885-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| Published | 2024-11-14 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-1250: CWE-1250
Analysis AI-written, not human-reviewed
CVE-2024-10976 affects PostgreSQL by allowing a reused query to access or modify unintended rows due to incomplete tracking of tables with row security policies.
An attacker can exploit this vulnerability by crafting a query that references a table with row-level security policies through a subquery, WITH query, security invoker view, or SQL-language function. This can lead to unauthorized data access or modification.
Questions
What is CVE-2024-10976?
CVE-2024-10976 affects PostgreSQL by allowing a reused query to access or modify unintended rows due to incomplete tracking of tables with row security policies.
What is the CVSS score for CVE-2024-10976?
CVE-2024-10976 has CVSS 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N. EPSS: 0.8%.
Is CVE-2024-10976 actively exploited?
No confirmed active exploitation of CVE-2024-10976 as of 2026-09-25.
How do I remediate CVE-2024-10976?
Priority: MEDIUM. Advisory: https://www.postgresql.org/support/security/CVE-2024-10976/ PSIRT: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
What systems are affected by CVE-2024-10976?
CVE-2024-10976 affects Postgresql Postgresql.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Postgresql","product":"Postgresql","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.