CVE-2023-2455

Medium

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.

SeverityMedium
CVSS5.4
Exploit probability—
ProductPostgresql
PublishedJun 9, 2023
First seenJun 9, 2023

How to fix

Update
  • postgresql postgresql11.20, 12.15, 13.11, 14.8, 15.3 or later

Affected products

ProductAffected versionsFixed in
postgresql postgresql11.0 ≤ v < 11.20, 12.0 ≤ v < 12.15, 13.0 ≤ v < 13.11, 14.0 ≤ v < 14.8, 15.0 ≤ v < 15.311.20, 12.15, 13.11, 14.8, 15.3
redhat software_collectionsNo range specified—
redhat enterprise_linux8.0, 9.0—
fedoraproject fedora38—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.