CVE-2024-10978
published medium CVSS 3.1 · 4.2PostgreSQL SET ROLE, SET SESSION AUTHORIZATION reset to wrong user ID
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | PostgreSQL17 to < 17.1 · 16 to < 16.5 · 15 to < 15.9 · 14 to < 14.14 · 13 to < 13.17 · 0 to < 12.21 · Other versions: unaffected | Affected | Not stated | PostgreSQL |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL13-2024-008 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL14-2024-014 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL14-2024-015 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-786 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.6.0+2760+1746ec94 | ALSA-2024:10785 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.6.0+2760+1746ec94 | ALSA-2024:10832 |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-787 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.9.0+3704+f1f917ce | ALSA-2024:10785 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.9.0+3704+f1f917ce | ALSA-2024:10832 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.8-1.module_el8.10.0+3798+606ebb9f | ALSA-2024:10830 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.8-1.module_el8.9.0+3706+885c732e | ALSA-2024:10830 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.5.1-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.4.0-7.module_el8.10.0+3889+48cb11fb.alma.1 | ALSA-2024:10785 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:10785 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.5.0-1.module_el8.6.0+2760+1746ec94 | ALSA-2024:10832 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.5.0-1.module_el8.6.0+3095+ee60d910 | ALSA-2024:10832 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.7.0-1.module_el8.9.0+3706+885c732e | ALSA-2024:10830 |
| AlmaLinux | 8 | pgaudit | Advisory build | 16.0-1.module_el8.10.0+3798+606ebb9f | ALSA-2024:10831 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.6.0+2760+1746ec94 | ALSA-2024:10785 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.6.0+2760+1746ec94 | ALSA-2024:10832 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.6.0+3095+ee60d910 | ALSA-2024:10785 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.6.0+3095+ee60d910 | ALSA-2024:10832 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.9.0+3704+f1f917ce | ALSA-2024:10785 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.9.0+3704+f1f917ce | ALSA-2024:10832 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 1.9.7-1.Final.module_el8.9.0+3706+885c732e | ALSA-2024:10830 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 2.4.0-1.Final.module_el8.10.0+3798+606ebb9f | ALSA-2024:10831 |
| AlmaLinux | 8 | postgresql | Advisory build | 12.22-1.module_el8.10.0+3927+7f0fab70 | ALSA-2024:10785 |
| AlmaLinux | 8 | postgresql | Advisory build | 13.18-1.module_el8.10.0+3928+8233d274 | ALSA-2024:10832 |
| AlmaLinux | 8 | postgresql | Advisory build | 15.10-1.module_el8.10.0+3929+38258aa5 | ALSA-2024:10830 |
| AlmaLinux | 8 | postgresql | Advisory build | 16.6-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 12.22-1.module_el8.10.0+3927+7f0fab70 | ALSA-2024:10785 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 13.18-1.module_el8.10.0+3928+8233d274 | ALSA-2024:10832 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 15.10-1.module_el8.10.0+3929+38258aa5 | ALSA-2024:10830 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 16.6-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 12.22-1.module_el8.10.0+3927+7f0fab70 | ALSA-2024:10785 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 13.18-1.module_el8.10.0+3928+8233d274 | ALSA-2024:10832 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 15.10-1.module_el8.10.0+3929+38258aa5 | ALSA-2024:10830 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 16.6-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 12.22-1.module_el8.10.0+3927+7f0fab70 | ALSA-2024:10785 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 13.18-1.module_el8.10.0+3928+8233d274 | ALSA-2024:10832 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 15.10-1.module_el8.10.0+3929+38258aa5 | ALSA-2024:10830 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 16.6-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 12.22-1.module_el8.10.0+3927+7f0fab70 | ALSA-2024:10785 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 13.18-1.module_el8.10.0+3928+8233d274 | ALSA-2024:10832 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 15.10-1.module_el8.10.0+3929+38258aa5 | ALSA-2024:10830 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 16.6-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 12.22-1.module_el8.10.0+3927+7f0fab70 | ALSA-2024:10785 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 13.18-1.module_el8.10.0+3928+8233d274 | ALSA-2024:10832 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 15.10-1.module_el8.10.0+3929+38258aa5 | ALSA-2024:10830 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 16.6-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 8 | postgresql-private-devel | Advisory build | 15.10-1.module_el8.10.0+3929+38258aa5 | ALSA-2024:10830 |
| AlmaLinux | 8 | postgresql-private-devel | Advisory build | 16.6-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 8 | postgresql-private-libs | Advisory build | 15.10-1.module_el8.10.0+3929+38258aa5 | ALSA-2024:10830 |
| AlmaLinux | 8 | postgresql-private-libs | Advisory build | 16.6-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 12.22-1.module_el8.10.0+3927+7f0fab70 | ALSA-2024:10785 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 13.18-1.module_el8.10.0+3928+8233d274 | ALSA-2024:10832 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 15.10-1.module_el8.10.0+3929+38258aa5 | ALSA-2024:10830 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 16.6-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 12.22-1.module_el8.10.0+3927+7f0fab70 | ALSA-2024:10785 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 13.18-1.module_el8.10.0+3928+8233d274 | ALSA-2024:10832 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 15.10-1.module_el8.10.0+3929+38258aa5 | ALSA-2024:10830 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 16.6-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 12.22-1.module_el8.10.0+3927+7f0fab70 | ALSA-2024:10785 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 13.18-1.module_el8.10.0+3928+8233d274 | ALSA-2024:10832 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 15.10-1.module_el8.10.0+3929+38258aa5 | ALSA-2024:10830 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 16.6-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 12.22-1.module_el8.10.0+3927+7f0fab70 | ALSA-2024:10785 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 13.18-1.module_el8.10.0+3928+8233d274 | ALSA-2024:10832 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 15.10-1.module_el8.10.0+3929+38258aa5 | ALSA-2024:10830 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 16.6-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 12.22-1.module_el8.10.0+3927+7f0fab70 | ALSA-2024:10785 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 13.18-1.module_el8.10.0+3928+8233d274 | ALSA-2024:10832 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 15.10-1.module_el8.10.0+3929+38258aa5 | ALSA-2024:10830 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 16.6-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 12.22-1.module_el8.10.0+3927+7f0fab70 | ALSA-2024:10785 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 13.18-1.module_el8.10.0+3928+8233d274 | ALSA-2024:10832 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 15.10-1.module_el8.10.0+3929+38258aa5 | ALSA-2024:10830 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 16.6-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 12.22-1.module_el8.10.0+3927+7f0fab70 | ALSA-2024:10785 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 13.18-1.module_el8.10.0+3928+8233d274 | ALSA-2024:10832 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 15.10-1.module_el8.10.0+3929+38258aa5 | ALSA-2024:10830 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 16.6-1.module_el8.10.0+3930+ecf33554 | ALSA-2024:10831 |
| AlmaLinux | 9 | pg_repack | Advisory build | 1.4.8-2.module_el9.5.0+120+4533eb20 | ALSA-2024:10787 |
| AlmaLinux | 9 | pg_repack | Advisory build | 1.5.1-1.module_el9.5.0+127+50ff03a9 | ALSA-2024:10788 |
| AlmaLinux | 9 | pg_repack | Advisory build | 1.5.1-1.module_el9.5.0+128+1095dce2 | ALSA-2024:10788 |
| AlmaLinux | 9 | pgaudit | Advisory build | 1.7.0-1.module_el9.3.0+52+21733919 | ALSA-2024:10787 |
| AlmaLinux | 9 | pgaudit | Advisory build | 16.0-1.module_el9.4.0+66+eb9878bc | ALSA-2024:10788 |
| AlmaLinux | 9 | pgvector | Advisory build | 0.6.2-1.module_el9.5.0+120+4533eb20 | ALSA-2024:10788 |
| AlmaLinux | 9 | postgres-decoderbufs | Advisory build | 1.9.7-1.Final.module_el9.3.0+52+21733919 | ALSA-2024:10787 |
| AlmaLinux | 9 | postgres-decoderbufs | Advisory build | 2.4.0-1.Final.module_el9.4.0+66+eb9878bc | ALSA-2024:10788 |
| AlmaLinux | 9 | postgresql | Advisory build | 13.18-1.el9_5 | ALSA-2024:10791 |
| AlmaLinux | 9 | postgresql | Advisory build | 15.10-1.module_el9.5.0+126+03d48c9f | ALSA-2024:10787 |
| AlmaLinux | 9 | postgresql | Advisory build | 16.6-1.module_el9.5.0+127+50ff03a9 | ALSA-2024:10788 |
| AlmaLinux | 9 | postgresql | Advisory build | 16.6-1.module_el9.5.0+128+1095dce2 | ALSA-2024:10788 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 13.18-1.el9_5 | ALSA-2024:10791 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 15.10-1.module_el9.5.0+126+03d48c9f | ALSA-2024:10787 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 16.6-1.module_el9.5.0+127+50ff03a9 | ALSA-2024:10788 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 16.6-1.module_el9.5.0+128+1095dce2 | ALSA-2024:10788 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 13.18-1.el9_5 | ALSA-2024:10791 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 15.10-1.module_el9.5.0+126+03d48c9f | ALSA-2024:10787 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 16.6-1.module_el9.5.0+127+50ff03a9 | ALSA-2024:10788 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 16.6-1.module_el9.5.0+128+1095dce2 | ALSA-2024:10788 |
| AlmaLinux | 9 | postgresql-plperl | Advisory build | 13.18-1.el9_5 | ALSA-2024:10791 |
| AlmaLinux | 9 | postgresql-plperl | Advisory build | 15.10-1.module_el9.5.0+126+03d48c9f | ALSA-2024:10787 |
| AlmaLinux | 9 | postgresql-plperl | Advisory build | 16.6-1.module_el9.5.0+127+50ff03a9 | ALSA-2024:10788 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Showing the first 100 linked advisory records.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.2 / 10
- Severity
- medium
- Provider
- PostgreSQL · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | PostgreSQL | 17 to < 17.1 (affected · rpm)16 to < 16.5 (affected · rpm)15 to < 15.9 (affected · rpm)14 to < 14.14 (affected · rpm)13 to < 13.17 (affected · rpm)0 to < 12.21 (affected · rpm)Default: unaffected | PostgreSQL · cna |
Weaknesses
1- CWE-266 Incorrect Privilege Assignment
References
4Provider assertions
3PostgreSQL · cna
PostgreSQL SET ROLE, SET SESSION AUTHORIZATION reset to wrong user ID
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ab7ec57807c33c8d57149498f6b5f59b9e27104b24def536185ade2cb15a8558
- Ingested
- 23 Sep 2026, 08:16:56 UTC
- Source record
- Official CVE record