Original 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.
Affected software
- PostgreSQL ≥ 14.0 < 14.8≥ 11.0 < 11.20≥ 15.0 < 15.3≥ 13.0 < 13.11≥ 12.0 < 12.15 Fixed in: 14.8, 11.20, 15.3, 13.11 exact match
Details
- Published
- 2023-06-09
- Last modified
- 2025-01-07
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N- CWE
- CWE-20
- EPSS (30-day exploit probability)
- 0.70% (percentile 54)
References
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.