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.
CVE-2024-0985
Score 8.0 from GitHub Security Advisory (severity: HIGH) published 2024-02-08. NVD baseline CVSS 8.0; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 8.0
- EG Score
- 8.0(medium)
- EPSS
- 70.6%
- KEV
- Not listed
Published
February 8, 2024
Last Modified
December 20, 2024
References (7)
- f86ef6dc-4d3a-42ad-8f28-e6d5547a5007https://lists.debian.org/debian-lts-announce/2024/03/msg00017.html
- f86ef6dc-4d3a-42ad-8f28-e6d5547a5007https://saites.dev/projects/personal/postgres-cve-2024-0985/
- f86ef6dc-4d3a-42ad-8f28-e6d5547a5007https://www.postgresql.org/support/security/CVE-2024-0985/
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2024/03/msg00017.html
- af854a3a-2127-422b-91ae-364da2661108https://saites.dev/projects/personal/postgres-cve-2024-0985/
- af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20241220-0005/
- af854a3a-2127-422b-91ae-364da2661108https://www.postgresql.org/support/security/CVE-2024-0985/
Patch Availability(26)
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(25)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
- Microsoft MSRCCVE-2024-09852024-02-12
PostgreSQL non-owner REFRESH MATERIALIZED VIEW CONCURRENTLY executes arbitrary SQL
- Red HatRHSA-2024:0950IMPORTANT2024-02-08
RHSA-2024:0950 — Important
- Red HatRHSA-2024:0951IMPORTANT2024-02-08
RHSA-2024:0951 — Important
- Red HatRHSA-2024:0956IMPORTANT2024-02-08
RHSA-2024:0956 — Important
- Red HatRHSA-2024:0973IMPORTANT2024-02-08
RHSA-2024:0973 — Important
- Red HatRHSA-2024:0974IMPORTANT2024-02-08
RHSA-2024:0974 — Important
- Red HatRHSA-2024:0975IMPORTANT2024-02-08
RHSA-2024:0975 — Important
- Red HatRHSA-2024:0988IMPORTANT2024-02-08
RHSA-2024:0988 — Important
- Red HatRHSA-2024:0990IMPORTANT2024-02-08
RHSA-2024:0990 — Important
- Red HatRHSA-2024:0992IMPORTANT2024-02-08
RHSA-2024:0992 — Important
- Red HatRHSA-2024:1017IMPORTANT2024-02-08
RHSA-2024:1017 — Important
- Red HatRHSA-2024:1069IMPORTANT2024-02-08
RHSA-2024:1069 — Important
- Red HatRHSA-2024:1070IMPORTANT2024-02-08
RHSA-2024:1070 — Important
- Red HatRHSA-2024:1071IMPORTANT2024-02-08
RHSA-2024:1071 — Important
- Red HatRHSA-2024:1195IMPORTANT2024-02-08
RHSA-2024:1195 — Important
- Red HatRHSA-2024:1240IMPORTANT2024-02-08
RHSA-2024:1240 — Important
- Red HatRHSA-2024:1241IMPORTANT2024-02-08
RHSA-2024:1241 — Important
- Red HatRHSA-2024:1314IMPORTANT2024-02-08
RHSA-2024:1314 — Important
- Red HatRHSA-2024:1315IMPORTANT2024-02-08
RHSA-2024:1315 — Important
- Red HatRHSA-2024:1348IMPORTANT2024-02-08
RHSA-2024:1348 — Important
- Red HatRHSA-2024:1422IMPORTANT2024-02-08
RHSA-2024:1422 — Important
- Red HatRHSA-2024:1426IMPORTANT2024-02-08
RHSA-2024:1426 — Important
- Red HatRHSA-2024:1428IMPORTANT2024-02-08
RHSA-2024:1428 — Important
- Red HatRHSA-2024:1429IMPORTANT2024-02-08
RHSA-2024:1429 — Important
- Red HatRHSA-2024:1437IMPORTANT2024-02-08
RHSA-2024:1437 — Important
Data Freshness Timeline
(refreshed 9× in last 7d / 43× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-09 19:09 UTCEPSS rescore
- 2026-07-08 15:13 UTCEPSS rescore
- 2026-07-07 13:45 UTCEPSS rescore
- 2026-07-07 13:45 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 02:22 UTCEPSS rescore
- 2026-07-06 02:22 UTCEPSS rescore
- 2026-07-05 02:29 UTCEPSS rescore
- 2026-07-04 06:30 UTCEPSS rescore
- 2026-07-04 06:30 UTCEPSS rescore
- 2026-07-01 15:05 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-26 21:37 UTCOSV refresh
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-23 21:32 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
Show 54 moreShow fewer
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:52 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:47 UTCEPSS rescore
- 2026-06-14 23:16 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-12 23:11 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-10 22:17 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-09 08:00 UTCOSV refresh
- 2026-06-08 14:16 UTCEPSS rescore
- 2026-06-08 14:16 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:43 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-26 07:18 UTCEPSS rescore
- 2026-05-24 08:56 UTCEG score recompute
- 2026-05-24 08:56 UTCVendor advisory
- 2026-05-24 08:56 UTCGHSA enrichment
- 2026-05-23 20:35 UTCOSV refresh
Frequently asked(5)
What is CVE-2024-0985?
When was CVE-2024-0985 disclosed?
Is CVE-2024-0985 actively exploited?
What is the CVSS score of CVE-2024-0985?
How do I remediate CVE-2024-0985?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2024-0985
Is Your Infrastructure Affected by CVE-2024-0985?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.