CVE-2024-0985

CVE-2024-0985 is a high-severity vulnerability in Postgresql with a CVSS 3.x base score of 8.0. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-271.

Key facts

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.

Frequently asked questions

What is CVE-2024-0985?
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 severe is CVE-2024-0985?
CVE-2024-0985 has a CVSS 3.x base score of 8.0, rated high severity. It is exploitable over network with low attack complexity, requires low privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
Is CVE-2024-0985 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (71st percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-0985?
CVE-2024-0985 affects Postgresql. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-0985?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
Does CVE-2024-0985 have an EU (EUVD) identifier?
Yes. CVE-2024-0985 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-16762.
When was CVE-2024-0985 published?
CVE-2024-0985 was published on 2024-02-08 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Postgresql

All CVEs affecting Postgresql →

Other CWE-271 vulnerabilities

Browse all CWE-271 vulnerabilities →