CVE-2024-0985
HIGHEPSS 77th pctlDescription
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.
How to fix
This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Exploit Intelligence
Elevated risk: more likely to be exploited than 77% of all known CVEs.
References
Related Vulnerabilities
Other CWE-271 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2019-11243 | High | 8.1 | 1.5% | - | - |
| CVE-2020-35513 | Medium | 4.9 | 1.3% | - | Fix |
| CVE-2022-3569 | High | 7.8 | 0.7% | - | - |
| CVE-2024-35179 | Medium | 6.8 | 0.6% | - | - |
| CVE-2026-44477 | Critical | 9.9 | 0.5% | - | Fix |
| CVE-2023-22648 | High | 8.0 | 0.5% | - | Fix |
Common questions
How do I fix CVE-2024-0985?
Published advisories record a fix for 81 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.
Is CVE-2024-0985 being actively exploited?
Not that we know of. CVE-2024-0985 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 1.8% is the estimated probability that it will be exploited in the next 30 days. That is higher than 77% of all scored CVEs.
How severe is CVE-2024-0985?
CVE-2024-0985 has a CVSS v3 base score of 8.0, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
What does CVE-2024-0985 affect?
Published advisories record a fix for postgresql15 (Amazon), postgresql15-contrib (Amazon), postgresql15-contrib-debuginfo (Amazon), postgresql15-debuginfo (Amazon), and 77 more. The list on this page is capped, so there may be more.
Embed a live status badge for CVE-2024-0985
Markdown
[](https://tridentstack.com/cve/CVE-2024-0985)HTML
<a href="https://tridentstack.com/cve/CVE-2024-0985"><img src="https://tridentstack.com/cve/badge/CVE-2024-0985.svg" alt="CVE-2024-0985"></a>Check your Linux endpoints for this class of vulnerability
TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.