PostgreSQL 10.x < 10.21 / 11.x < 11.16 / 12.x < 12.11 / 13.x < 13.7 / 14.x < 14.3 Privilege Escalation

high Nessus Plugin ID 161801

Synopsis

The remote database server is affected by a vulnerability

Description

The version of PostgreSQL installed on the remote host is 10 prior to 10.21, 11 prior to 11.16, 12 prior to 12.11, 13 prior to 13.7, or 14 prior to 14.3. As such, it is potentially affected by a privilege escalation vulnerability:

- Autovacuum, REINDEX, CREATE INDEX, REFRESH MATERIALIZED VIEW, CLUSTER, and pg_amcheck made incomplete efforts to operate safely when a privileged user is maintaining another user's objects. Those commands activated relevant protections too late or not at all. An attacker having permission to create non-temp objects in at least one schema could execute arbitrary SQL functions under a superuser identity. (CVE-2022-1552)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to PostgreSQL 10.21 / 11.16 / 12.11 / 13.7 / 14.3 or later

See Also

http://www.nessus.org/u?62f9afbd

https://www.postgresql.org/support/security/CVE-2022-1552/

Plugin Details

Severity: High

ID: 161801

File Name: postgresql_20220512.nasl

Version: 1.7

Type: local

Agent: windows, macosx, unix

Family: Databases

Published: 6/3/2022

Updated: 10/23/2024

Configuration: Enable paranoid mode, Enable thorough checks

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Azure, Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 6.7

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2022-1552

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:postgresql:postgresql

Required KB Items: Settings/ParanoidReport, installed_sw/PostgreSQL

Exploit Ease: No known exploits are available

Patch Publication Date: 5/12/2022

Vulnerability Publication Date: 5/11/2022

Reference Information

CVE: CVE-2022-1552

IAVB: 2022-B-0015-S