CVE-2024-0985
UPDATE (June 19, 2024) : Added v16 as impacted. Updated description to clarify the attack vector. 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.
Version Information
| Affected branch | Introduced | Fixed In | Fix Published |
|---|---|---|---|
| 12 | — | 12.18 | 2024-02-08 |
| 13 | — | 13.14 | 2024-02-08 |
| 14 | — | 14.11 | 2024-02-08 |
| 15 | — | 15.6 | 2024-02-08 |
| 16 | — | 16.2 | 2024-02-08 |
CVSS 3.0
| Overall Score | 8 |
|---|---|
| Component | core server |
| Vector | AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
First published: 2024-02-08
Historical source observations
These dated records preserve the original source claims separately from the reviewed fix list.
center · 2026-10-03 12:08:35.169032+08
- PostgreSQL 16 · Original minor coordinate: 2
- PostgreSQL 15 · Original minor coordinate: 6
- PostgreSQL 14 · Original minor coordinate: 11
pgweb · 2026-10-03 12:08:55.967155+08
- PostgreSQL 16 · Original minor coordinate: 2
- PostgreSQL 15 · Original minor coordinate: 6
- PostgreSQL 14 · Original minor coordinate: 11