CVEMETERBack to radar
OFFICIAL RECORD · PostgreSQL

CVE-2024-0985

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 8 · high

PostgreSQL non-owner REFRESH MATERIALIZED VIEW CONCURRENTLY executes arbitrary SQL

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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 1.808% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T18:36:01.564Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 8 · published by PostgreSQL
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T12:57:03.843Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T18:36:01.564ZCISA KEV
cvssverified2026-11-19T12:57:03.843ZCVE Program
epssverified2026-11-19T18:27:10.251ZFIRST EPSS
patchesverified2026-11-19T12:52:05.592ZOSV
affectedverified2026-11-19T12:57:03.843ZCVE Program
lifecycleverified2026-11-19T12:57:03.843ZCVE Program

Affected versions and configuration

n/a PostgreSQL; default status: unaffected: 16 to < 16.2 [affected; scheme: rpm]; 15 to < 15.6 [affected; scheme: rpm]; 14 to < 14.11 [affected; scheme: rpm]; 13 to < 13.14 [affected; scheme: rpm]; 0 to < 12.18 [affected; scheme: rpm]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "n/a",
      "product": "PostgreSQL",
      "versions": [
        {
          "status": "affected",
          "version": "16",
          "lessThan": "16.2",
          "versionType": "rpm"
        },
        {
          "status": "affected",
          "version": "15",
          "lessThan": "15.6",
          "versionType": "rpm"
        },
        {
          "status": "affected",
          "version": "14",
          "lessThan": "14.11",
          "versionType": "rpm"
        },
        {
          "status": "affected",
          "version": "13",
          "lessThan": "13.14",
          "versionType": "rpm"
        },
        {
          "status": "affected",
          "version": "0",
          "lessThan": "12.18",
          "versionType": "rpm"
        }
      ],
      "defaultStatus": "unaffected"
    }
  ],
  "additionalContainers": [
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "https://www.postgresql.org/support/security/CVE-2024-0985/",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "https://lists.debian.org/debian-lts-announce/2024/03/msg00017.html",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "https://saites.dev/projects/personal/postgres-cve-2024-0985/",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "https://security.netapp.com/advisory/ntap-20241220-0005/"
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2024-12-20T13:06:41.461Z"
      }
    },
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2024-0985",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "total"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2024-02-16T05:00:50.348714Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2025-06-13T15:09:30.114Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "DEBIAN-CVE-2024-0985",
  "aliases": [],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "15.6-0+deb12u1"
            }
          ]
        }
      ],
      "package": {
        "name": "postgresql-15",
        "purl": "pkg:deb/debian/postgresql-15?arch=source&distro=bookworm",
        "ecosystem": "Debian:12"
      },
      "versions": [
        "15.3-0+deb12u1",
        "15.3-1",
        "15.4-0+deb12u1",
        "15.4-1",
        "15.4-2",
        "15.4-3",
        "15.5-0+deb12u1"
      ],
      "database_specific": {
        "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2024-0985.json"
      },
      "ecosystem_specific": {
        "urgency": "not yet assigned"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
    }
  ],
  "upstream": [
    "CVE-2024-0985"
  ],
  "withdrawn": null,
  "references": [
    {
      "url": "https://security-tracker.debian.org/tracker/CVE-2024-0985",
      "type": "ADVISORY"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {}
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryDebian:12 / 12postgresql-15unknown15.6-0+deb12u1Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history