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.
How to fix CVE-2023-2455
To remediate CVE-2023-2455, upgrade the affected package to a fixed version below.
- —upgrade to 13.11-r0 or later
- —upgrade to 13.11-r0 or later
- —upgrade to 14.8-r0 or later
- —upgrade to 15.3-r0 or later
- —upgrade to 11.20.0 or later
- —upgrade to 13.11-0+deb11u1 or later
- —upgrade to 15.3-0+deb12u1 or later
Is CVE-2023-2455 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (7)
- from 0, < 13.11-r0
- from 0, < 13.11-r0
- from 0, < 14.8-r0
- from 0, < 15.3-r0
- >= 11.0.0, < 11.20.0, >= 12.0.0, < 12.15.0, >= 13.0.0, < 13.11.0, >= 14.0.0, < 14.8.0, >= 15.0.0, < 15.3.0
- from 0, < 13.11-0+deb11u1
- from 0, < 15.3-0+deb12u1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |