CVE-2024-0985
Last modified
CVE-2024-0985 is a high-severity vulnerability rated 8/10 on the CVSS scale. 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. EPSS estimates a 1.47% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Postgresql | Postgresql | >= 12.0, < 12.18 |
| Postgresql | Postgresql | >= 13.0, < 13.14 |
| Postgresql | Postgresql | >= 14.0, < 14.11 |
| Postgresql | Postgresql | >= 15.0, < 15.6 |
References
- https://www.postgresql.org/support/security/CVE-2024-0985/Vendor Advisory
- https://www.postgresql.org/support/security/CVE-2024-0985/Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-0985?
How severe is CVE-2024-0985?
How do I fix CVE-2024-0985?
Are you affected by CVE-2024-0985?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
