Lucene search

K
postgresqlPostgreSQL Global Development GroupPOSTGRESQL:CVE-2022-2625
HistoryAug 11, 2022 - 12:00 a.m.

Vulnerability in core server (CVE-2022-2625)

2022-08-1100:00:00
PostgreSQL Global Development Group
www.postgresql.org
3
vulnerability
core server
extension scripts
create or replace
create if not exists
attack
permission
schema
administrator
arbitrary code
superuser
postgresql
sven klemm
reporting

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

7.4

Confidence

High

Extension scripts replace objects not belonging to the extension

Some extensions use CREATE OR REPLACE or CREATE IF NOT EXISTS commands. Some don’t adhere to the documented rule to target only objects known to be extension members already. An attack requires permission to create non-temporary objects in at least one schema, ability to lure or wait for an administrator to create or update an affected extension in that schema, and ability to lure or wait for a victim to use the object targeted in CREATE OR REPLACE or CREATE IF NOT EXISTS. Given all three prerequisites, the attacker can run arbitrary code as the victim role, which may be a superuser. Known-affected extensions include both PostgreSQL-bundled and non-bundled extensions. PostgreSQL is blocking this attack in the core server, so there’s no need to modify individual extensions.

The PostgreSQL project thanks Sven Klemm for reporting this problem.

Affected configurations

Vulners
Node
postgresqlpostgresqlRange<12.12
OR
postgresqlpostgresqlRange<13.8
OR
postgresqlpostgresqlRange<14.5
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

7.4

Confidence

High