CVE-2023-2455
published 2023-06-09CVE-2023-2455: Row security policies disregard user ID changes after inlining; PostgreSQL could permit incorrect policies to be applied in certain cases where role-specific…
medium5.4CVSS 3.1
AVNACLPRLUINSUCLILAN
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.
Affected
22 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | postgresql-13 | < postgresql-13 13.11-0+deb11u1 (bullseye) | postgresql-13 13.11-0+deb11u1 (bullseye) |
| debian | postgresql-13 | < postgresql-13 13.17-0+deb11u1 (bullseye) | postgresql-13 13.17-0+deb11u1 (bullseye) |
| debian | postgresql-15 | < postgresql-13 13.11-0+deb11u1 (bullseye) | postgresql-13 13.11-0+deb11u1 (bullseye) |
| debian | postgresql-15 | < postgresql-13 13.17-0+deb11u1 (bullseye) | postgresql-13 13.17-0+deb11u1 (bullseye) |
| debian | postgresql-17 | < postgresql-13 13.17-0+deb11u1 (bullseye) | postgresql-13 13.17-0+deb11u1 (bullseye) |
| fedoraproject | fedora | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
| postgresql | postgresql | — | — |
| postgresql | postgresql | >= 11.0 < 11.20 | 11.20 |
| postgresql | postgresql | >= 12.0 < 12.21 | 12.21 |
| postgresql | postgresql | >= 12.0 < 12.15 | 12.15 |
| postgresql | postgresql | >= 13.0 < 13.17 | 13.17 |
| postgresql | postgresql | >= 13.0 < 13.11 | 13.11 |
| postgresql | postgresql | >= 14.0 < 14.14 | 14.14 |
| postgresql | postgresql | >= 14.0 < 14.8 | 14.8 |
| postgresql | postgresql | >= 15.0 < 15.9 | 15.9 |
| postgresql | postgresql | >= 15.0 < 15.3 | 15.3 |
| postgresql | postgresql | >= 16.0 < 16.5 | 16.5 |
| postgresql | postgresql | >= 17.0 < 17.1 | 17.1 |
| redhat | enterprise_linux | — | — |
| redhat | enterprise_linux | — | — |
CVSS provenance
nvdv3.15.4MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
osv7.5HIGH