CVE-2023-2455

EUVD-2023-33940
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
5.4 MEDIUM
NETWORK
LOW
LOW
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
CISA-ADPADP
5.4 MEDIUM
NETWORK
LOW
LOW
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Base Score
CVSS 3.x
EPSS Score
Percentile: 43%
Affected Products (NVD)
VendorProductVersion
postgresqlpostgresql
11.0 ≤
𝑥
< 11.20
postgresqlpostgresql
12.0 ≤
𝑥
< 12.15
postgresqlpostgresql
13.0 ≤
𝑥
< 13.11
postgresqlpostgresql
14.0 ≤
𝑥
< 14.8
postgresqlpostgresql
15.0 ≤
𝑥
< 15.3
redhatsoftware_collections
-
redhatenterprise_linux
8.0
redhatenterprise_linux
9.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
postgresql-13
bullseye
13.16-0+deb11u1
fixed
bullseye (security)
13.18-0+deb11u1
fixed
postgresql-15
bookworm
15.8-0+deb12u1
fixed
bookworm (security)
15.10-0+deb12u1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
postgresql
bionic
dne
focal
dne
jammy
dne
kinetic
dne
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
ignored
xenial
ignored
postgresql-10
bionic
Fixed 10.23-0ubuntu0.18.04.2
released
focal
dne
jammy
dne
kinetic
dne
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
dne
xenial
dne
postgresql-12
bionic
dne
focal
Fixed 12.15-0ubuntu0.20.04.1
released
jammy
dne
kinetic
dne
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
ignored
xenial
dne
postgresql-14
bionic
dne
focal
dne
jammy
Fixed 14.8-0ubuntu0.22.04.1
released
kinetic
Fixed 14.8-0ubuntu0.22.10.1
released
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
dne
xenial
dne
postgresql-15
bionic
dne
focal
dne
jammy
dne
kinetic
dne
lunar
Fixed 15.3-0ubuntu0.23.04.1
released
mantic
not-affected
noble
dne
oracular
dne
trusty
ignored
xenial
ignored
postgresql-9.1
bionic
dne
focal
dne
jammy
dne
kinetic
dne
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
ignored
xenial
dne
postgresql-9.3
bionic
dne
focal
dne
jammy
dne
kinetic
dne
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
ignored
xenial
dne
postgresql-9.5
bionic
dne
focal
dne
jammy
dne
kinetic
dne
lunar
dne
mantic
dne
noble
dne
oracular
dne
trusty
dne
xenial
ignored