Live threats

All CVEs / Postgresql

CVE-2024-0985Postgresql

High 8.0

Priority
48
CVSS 3.1
8.0
EPSS
1.2%
probability of exploitation in 30 days · percentile 69
Auth required
Yes
Published
Feb 8, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-271
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Postgresql.

Affected products (CPE)

VendorProductVersions
postgresqlpostgresql≥ 12.0 < 12.18
postgresqlpostgresql≥ 13.0 < 13.14
postgresqlpostgresql≥ 14.0 < 14.11
postgresqlpostgresql≥ 15.0 < 15.6

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.