CVEvulnerability

CVE-2023-2455

5.4 MEDIUM Published 2023-06-09 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2023-06-09
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
5.4 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
5.4 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Weaknesses
CWE-20

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 configurations

• postgresql postgresql (>= 11.0 < 11.20) • postgresql postgresql (>= 12.0 < 12.15) • postgresql postgresql (>= 13.0 < 13.11) • postgresql postgresql (>= 14.0 < 14.8) • postgresql postgresql (>= 15.0 < 15.3) • redhat software collections • redhat enterprise linux 8.0 • redhat enterprise linux 9.0 • fedoraproject fedora 38

Related

Weakness · CWE (1)

  • CWE-20 Improper Input Validation weakness

References