CVE-2024-0985
published high CVSS 3.1 · 8.0PostgreSQL non-owner REFRESH MATERIALIZED VIEW CONCURRENTLY executes arbitrary SQL
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | PostgreSQL16 to < 16.2 · 15 to < 15.6 · 14 to < 14.11 · 13 to < 13.14 · 0 to < 12.18 · Other versions: unaffected | Affected | Not stated | PostgreSQL |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL12-2024-008 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL12-2024-009 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL13-2024-006 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL14-2024-006 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.6.0+2758+4f4474df | ALSA-2024:0974 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.6.0+2760+1746ec94 | ALSA-2024:0975 |
Show 100 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL14-2024-007 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-547 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.6.0+3094+eb237fb8 | ALSA-2024:0974 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.6.0+3095+ee60d910 | ALSA-2024:0975 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.6-3.module_el8.9.0+3704+f1f917ce | ALSA-2024:0974 |
| AlmaLinux | 8 | pg_repack | Advisory build | 1.4.8-1.module_el8.8.0+3487+43ec1b9f | ALSA-2024:0973 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.4.0-7.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:0974 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.5.0-1.module_el8.6.0+2760+1746ec94 | ALSA-2024:0975 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.5.0-1.module_el8.6.0+3095+ee60d910 | ALSA-2024:0975 |
| AlmaLinux | 8 | pgaudit | Advisory build | 1.7.0-1.module_el8.8.0+3487+43ec1b9f | ALSA-2024:0973 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.6.0+2758+4f4474df | ALSA-2024:0974 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.6.0+2760+1746ec94 | ALSA-2024:0975 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.6.0+3094+eb237fb8 | ALSA-2024:0974 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.6.0+3095+ee60d910 | ALSA-2024:0975 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 0.10.0-2.module_el8.9.0+3704+f1f917ce | ALSA-2024:0974 |
| AlmaLinux | 8 | postgres-decoderbufs | Advisory build | 1.9.7-1.Final.module_el8.8.0+3487+43ec1b9f | ALSA-2024:0973 |
| AlmaLinux | 8 | postgresql | Advisory build | 10.23-4.module_el8.9.0+3736+952d0ed7.alma.1 | ALSA-2024:0956 |
| AlmaLinux | 8 | postgresql | Advisory build | 12.18-1.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:0974 |
| AlmaLinux | 8 | postgresql | Advisory build | 13.14-1.module_el8.9.0+3738+d55e2165.alma.1 | ALSA-2024:0975 |
| AlmaLinux | 8 | postgresql | Advisory build | 15.6-1.module_el8.9.0+3739+514705ed.alma.1 | ALSA-2024:0973 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 10.23-4.module_el8.9.0+3736+952d0ed7.alma.1 | ALSA-2024:0956 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 12.18-1.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:0974 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 13.14-1.module_el8.9.0+3738+d55e2165.alma.1 | ALSA-2024:0975 |
| AlmaLinux | 8 | postgresql-contrib | Advisory build | 15.6-1.module_el8.9.0+3739+514705ed.alma.1 | ALSA-2024:0973 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 10.23-4.module_el8.9.0+3736+952d0ed7.alma.1 | ALSA-2024:0956 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 12.18-1.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:0974 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 13.14-1.module_el8.9.0+3738+d55e2165.alma.1 | ALSA-2024:0975 |
| AlmaLinux | 8 | postgresql-docs | Advisory build | 15.6-1.module_el8.9.0+3739+514705ed.alma.1 | ALSA-2024:0973 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 10.23-4.module_el8.9.0+3736+952d0ed7.alma.1 | ALSA-2024:0956 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 12.18-1.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:0974 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 13.14-1.module_el8.9.0+3738+d55e2165.alma.1 | ALSA-2024:0975 |
| AlmaLinux | 8 | postgresql-plperl | Advisory build | 15.6-1.module_el8.9.0+3739+514705ed.alma.1 | ALSA-2024:0973 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 10.23-4.module_el8.9.0+3736+952d0ed7.alma.1 | ALSA-2024:0956 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 12.18-1.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:0974 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 13.14-1.module_el8.9.0+3738+d55e2165.alma.1 | ALSA-2024:0975 |
| AlmaLinux | 8 | postgresql-plpython3 | Advisory build | 15.6-1.module_el8.9.0+3739+514705ed.alma.1 | ALSA-2024:0973 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 10.23-4.module_el8.9.0+3736+952d0ed7.alma.1 | ALSA-2024:0956 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 12.18-1.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:0974 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 13.14-1.module_el8.9.0+3738+d55e2165.alma.1 | ALSA-2024:0975 |
| AlmaLinux | 8 | postgresql-pltcl | Advisory build | 15.6-1.module_el8.9.0+3739+514705ed.alma.1 | ALSA-2024:0973 |
| AlmaLinux | 8 | postgresql-private-devel | Advisory build | 15.6-1.module_el8.9.0+3739+514705ed.alma.1 | ALSA-2024:0973 |
| AlmaLinux | 8 | postgresql-private-libs | Advisory build | 15.6-1.module_el8.9.0+3739+514705ed.alma.1 | ALSA-2024:0973 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 10.23-4.module_el8.9.0+3736+952d0ed7.alma.1 | ALSA-2024:0956 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 12.18-1.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:0974 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 13.14-1.module_el8.9.0+3738+d55e2165.alma.1 | ALSA-2024:0975 |
| AlmaLinux | 8 | postgresql-server | Advisory build | 15.6-1.module_el8.9.0+3739+514705ed.alma.1 | ALSA-2024:0973 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 10.23-4.module_el8.9.0+3736+952d0ed7.alma.1 | ALSA-2024:0956 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 12.18-1.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:0974 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 13.14-1.module_el8.9.0+3738+d55e2165.alma.1 | ALSA-2024:0975 |
| AlmaLinux | 8 | postgresql-server-devel | Advisory build | 15.6-1.module_el8.9.0+3739+514705ed.alma.1 | ALSA-2024:0973 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 10.23-4.module_el8.9.0+3736+952d0ed7.alma.1 | ALSA-2024:0956 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 12.18-1.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:0974 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 13.14-1.module_el8.9.0+3738+d55e2165.alma.1 | ALSA-2024:0975 |
| AlmaLinux | 8 | postgresql-static | Advisory build | 15.6-1.module_el8.9.0+3739+514705ed.alma.1 | ALSA-2024:0973 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 10.23-4.module_el8.9.0+3736+952d0ed7.alma.1 | ALSA-2024:0956 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 12.18-1.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:0974 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 13.14-1.module_el8.9.0+3738+d55e2165.alma.1 | ALSA-2024:0975 |
| AlmaLinux | 8 | postgresql-test | Advisory build | 15.6-1.module_el8.9.0+3739+514705ed.alma.1 | ALSA-2024:0973 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 10.23-4.module_el8.9.0+3736+952d0ed7.alma.1 | ALSA-2024:0956 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 12.18-1.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:0974 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 13.14-1.module_el8.9.0+3738+d55e2165.alma.1 | ALSA-2024:0975 |
| AlmaLinux | 8 | postgresql-test-rpm-macros | Advisory build | 15.6-1.module_el8.9.0+3739+514705ed.alma.1 | ALSA-2024:0973 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 10.23-4.module_el8.9.0+3736+952d0ed7.alma.1 | ALSA-2024:0956 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 12.18-1.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:0974 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 13.14-1.module_el8.9.0+3738+d55e2165.alma.1 | ALSA-2024:0975 |
| AlmaLinux | 8 | postgresql-upgrade | Advisory build | 15.6-1.module_el8.9.0+3739+514705ed.alma.1 | ALSA-2024:0973 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 10.23-4.module_el8.9.0+3736+952d0ed7.alma.1 | ALSA-2024:0956 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 12.18-1.module_el8.9.0+3740+0e74851f.alma.1 | ALSA-2024:0974 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 13.14-1.module_el8.9.0+3738+d55e2165.alma.1 | ALSA-2024:0975 |
| AlmaLinux | 8 | postgresql-upgrade-devel | Advisory build | 15.6-1.module_el8.9.0+3739+514705ed.alma.1 | ALSA-2024:0973 |
| AlmaLinux | 9 | pg_repack | Advisory build | 1.4.8-1.module_el9.2.0+22+09653793 | ALSA-2024:0950 |
| AlmaLinux | 9 | pgaudit | Advisory build | 1.7.0-1.module_el9.2.0+22+09653793 | ALSA-2024:0950 |
| AlmaLinux | 9 | postgres-decoderbufs | Advisory build | 1.9.7-1.Final.module_el9.2.0+22+09653793 | ALSA-2024:0950 |
| AlmaLinux | 9 | postgresql | Advisory build | 13.14-1.el9_3 | ALSA-2024:0951 |
| AlmaLinux | 9 | postgresql | Advisory build | 15.6-1.module_el9.3.0+55+d62f4779 | ALSA-2024:0950 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 13.14-1.el9_3 | ALSA-2024:0951 |
| AlmaLinux | 9 | postgresql-contrib | Advisory build | 15.6-1.module_el9.3.0+55+d62f4779 | ALSA-2024:0950 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 13.14-1.el9_3 | ALSA-2024:0951 |
| AlmaLinux | 9 | postgresql-docs | Advisory build | 15.6-1.module_el9.3.0+55+d62f4779 | ALSA-2024:0950 |
| AlmaLinux | 9 | postgresql-plperl | Advisory build | 13.14-1.el9_3 | ALSA-2024:0951 |
| AlmaLinux | 9 | postgresql-plperl | Advisory build | 15.6-1.module_el9.3.0+55+d62f4779 | ALSA-2024:0950 |
| AlmaLinux | 9 | postgresql-plpython3 | Advisory build | 13.14-1.el9_3 | ALSA-2024:0951 |
| AlmaLinux | 9 | postgresql-plpython3 | Advisory build | 15.6-1.module_el9.3.0+55+d62f4779 | ALSA-2024:0950 |
| AlmaLinux | 9 | postgresql-pltcl | Advisory build | 13.14-1.el9_3 | ALSA-2024:0951 |
| AlmaLinux | 9 | postgresql-pltcl | Advisory build | 15.6-1.module_el9.3.0+55+d62f4779 | ALSA-2024:0950 |
| AlmaLinux | 9 | postgresql-private-devel | Advisory build | 13.14-1.el9_3 | ALSA-2024:0951 |
| AlmaLinux | 9 | postgresql-private-devel | Advisory build | 15.6-1.module_el9.3.0+55+d62f4779 | ALSA-2024:0950 |
| AlmaLinux | 9 | postgresql-private-libs | Advisory build | 13.14-1.el9_3 | ALSA-2024:0951 |
| AlmaLinux | 9 | postgresql-private-libs | Advisory build | 15.6-1.module_el9.3.0+55+d62f4779 | ALSA-2024:0950 |
| AlmaLinux | 9 | postgresql-server | Advisory build | 13.14-1.el9_3 | ALSA-2024:0951 |
| AlmaLinux | 9 | postgresql-server | Advisory build | 15.6-1.module_el9.3.0+55+d62f4779 | ALSA-2024:0950 |
| AlmaLinux | 9 | postgresql-server-devel | Advisory build | 13.14-1.el9_3 | ALSA-2024:0951 |
| AlmaLinux | 9 | postgresql-server-devel | Advisory build | 15.6-1.module_el9.3.0+55+d62f4779 | ALSA-2024:0950 |
| AlmaLinux | 9 | postgresql-static | Advisory build | 13.14-1.el9_3 | ALSA-2024:0951 |
| AlmaLinux | 9 | postgresql-static | Advisory build | 15.6-1.module_el9.3.0+55+d62f4779 | ALSA-2024:0950 |
| AlmaLinux | 9 | postgresql-test | Advisory build | 13.14-1.el9_3 | ALSA-2024:0951 |
| AlmaLinux | 9 | postgresql-test | Advisory build | 15.6-1.module_el9.3.0+55+d62f4779 | ALSA-2024:0950 |
| AlmaLinux | 9 | postgresql-test-rpm-macros | Advisory build | 15.6-1.module_el9.3.0+55+d62f4779 | ALSA-2024:0950 |
| AlmaLinux | 9 | postgresql-upgrade | Advisory build | 13.14-1.el9_3 | ALSA-2024:0951 |
| AlmaLinux | 9 | postgresql-upgrade | Advisory build | 15.6-1.module_el9.3.0+55+d62f4779 | ALSA-2024:0950 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
Late privilege drop in REFRESH MATERIALIZED VIEW CONCURRENTLY in PostgreSQL allows an object creator to execute arbitrary SQL functions as the command issuer. The command intends to run SQL functions as the owner of the materialized view, enabling safe refresh of untrusted materialized views. The victim is a superuser or member of one of the attacker's roles. The attack requires luring the victim into running REFRESH MATERIALIZED VIEW CONCURRENTLY on the attacker's materialized view. Versions before PostgreSQL 16.2, 15.6, 14.11, 13.14, and 12.18 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
- 8.0 / 10
- Severity
- high
- Provider
- PostgreSQL · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | PostgreSQL | 16 to < 16.2 (affected · rpm)15 to < 15.6 (affected · rpm)14 to < 14.11 (affected · rpm)13 to < 13.14 (affected · rpm)0 to < 12.18 (affected · rpm)Default: unaffected | PostgreSQL · cna |
Weaknesses
1- CWE-271 Privilege Dropping / Lowering Errors
References
4Provider assertions
3PostgreSQL · cna
PostgreSQL non-owner REFRESH MATERIALIZED VIEW CONCURRENTLY executes arbitrary SQL
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2304baa8f13e0899a991051e6631e1eee55c2f33b8c605ab68fb39d64ffbc8c2
- Ingested
- 23 Sep 2026, 08:16:32 UTC
- Source record
- Official CVE record