8.0
High
CVE-2024-0985 Late privilege drop in REFRESH MATERIALIZED VIEW CONCURRENTLY in PostgreSQL allows an object creator to execute…
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.
Affected products and versions
| Product | Affected versions | Fixed in |
|---|---|---|
| postgresql 16 | 16 → < 16.2 | 16.2 |
| postgresql 15 | 15 → < 15.6 | 15.6 |
| postgresql 14 | 14 → < 14.11 | 14.11 |
| postgresql 13 | 13 → < 13.14 | 13.14 |
| postgresql 12.18 | earliest → < 12.18 | 12.18 |
References
- www.postgresql.org www.postgresql.org
- lists.debian.org lists.debian.org
- saites.dev saites.dev
Timeline
- Published
- Last modified
Other CVEs of postgresql
The 79 CVEs of postgresql →
CVE-2026-6471
Missing authorization in PostgreSQL logical decoding allows a non-superuser holding REPLICATION privilege to dlopen…
7.2
High
CVE-2026-14671
Type confusion in PostgreSQL module "refint" allows an object creator to execute arbitrary code as the operating…
8.8
High
CVE-2026-6470
Missing authorization in PostgreSQL DDL commands allows an object creator to achieve denial of service against ALTER and…
4.3
Medium
CVE-2026-6464
Untrusted data inclusion in PostgreSQL psql COPY may allow a server administrator to elicit execution of data lines as…
8.1
High