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

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, exploitation aligns with the MITRE ATT&CK technique Setuid and Setgid (T1548.001); ranked in the top 23% 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

MITRE ATT&CK Enterprise Techniques

T1548.001 Setuid and Setgid Privilege Escalation
An adversary may abuse configurations where an application has the setuid or setgid bits set in order to get code running in a different (and possibly more privileged) user’s context.
T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1134 Access Token Manipulation Stealth
Adversaries may modify access tokens to operate under a different user or system security context to perform actions and bypass access controls.
T1548 Abuse Elevation Control Mechanism Privilege Escalation
Adversaries may circumvent mechanisms designed to control privilege elevation to gain higher-level permissions.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-6472Same product: Postgresql Postgresql
CVE-2024-4317Same product: Postgresql Postgresql
CVE-2024-7348Same product: Postgresql Postgresql
CVE-2026-6474Same product: Postgresql Postgresql
CVE-2026-6473Same product: Postgresql Postgresql
CVE-2026-2007Same product: Postgresql Postgresql
CVE-2026-2004Same product: Postgresql Postgresql
CVE-2026-6477Same product: Postgresql Postgresql
CVE-2026-2003Same product: Postgresql Postgresql
CVE-2026-6637Same 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 (NIST CSF 2.0) AI

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

PR.AA-05 mostly match
prevents

Explicit inclusion of least-privilege policy directly addresses failure to drop privileges before handing control to lower-privileged actors.

PR.PS-06 partial match
prevents

Secure-development practices encompass correct privilege-dropping logic, though the control is broader than this single weakness.

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.

prevents

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.

mitigates

Information access restriction policies can limit privilege scope but do not specifically address dropping privileges at runtime.

References