CVE-2023-2455

Name
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.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
MISC https://access.redhat.com/security/cve/CVE-2023-2455
MISC https://www.postgresql.org/support/security/CVE-2023-2455/
CONFIRM https://security.netapp.com/advisory/ntap-20230706-0006/

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* postgresql >= 15.0 < 15.3
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* postgresql >= 14.0 < 14.8
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* postgresql >= 13.0 < 13.11
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* postgresql >= 12.0 < 12.15
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* postgresql >= 11.0 < 11.20

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
postgresql12 3.17-community 12.15-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
postgresql13 3.17-community 13.11-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
postgresql 3.14-main 13.11-r0 Jakub Jirutka <jakub@jirutka.cz> fixed