GLSA-200410-16 : PostgreSQL: Insecure temporary file use in make_oidjoins_check

low Nessus Plugin ID 15513

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200410-16 (PostgreSQL: Insecure temporary file use in make_oidjoins_check)

The make_oidjoins_check script insecurely creates temporary files in world-writeable directories with predictable names.
Impact :

A local attacker could create symbolic links in the temporary files directory, pointing to a valid file somewhere on the filesystem. When make_oidjoins_check is called, this would result in file overwrite with the rights of the user running the utility, which could be the root user.
Workaround :

There is no known workaround at this time.

Solution

All PostgreSQL users should upgrade to the latest version:
# emerge sync # emerge -pv '>=dev-db/postgresql-7.4.5-r2' # emerge '>=dev-db/postgresql-7.4.5-r2' Upgrade notes: PostgreSQL 7.3.x users should upgrade to the latest available 7.3.x version to retain database compatibility.

See Also

http://www.trustix.org/errata/2004/0050/

https://security.gentoo.org/glsa/200410-16

Plugin Details

Severity: Low

ID: 15513

File Name: gentoo_GLSA-200410-16.nasl

Version: 1.17

Type: local

Published: 10/19/2004

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.4

CVSS v2

Risk Factor: Low

Base Score: 2.1

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:postgresql, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 10/18/2004

Vulnerability Publication Date: 10/18/2004

Reference Information

CVE: CVE-2004-0977

GLSA: 200410-16