Lucene search

K
postgresqlPostgreSQL Global Development GroupPOSTGRESQL:CVE-2024-0985
HistoryFeb 08, 2024 - 12:00 a.m.

Vulnerability in core server (CVE-2024-0985)

2024-02-0800:00:00
PostgreSQL Global Development Group
www.postgresql.org
1
postgresql
vulnerability
cve-2024-0985
server
non-owner
materialized view
arbitrary sql
privilege drop
sql functions
superuser
attack vector
untrusted
luring
update
impacted
v16

CVSS3

8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

AI Score

8.4

Confidence

High

PostgreSQL non-owner REFRESH MATERIALIZED VIEW CONCURRENTLY executes arbitrary SQL

UPDATE (June 19, 2024): Added v16 as impacted. Updated description to clarify the attack vector.

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.

Affected configurations

Vulners
Node
postgresqlpostgresqlRange<13.14
OR
postgresqlpostgresqlRange<16.2
OR
postgresqlpostgresqlRange<14.11
OR
postgresqlpostgresqlRange<15.6
OR
postgresqlpostgresqlRange<12.18
VendorProductVersionCPE
postgresqlpostgresql*cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*

CVSS3

8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

AI Score

8.4

Confidence

High