Security Resilience

CVE-2024-0985

Postgresql 12.0 – 12.18

Published
08 February 2024
Modified
20 December 2024
Patch / advisory
CVSS Score v3.1 8.0
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS Score 0.018 79th percentile
Risk Priority 62 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-0985 is a high-severity Privilege Dropping / Lowering Errors (CWE-271) vulnerability in Postgresql. Its CVSS base score is 8.0 (High).

Operationally, ranked in the top 21% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to AC-6 (Least Privilege) and AC-3 (Access Enforcement) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

CVEs Like This One

CVE-2026-14680Same product: Postgresql Postgresql
CVE-2026-14677Same product: Postgresql Postgresql
CVE-2026-14662Same product: Postgresql Postgresql
CVE-2026-6477Same product: Postgresql Postgresql
CVE-2024-10976Same product: Postgresql Postgresql
CVE-2026-14669Same product: Postgresql Postgresql
CVE-2026-19385Same product: Postgresql Postgresql
CVE-2024-7348Same product: Postgresql Postgresql
CVE-2024-4317Same product: Postgresql Postgresql
CVE-2026-2007Same product: Postgresql Postgresql

Affected Assets

postgresql
postgresql
12.0 — 12.18 · 13.0 — 13.14 · 14.0 — 14.11

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Least privilege explicitly mandates dropping privileges to the minimum necessary before transferring control.

Access enforcement directly requires that privileges are lowered before handing resources to less-privileged actors.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

prevents

Secure coding standards can mandate privilege-dropping calls, yet the control is broader than this single weakness.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-271, a class-level weakness. Rules are authored against its narrower children: CWE-272.

References