CVE-2024-10976
published medium CVSS 3.1 · 4.2PostgreSQL row security below e.g. subqueries disregards user ID changes
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 | Not Affected | Not required | 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
Incomplete tracking in PostgreSQL of tables with row security allows a reused query to view or change different rows from those intended. CVE-2023-2455 and CVE-2016-2193 fixed most interaction between row security and user ID changes. They missed cases where a subquery, WITH query, security invoker view, or SQL-language function references a table with a row-level security policy. This has the same consequences as the two earlier CVEs. That is to say, it leads to potentially incorrect policies being applied in cases where role-specific policies are used and a given query is planned under one role and then executed under other roles. This scenario can happen under security definer functions or when a common user and query is planned initially and then re-used across multiple SET ROLEs. Applying an incorrect policy may permit a user to complete otherwise-forbidden reads and modifications. This affects only databases that have used CREATE POLICY to define a row security policy. An attacker must tailor an attack to a particular application's pattern of query plan reuse, user ID changes, and role-specific row security policies. 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-1250 Improper Preservation of Consistency Between Independent Representations of Shared State
References
3Provider assertions
3PostgreSQL · cna
PostgreSQL row security below e.g. subqueries disregards user ID changes
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6b8b21f6ea410e526556ad6f81526b0e7ed7e2bbb7a830491cf2d6dd8d55a81d
- Ingested
- 23 Sep 2026, 08:16:56 UTC
- Source record
- Official CVE record