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.
Overview
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.
- Published
- 11/14/2024
- Last modified
- 6/17/2026
- CVE assigner
- Not available
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
postgresql postgresql | ≥ 12.0, < 12.21 | Verify advisory | Source |
postgresql postgresql | ≥ 13.0, < 13.17 | Verify advisory | Source |
postgresql postgresql | ≥ 14.0, < 14.14 | Verify advisory | Source |
postgresql postgresql | ≥ 15.0, < 15.9 | Verify advisory | Source |
postgresql postgresql | ≥ 16.0, < 16.5 | Verify advisory | Source |
postgresql postgresql | ≥ 17.0, < 17.1 | Verify advisory | Source |
PostgreSQL n/a | ≥ 17, < 17.1 | Verify advisory | Source |
PostgreSQL n/a | ≥ 16, < 16.5 | Verify advisory | Source |
PostgreSQL n/a | ≥ 15, < 15.9 | Verify advisory | Source |
PostgreSQL n/a | ≥ 14, < 14.14 | Verify advisory | Source |
PostgreSQL n/a | ≥ 13, < 13.17 | Verify advisory | Source |
PostgreSQL n/a | < 12.21 | Verify advisory | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
Published headline score: 5.4. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.