Forbidden reads and writes via role-blind cached plans
Published Nov 14, 2024 · Updated Nov 3, 2025
Row-security bypass in PostgreSQL before 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 allows remote authenticated users to read or modify protected rows. The planner fails to mark cached plans as role-dependent when a CTE, subquery, sublink, security-invoker view, coercion projection, or SQL function reaches an RLS table, so later executions under another role reuse the wrong policy context. Exploitation requires CREATE POLICY, role-specific policies, user-ID changes, and a matching plan-reuse pattern; successful reuse exposes or changes rows that the executing role should not access.
Summary
What happened
Row-security bypass in PostgreSQL before 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 allows remote authenticated users to read or modify protected rows. The planner fails to mark cached plans as role-dependent when a CTE, subquery, sublink, security-invoker view, coercion projection, or SQL function reaches an RLS table, so later executions under another role reuse the wrong policy context. Exploitation requires CREATE POLICY, role-specific policies, user-ID changes, and a matching plan-reuse pattern; successful reuse exposes or changes rows that the executing role should not access.
The record
- CVE
- CVE-2024-10976
- Published
- Nov 14, 2024
- Updated
- Nov 3, 2025
- Vendor
- PostgreSQL Global Development Group
- Product
- PostgreSQL
- Classifications
- CWE-1250
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Nov 14, 2024CVE publishedPublication date reported by the CVE source.
- Nov 3, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <12.21
- Affected versionversion=13 <13.17
- Affected versionversion=14 <14.14
- Affected versionversion=15 <15.9
- Affected versionversion=16 <16.5
- Affected versionversion=17 <17.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo