CVE
CVE-2023-2455
CNA 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 versions
All PostgreSQL vulnerabilities →
- ≥ 15.0, < 15.3Fixed in 15.3
- ≥ 14.0, < 14.8Fixed in 14.8
- ≥ 13.0, < 13.11Fixed in 13.11
- ≥ 12.0, < 12.15Fixed in 12.15
- ≥ 11.0, < 11.20Fixed in 11.20
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- access.redhat.com/security/cve/CVE-2023-2455 · Third Party Advisory
- www.postgresql.org/support/security/CVE-2023-2455/ · Vendor Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.