CVE-2024-10978

Incorrect privilege assignment in PostgreSQL allows a less-privileged application user to view or change different rows from those intended.  An attack requires the application to use SET ROLE, SET SESSION AUTHORIZATION, or an equivalent feature.  The problem arises when an application query uses parameters from the attacker or conveys query results to the attacker.  If that query reacts to current_setting('role') or the current user ID, it may modify or return data as though the session had not used SET ROLE or SET SESSION AUTHORIZATION.  The attacker does not control which incorrect user ID applies.  Query text from less-privileged sources is not a concern here, because SET ROLE and SET SESSION AUTHORIZATION are not sandboxes for unvetted queries.  Versions before PostgreSQL 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 are affected.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
4.2 MEDIUM
NETWORK
HIGH
LOW
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
PostgreSQLCNA
4.2 MEDIUM
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
CISA-ADPADP
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 29%
VendorProductVersion
postgresqlpostgresql
12.0 ≤
𝑥
< 12.21
postgresqlpostgresql
13.0 ≤
𝑥
< 13.17
postgresqlpostgresql
14.0 ≤
𝑥
< 14.14
postgresqlpostgresql
15.0 ≤
𝑥
< 15.9
postgresqlpostgresql
16.0 ≤
𝑥
< 16.5
postgresqlpostgresql
17.0
postgresqlpostgresql
17.0:beta1
postgresqlpostgresql
17.0:beta2
postgresqlpostgresql
17.0:beta3
postgresqlpostgresql
17.0:rc1
debiandebian_linux
11.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
postgresql-13
bullseye
vulnerable
bullseye (security)
13.21-0+deb11u1
fixed
postgresql-15
bookworm
15.13-0+deb12u1
fixed
bookworm (security)
15.10-0+deb12u1
fixed
postgresql-17
sid
17.5-1
fixed
trixie
17.5-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
postgresql-10
plucky
dne
oracular
dne
noble
dne
jammy
dne
focal
dne
bionic
needs-triage
postgresql-12
plucky
dne
oracular
dne
noble
dne
jammy
dne
focal
Fixed 12.22-0ubuntu0.20.04.1
released
postgresql-14
plucky
dne
oracular
dne
noble
dne
jammy
Fixed 14.15-0ubuntu0.22.04.1
released
focal
dne
postgresql-16
plucky
dne
oracular
Fixed 16.6-0ubuntu0.24.10.1
released
noble
Fixed 16.6-0ubuntu0.24.04.1
released
jammy
dne
focal
dne
postgresql-17
plucky
not-affected
oracular
dne
noble
dne
jammy
dne
focal
dne
postgresql-9.1
plucky
dne
oracular
dne
noble
dne
jammy
dne
focal
dne
postgresql-9.3
plucky
dne
oracular
dne
noble
dne
jammy
dne
focal
dne
trusty
deferred
postgresql-9.5
plucky
dne
oracular
dne
noble
dne
jammy
dne
focal
dne
xenial
Fixed 9.5.25-0ubuntu0.16.04.1+esm10
released