CVE & CISA-KEV Catalog

CVE-2024-0985

HIGHEPSS 77th pctl
8.0
CVSS v3
NVD

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.

How to fix

Remediation Available
postgresql15Amazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-contribAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-contrib-debuginfoAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-debuginfoAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-debugsourceAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-docsAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-docs-debuginfoAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-llvmjitAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-llvmjit-debuginfoAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-plperlAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-plperl-debuginfoAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-plpython3Amazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-plpython3-debuginfoAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-pltclAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-pltcl-debuginfoAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-private-develAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-private-libsAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-private-libs-debuginfoAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-serverAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-server-debuginfoAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-server-develAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-server-devel-debuginfoAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-staticAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-testAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-test-debuginfoAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-test-rpm-macrosAmazon
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-upgradeAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-upgrade-debuginfoAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-upgrade-develAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1
postgresql15-upgrade-devel-debuginfoAmazon
Fixed in:0:15.6-1.amzn2023.0.1
Fixed in:0:15.6-1.amzn2023.0.1

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

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Exploit Intelligence

1.81%probability of exploitation in 30 days
77thpercentile

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

CVESeverityCVSSEPSSExploitedFix
CVE-2019-11243High8.11.5%--
CVE-2020-35513Medium4.91.3%-Fix
CVE-2022-3569High7.80.7%--
CVE-2024-35179Medium6.80.6%--
CVE-2026-44477Critical9.90.5%-Fix
CVE-2023-22648High8.00.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
CVE-2024-0985 severity badge

Markdown

[![CVE-2024-0985](https://tridentstack.com/cve/badge/CVE-2024-0985.svg)](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.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

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.