CVE-2023-2455
Description
Row security policies disregard user ID changes after inlining; PostgreSQL could permit incorrect policies to be applied in certain 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.
How to fix
- postgresql postgresql11.20, 12.15, 13.11, 14.8, 15.3 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| postgresql postgresql | 11.0 ≤ v < 11.20, 12.0 ≤ v < 12.15, 13.0 ≤ v < 13.11, 14.0 ≤ v < 14.8, 15.0 ≤ v < 15.3 | 11.20, 12.15, 13.11, 14.8, 15.3 |
| redhat software_collections | No range specified | — |
| redhat enterprise_linux | 8.0, 9.0 | — |
| fedoraproject fedora | 38 | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.