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

This script is Copyright (C) 2004-2014 Tenable Network Security, Inc.


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.

See also :

http://www.trustix.org/errata/2004/0050/
http://www.gentoo.org/security/en/glsa/glsa-200410-16.xml

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.

Risk factor :

Low / CVSS Base Score : 2.1
(CVSS2#AV:L/AC:L/Au:N/C:N/I:P/A:N)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 15513 (gentoo_GLSA-200410-16.nasl)

Bugtraq ID:

CVE ID: CVE-2004-0977