CVE-2024-10978: PostgreSQL SET ROLE, SET SESSION AUTHORIZATION reset to wrong user ID
Vulnerability summary
CVE-2024-10978 is a medium (CVSS 4.2) Incorrect Privilege Assignment vulnerability in debian debian_linux. EPSS estimates a 0.69% chance of exploitation in the next 30 days, higher than 54.1% of scored vulnerabilities.
Not severe (CVSS 4.2, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 32 · Related 28Timeline
- 14-11-2024PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · AlpineEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- OSV · WolfiEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- OSV · ChainguardEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- NVDNIST4.2MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.69%
Chance of exploitation in the next 30 days
Percentile
54%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.69% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard8 products
- postgresql-12< 12.21-r0
- postgresql-13< 13.17-r0
- postgresql-14< 14.14-r0
- postgresql-14-clientAll versions (No fix recorded) | < 14.24-r2
- postgresql-15< 15.9-r0
Wolfi8 products
- postgresql-12< 12.21-r0
- postgresql-13< 13.17-r0
- postgresql-14< 14.14-r0
- postgresql-14-clientAll versions (No fix recorded) | < 14.24-r2
- postgresql-15< 15.9-r0
Ubuntu6 products
- postgresql-10All versions (No fix recorded)
- postgresql-12< 12.22-0ubuntu0.20.04.1
- postgresql-14< 14.15-0ubuntu0.22.04.1
- postgresql-16< 16.6-0ubuntu0.24.04.1
- postgresql-9.3All versions (No fix recorded)
Alpine5 products
- postgresql13< 13.17-r0
- postgresql14< 14.14-r0
- postgresql15< 15.9-r0
- postgresql16< 16.5-r0
- postgresql17< 17.1-r0
Debian3 products
- postgresql-15< 15.9-0+deb12u1
- postgresql-17< 17.1-1
- debian_linuxEOL11.0
Postgresql1 product
- postgresql≥ 12.0, < 12.21 | ≥ 13.0, < 13.17 | ≥ 14.0, < 14.14 | ≥ 15.0, < 15.9 | ≥ 16.0, < 16.5 | 17.0 | 17.0:beta1 | 17.0:beta2 | 17.0:beta3 | 17.0:rc1
6 vendors · 31 products