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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-11-14 · Modified: 2025-11-03
- Aliases: ALPINE-CVE-2024-10978, UBUNTU-CVE-2024-10978, DEBIAN-CVE-2024-10978, CGA-3fx6-68r4-jw76, CGA-5wg5-66f3-4533, CGA-66ch-vph2-f9hq, CGA-6c5v-c2x3-p69w, CGA-c75q-4966-mrpj, CGA-cqxr-4fwm-jgv3, CGA-fw52-5mgx-9r2p, CGA-gcj6-w472-mqm6, CGA-gv3w-54r3-7354, CGA-hgrc-v6rh-q8rj, CGA-hp59-8c5j-q77p, CGA-jfgc-c498-q2q5, CGA-mc38-fhv5-7jpg, CGA-q8x2-fqwr-f8p9, CGA-w738-43fv-3f6c
- Record: https://cvemate.com/vulnerability/CVE-2024-10978 · JSON: https://cvemate.com/vulnerability/CVE-2024-10978/json

## Description

```text
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.
```

## Signals

- CVSS: 4.2 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- EPSS: 0.69%, percentile 54.195%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 31)

- alpine postgresql13 (Alpine Linux): \< 13.17-r0
- alpine postgresql14 (Alpine Linux): \< 14.14-r0
- alpine postgresql15 (Alpine Linux): \< 15.9-r0
- alpine postgresql16 (Alpine Linux): \< 16.5-r0
- alpine postgresql17 (Alpine Linux): \< 17.1-r0
- chainguard postgresql-12 (Chainguard): \< 12.21-r0
- chainguard postgresql-13 (Chainguard): \< 13.17-r0
- chainguard postgresql-14 (Chainguard): \< 14.14-r0
- chainguard postgresql-14-client (Chainguard): All versions (No fix recorded) \| \< 14.24-r2
- chainguard postgresql-15 (Chainguard): \< 15.9-r0
- chainguard postgresql-15-client (Chainguard): \< 15.19-r2
- chainguard postgresql-16 (Chainguard): \< 16.5-r0
- chainguard postgresql-17 (Chainguard): \< 17.1-r0
- wolfi postgresql-12 (Wolfi): \< 12.21-r0
- wolfi postgresql-13 (Wolfi): \< 13.17-r0
- wolfi postgresql-14 (Wolfi): \< 14.14-r0
- wolfi postgresql-14-client (Wolfi): All versions (No fix recorded) \| \< 14.24-r2
- wolfi postgresql-15 (Wolfi): \< 15.9-r0
- wolfi postgresql-15-client (Wolfi): \< 15.19-r2
- wolfi postgresql-16 (Wolfi): \< 16.5-r0

## References

- <https://www.postgresql.org/support/security/CVE-2024-10978/>
- <https://www.postgresql.org/message-id/173171334532.1547978.1518068370217143844%40wrigleys.postgresql.org>
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00018.html>
- <https://lists.debian.org/debian-lts-announce/2024/11/msg00011.html>
- <https://security.alpinelinux.org/vuln/CVE-2024-10978>
- <https://ubuntu.com/security/CVE-2024-10978>
- <https://www.cve.org/CVERecord?id=CVE-2024-10978>
- <https://ubuntu.com/security/notices/USN-7132-1>
- <https://ubuntu.com/security/notices/USN-7358-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-10978>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-10978>

---

Data as of 2026-12-05T05:00:11.819Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
