CVE-2024-10978
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.
Description as published by the source, in English.
Key facts
- Published
- 2024-11-14
- Last modified
- 2026-06-17
- Assigned by
- f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.7 %
higher than 50 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Debian | Debian Linux | 11.0 | Affected |
| Postgresql | Postgresql | 17.0 | Affected |
| Postgresql | Postgresql | ≥ 12.0, < 12.21 | Affected |
| Postgresql | Postgresql | ≥ 13.0, < 13.17 | Affected |
| Postgresql | Postgresql | ≥ 14.0, < 14.14 | Affected |
| Postgresql | Postgresql | ≥ 15.0, < 15.9 | Affected |
| Postgresql | Postgresql | ≥ 16.0, < 16.5 | Affected |
Weakness type
-
CWE-266: Incorrect Privilege Assignment
A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.
References
- https://www.postgresql.org/support/security/CVE-2024-10978/
- https://lists.debian.org/debian-lts-announce/2024/11/msg00018.html
- https://www.postgresql.org/message-id/173171334532.1547978.1518068370217143844%40wrigleys…
- https://lists.debian.org/debian-lts-announce/2024/11/msg00011.html
Related at Berigo
Articles
-
An eighteen-year-old Linux kernel flaw hands ordinary users root
Same product
2026-08-08
Tencent Zhuque Lab has found a flaw in the SCTP part of the Linux kernel that has been there since 2008. An ordinary user can use it to gain root, an…
-
Bad Epoll grants root access in the Linux kernel
Same product
2026-07-03
CVE-2026-46242 is a use-after-free in the Linux kernel's epoll that lets an unprivileged process gain root on servers, desktops and Android devices.
-
Critical unauthenticated vulnerability in Splunk Enterprise
Same product
2026-06-10
CVE-2026-20253, scored 9.8, lets an unauthenticated attacker create or truncate files via a PostgreSQL sidecar in Splunk.
-
Twelve-year-old PackageKit flaw affects widely used Linux distributions
Same product
2026-04-22
Deutsche Telekom's red team has found a CVSS 8.8 privilege escalation flaw in the PackageKit daemon, fixed in version 1.3.5.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.