PT-2024-1568 · Unknown+11 · Postgresql+10

Published

2024-02-07

·

Updated

2026-04-03

·

CVE-2024-0985

CVSS v2.0

9.0

High

VectorAV:N/AC:L/Au:S/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions PostgreSQL versions prior to 16.2 PostgreSQL versions prior to 15.6 PostgreSQL versions prior to 14.11 PostgreSQL versions prior to 13.14 PostgreSQL versions prior to 12.18
Description The issue is related to a late privilege drop in the REFRESH MATERIALIZED VIEW CONCURRENTLY function of PostgreSQL, allowing an object creator to execute arbitrary SQL functions as the command issuer. This could enable the execution of malicious code with elevated privileges, potentially leading to data breaches and further compromise. The command is intended to run SQL functions as the owner of the materialized view, enabling safe refresh of untrusted materialized views. The attack requires luring the victim into running REFRESH MATERIALIZED VIEW CONCURRENTLY on the attacker's materialized view. The victim is typically a superuser or a member of one of the attacker's roles.
Recommendations For versions prior to 16.2, update to version 16.2 or later. For versions prior to 15.6, update to version 15.6 or later. For versions prior to 14.11, update to version 14.11 or later. For versions prior to 13.14, update to version 13.14 or later. For versions prior to 12.18, update to version 12.18 or later. As a temporary workaround, consider restricting access to the REFRESH MATERIALIZED VIEW CONCURRENTLY function until a patch is applied.

Fix

LPE

Weakness Enumeration

Related Identifiers

ALSA-2024:0950
ALSA-2024:0951
ALSA-2024:0956
ALSA-2024:0973
ALSA-2024:0974
ALSA-2024:0975
ALT-PU-2024-2177
ALT-PU-2024-2179
ALT-PU-2024-2180
ALT-PU-2024-2181
ALT-PU-2024-2182
ALT-PU-2024-2183
ALT-PU-2024-2191
ALT-PU-2024-2193
ALT-PU-2024-2202
ALT-PU-2024-2204
ALT-PU-2024-2205
ALT-PU-2024-2206
ALT-PU-2024-2207
ALT-PU-2024-2208
ALT-PU-2024-2506
ALT-PU-2024-2508
ALT-PU-2024-5902
ALT-PU-2024-5904
ALT-PU-2024-5905
ALT-PU-2024-5906
ALT-PU-2024-5907
AZL-34279
AZL-35111
BDU:2024-01121
BIT-POSTGRESQL-2024-0985
CESA-2024_0956
CESA-2024_0973
CESA-2024_0974
CESA-2024_0975
CVE-2024-0985
DLA-3764-1
DSA-5622-1
DSA-5623-1
ECHO-6AE2-FEA4-43EA
JLSEC-2026-46
MGASA-2024-0043
OESA-2024-2427
OESA-2024-2428
OESA-2024-2429
OESA-2024-2430
OESA-2025-1335
OPENSUSE-SU-2024:13668-1
OPENSUSE-SU-2024:13669-1
OPENSUSE-SU-2024:13670-1
OPENSUSE-SU-2024:13671-1
OPENSUSE-SU-2024:13672-1
OPENSUSE-SU-2024_0522-1
OPENSUSE-SU-2024_0551-1
OPENSUSE-SU-2024_0552-1
OPENSUSE-SU-2025:15580-1
RHSA-2024:0950
RHSA-2024:0951
RHSA-2024:0956
RHSA-2024:0973
RHSA-2024:0974
RHSA-2024:0975
RHSA-2024:0988
RHSA-2024:0990
RHSA-2024:0992
RHSA-2024:1017
RHSA-2024:1069
RHSA-2024:1070
RHSA-2024:1071
RHSA-2024:1195
RHSA-2024:1240
RHSA-2024:1241
RHSA-2024:1314
RHSA-2024:1315
RHSA-2024:1348
RHSA-2024:1422
RHSA-2024:1426
RHSA-2024:1428
RHSA-2024:1429
RHSA-2024:1437
RHSA-2024_0950
RHSA-2024_0951
RHSA-2024_0956
RHSA-2024_0973
RHSA-2024_0974
RHSA-2024_0975
RLSA-2024:0950
RLSA-2024:0951
RLSA-2024:0956
RLSA-2024:0973
RLSA-2024:0975
ROSA-SA-2024-2484
ROSA-SA-2024-2485
ROSA-SA-2024-2486
ROSA-SA-2025-2625
SUSE-SU-2024:0520-1
SUSE-SU-2024:0522-1
SUSE-SU-2024:0523-1
SUSE-SU-2024:0540-1
SUSE-SU-2024:0541-1
SUSE-SU-2024:0542-1
SUSE-SU-2024:0546-1
SUSE-SU-2024:0550-1
SUSE-SU-2024:0551-1
SUSE-SU-2024:0552-1
SUSE-SU-2024_0520-1
SUSE-SU-2024_0522-1
SUSE-SU-2024_0523-1
SUSE-SU-2024_0540-1
SUSE-SU-2024_0541-1
SUSE-SU-2024_0542-1
SUSE-SU-2024_0546-1
SUSE-SU-2024_0550-1
SUSE-SU-2024_0551-1
SUSE-SU-2024_0552-1
USN-6656-1
USN-6656-2

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Postgresql
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu