openSUSE Security Update : postgresql95 (openSUSE-2018-696)

Medium Nessus Plugin ID 110955


The remote openSUSE host is missing a security update.


This update for postgresql95 fixes the following issues :

- Update to PostgreSQL 9.5.13 :

- A dump/restore is not required for those running 9.5.X.
However, if the function marking mistakes mentioned belowpg_logfile_rotate affect you, you will want to take steps to correct your database catalogs.
The functions query_to_xml, cursor_to_xml, cursor_to_xmlschema, query_to_xmlschema, and query_to_xml_and_xmlschema should be marked volatile because they execute user-supplied queries that might contain volatile operations. They were not, leading to a risk of incorrect query optimization. This has been repaired for new installations by correcting the initial catalog data, but existing installations will continue to contain the incorrect markings. Practical use of these functions seems to pose little hazard, but in case of trouble, it can be fixed by manually updating these functions' pg_proc entries, for example: ALTER FUNCTION pg_catalog.query_to_xml(text, boolean, boolean, text) VOLATILE.
(Note that that will need to be done in each database of the installation.) Another option is to pg_upgrade the database to a version containing the corrected initial data.
Security issue fixed :

- CVE-2018-1115: Remove public execute privilege from contrib/adminpack's pg_logfile_rotate() function pg_logfile_rotate() is a deprecated wrapper for the core function pg_rotate_logfile(). When that function was changed to rely on SQL privileges for access control rather than a hard-coded superuser check, pg_logfile_rotate() should have been updated as well, but the need for this was missed. Hence, if adminpack is installed, any user could request a logfile rotation, creating a minor security issue. After installing this update, administrators should update adminpack by performing ALTER EXTENSION adminpack UPDATE in each database in which adminpack is installed. (bsc#1091610)


Update the affected postgresql95 packages.

See Also

Plugin Details

Severity: Medium

ID: 110955

File Name: openSUSE-2018-696.nasl

Version: 1.3

Type: local

Agent: unix

Published: 2018/07/09

Modified: 2018/12/18

Dependencies: 12634

Risk Information

Risk Factor: Medium

CVSS v2.0

Base Score: 6.4

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

CVSS v3.0

Base Score: 9.1

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

Vulnerability Information

CPE: p-cpe:/a:novell:opensuse:postgresql95, p-cpe:/a:novell:opensuse:postgresql95-contrib, p-cpe:/a:novell:opensuse:postgresql95-contrib-debuginfo, p-cpe:/a:novell:opensuse:postgresql95-debuginfo, p-cpe:/a:novell:opensuse:postgresql95-debugsource, p-cpe:/a:novell:opensuse:postgresql95-devel, p-cpe:/a:novell:opensuse:postgresql95-devel-debuginfo, p-cpe:/a:novell:opensuse:postgresql95-libs-debugsource, p-cpe:/a:novell:opensuse:postgresql95-plperl, p-cpe:/a:novell:opensuse:postgresql95-plperl-debuginfo, p-cpe:/a:novell:opensuse:postgresql95-plpython, p-cpe:/a:novell:opensuse:postgresql95-plpython-debuginfo, p-cpe:/a:novell:opensuse:postgresql95-pltcl, p-cpe:/a:novell:opensuse:postgresql95-pltcl-debuginfo, p-cpe:/a:novell:opensuse:postgresql95-server, p-cpe:/a:novell:opensuse:postgresql95-server-debuginfo, p-cpe:/a:novell:opensuse:postgresql95-test, cpe:/o:novell:opensuse:42.3

Patch Publication Date: 2018/07/05

Reference Information

CVE: CVE-2018-1115