# CVE-2024-10978: PostgreSQL SET ROLE, SET SESSION AUTHORIZATION reset to wrong user ID

- Severity: Medium 4.2 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 54% of CVEs (2026-12-01)
- Published: 2024-11-14T13:00:07.398Z
- Modified: 2026-09-08T08:46:22.859Z
- Also known as: BIT-POSTGRESQL-2024-10978
- Weaknesses: CWE-266
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PostgreSQL

## 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.

(As written by CVE List.)

## Affected

- PostgreSQL: from 17 before 17.1; from 16 before 16.5; from 15 before 15.9; from 14 before 14.14; from 13 before 13.17; before 12.21
- postgresql postgresql: from 12.0 before 12.21; from 13.0 before 13.17; from 14.0 before 14.14; from 15.0 before 15.9; from 16.0 before 16.5; 17.0
- debian debian_linux: 11.0
- postgresql (Bitnami): before 12.21.0; from 13.0.0 before 13.17.0; from 14.0.0 before 14.14.0; from 15.0.0 before 15.9.0; from 16.0.0 before 16.5.0; from 17.0.0 before 17.1.0

## Every score

- PostgreSQL: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://www.postgresql.org/support/security/CVE-2024-10978/> (advisory, vendor-advisory)
- <https://www.postgresql.org/message-id/173171334532.1547978.1518068370217143844%40wrigleys.postgresql.org> (discussion, mailing-list)
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00018.html> (discussion, mailing-list)
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00011.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-10978> (web)

## Sources

- CVE List: [CVE-2024-10978](https://www.cve.org/CVERecord?id=CVE-2024-10978), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2024-10978](https://nvd.nist.gov/vuln/detail/CVE-2024-10978), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-2024-10978](https://osv.dev/vulnerability/BIT-POSTGRESQL-2024-10978), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-10978 · Whole record: https://cve.day/CVE-2024-10978.json · Rebuilt by cve.day 2026-11-25T22:58:48.251Z
