AlmaLinux 8 : postgresql:12 (ALSA-2021:5235)

high Nessus Plugin ID 158871

Synopsis

The remote AlmaLinux host is missing one or more security updates.

Description

The remote AlmaLinux 8 host has packages installed that are affected by multiple vulnerabilities as referenced in the ALSA-2021:5235 advisory.

- A flaw was found in postgresql. A purpose-crafted query can read arbitrary bytes of server memory. In the default configuration, any authenticated database user can complete this attack at will. The attack does not require the ability to create objects. If server settings include max_worker_processes=0, the known versions of this attack are infeasible. However, undiscovered variants of the attack may be independent of that setting. (CVE-2021-3677)

- When the server is configured to use trust authentication with a clientcert requirement or to use cert authentication, a man-in-the-middle attacker can inject arbitrary SQL queries when a connection is first established, despite the use of SSL certificate verification and encryption. (CVE-2021-23214)

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

Solution

Update the affected packages.

See Also

https://errata.almalinux.org/8/ALSA-2021-5235.html

Plugin Details

Severity: High

ID: 158871

File Name: alma_linux_ALSA-2021-5235.nasl

Version: 1.4

Type: local

Published: 3/12/2022

Updated: 2/16/2023

Supported Sensors: Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 5.1

Temporal Score: 3.8

Vector: CVSS2#AV:N/AC:H/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2021-23214

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.1

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

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

Vulnerability Information

CPE: p-cpe:/a:alma:linux:postgresql-static, p-cpe:/a:alma:linux:postgresql-plpython3, p-cpe:/a:alma:linux:postgresql-upgrade-devel, p-cpe:/a:alma:linux:postgresql-docs, p-cpe:/a:alma:linux:postgresql-server-devel, p-cpe:/a:alma:linux:postgresql-plperl, p-cpe:/a:alma:linux:postgresql-upgrade, p-cpe:/a:alma:linux:postgresql-pltcl, cpe:/o:alma:linux:8, p-cpe:/a:alma:linux:pgaudit, p-cpe:/a:alma:linux:postgresql-test-rpm-macros, p-cpe:/a:alma:linux:postgres-decoderbufs, p-cpe:/a:alma:linux:postgresql, p-cpe:/a:alma:linux:pg_repack, p-cpe:/a:alma:linux:postgresql-test, p-cpe:/a:alma:linux:postgresql-server, p-cpe:/a:alma:linux:postgresql-contrib

Required KB Items: Host/local_checks_enabled, Host/AlmaLinux/release, Host/AlmaLinux/rpm-list, Host/cpu

Exploit Ease: No known exploits are available

Patch Publication Date: 12/21/2021

Vulnerability Publication Date: 8/12/2021

Reference Information

CVE: CVE-2021-23214, CVE-2021-3677

IAVB: 2021-B-0048-S, 2021-B-0067-S