CentOS 7 : postgresql (CESA-2017:3402)

medium Nessus Plugin ID 105114

Synopsis

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

Description

An update for postgresql is now available for Red Hat Enterprise Linux 7.

Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section.

PostgreSQL is an advanced object-relational database management system (DBMS).

Security Fix(es) :

* Privilege escalation flaws were found in the initialization scripts of PostgreSQL. An attacker with access to the postgres user account could use these flaws to obtain root access on the server machine.
(CVE-2017-12172, CVE-2017-15097)

Note: This patch drops the script privileges from root to the postgres user. Therefore, this update works properly only if the postgres user has write access to the postgres' home directory, such as the one in the default configuration (/var/lib/pgsql).

Red Hat would like to thank the PostgreSQL project for reporting CVE-2017-12172. The CVE-2017-15097 issue was discovered by Pedro Barbosa (Red Hat) and the PostgreSQL project. Upstream acknowledges Antoine Scemama (Brainloop) as the original reporter of these issues.

Solution

Update the affected postgresql packages.

See Also

http://www.nessus.org/u?65b722b1

Plugin Details

Severity: Medium

ID: 105114

File Name: centos_RHSA-2017-3402.nasl

Version: 3.10

Type: local

Agent: unix

Published: 12/11/2017

Updated: 1/4/2021

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

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 5.3

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

CVSS Score Source: CVE-2017-12172

CVSS v3

Risk Factor: Medium

Base Score: 6.7

Temporal Score: 5.8

Vector: CVSS:3.0/AV:L/AC:L/PR:H/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:/o:centos:centos:7, p-cpe:/a:centos:centos:postgresql-contrib, p-cpe:/a:centos:centos:postgresql, p-cpe:/a:centos:centos:postgresql-static, p-cpe:/a:centos:centos:postgresql-libs, p-cpe:/a:centos:centos:postgresql-plpython, p-cpe:/a:centos:centos:postgresql-pltcl, p-cpe:/a:centos:centos:postgresql-server, p-cpe:/a:centos:centos:postgresql-test, p-cpe:/a:centos:centos:postgresql-docs, p-cpe:/a:centos:centos:postgresql-plperl, p-cpe:/a:centos:centos:postgresql-upgrade, p-cpe:/a:centos:centos:postgresql-devel

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

Exploit Ease: No known exploits are available

Patch Publication Date: 12/8/2017

Vulnerability Publication Date: 11/22/2017

Reference Information

CVE: CVE-2017-12172, CVE-2017-15097

RHSA: 2017:3402