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 78th percentile
Risk Priority 62 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). 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 Postgresql. Its CVSS base score is 8.0 (High).

Operationally, ranked in the top 22% 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-14670Same product: Postgresql Postgresql
CVE-2026-6477Same product: Postgresql Postgresql
CVE-2026-2007Same product: Postgresql Postgresql
CVE-2026-14679Same product: Postgresql Postgresql
CVE-2026-6637Same product: Postgresql Postgresql
CVE-2026-6475Same product: Postgresql Postgresql
CVE-2026-14671Same product: Postgresql Postgresql
CVE-2026-16238Same product: Postgresql Postgresql
CVE-2024-7348Same product: Postgresql Postgresql
CVE-2026-6473Same 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) AI

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) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

degrades

Restricting use of privileged utility programs forces explicit privilege lowering before handing control to unprivileged actors.

degrades

Privileged access rights explicitly require least-privilege assignment and timely revocation, directly mitigating failure to drop privileges.

blocks

Secure development lifecycle includes privilege management reviews, providing indirect coverage of the weakness.

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