PostgreSQL 10.x < 10.22 / 11.x < 11.17 / 12.x < 12.12 / 13.x < 13.8 / 14.x < 14.5 Vulnerability

high Nessus Plugin ID 164433

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.22, 11 prior to 11.17, 12 prior to 12.12, 13 prior to 13.8, or 14 prior to 14.5. As such, it is potentially affected by a vulnerability :
- A vulnerability exists in postgresql. On this security issue 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 blocks this attack in the core server, so there's no need to modify individual extensions. (CVE-2022-2625)

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.22 / 11.17 / 12.12 / 13.8 / 14.5 or later

See Also

http://www.nessus.org/u?09235872

https://access.redhat.com/security/cve/CVE-2022-2625

Plugin Details

Severity: High

ID: 164433

File Name: postgresql_20220811.nasl

Version: 1.7

Type: local

Family: Databases

Published: 8/25/2022

Updated: 10/23/2024

Configuration: Enable thorough checks

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Azure, Frictionless Assessment 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-2625

CVSS v3

Risk Factor: High

Base Score: 8

Temporal Score: 7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/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

Exploit Ease: No known exploits are available

Patch Publication Date: 8/11/2022

Vulnerability Publication Date: 8/11/2022

Reference Information

CVE: CVE-2022-2625

IAVB: 2022-B-0028-S