blob: b815fb6b03188d2fbc8d1d86520c29a3b569d99a [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<glsa id="200410-16">
<title>PostgreSQL: Insecure temporary file use in make_oidjoins_check</title>
The make_oidjoins_check script, part of the PostgreSQL package, is
vulnerable to symlink attacks, potentially allowing a local user to
overwrite arbitrary files with the rights of the user running the utility.
<product type="ebuild">PostgreSQL</product>
<announced>October 18, 2004</announced>
<revised>May 28, 2009: 04</revised>
<package name="dev-db/postgresql" auto="yes" arch="*">
<unaffected range="ge">7.4.5-r2</unaffected>
<unaffected range="rge">7.3.7-r2</unaffected>
<unaffected range="rge">7.3.15</unaffected>
<unaffected range="rge">7.3.16</unaffected>
<unaffected range="rge">7.3.18</unaffected>
<unaffected range="rge">7.3.21</unaffected>
<vulnerable range="le">7.4.5-r1</vulnerable>
PostgreSQL is an open source database based on the POSTGRES database
management system. It includes several contributed scripts including
the make_oidjoins_check script.
The make_oidjoins_check script insecurely creates temporary files in
world-writeable directories with predictable names.
<impact type="normal">
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
There is no known workaround at this time.
All PostgreSQL users should upgrade to the latest version:
# emerge sync
# emerge -pv &quot;&gt;=dev-db/postgresql-7.4.5-r2&quot;
# emerge &quot;&gt;=dev-db/postgresql-7.4.5-r2&quot;</code>
Upgrade notes: PostgreSQL 7.3.x users should upgrade to the latest
available 7.3.x version to retain database compatibility.
<uri link="">Trustix Advisory #2004-0050</uri>
<uri link="">CVE-2004-0977</uri>
<metadata tag="submitter" timestamp="Mon, 18 Oct 2004 13:31:59 +0000">
<metadata tag="bugReady" timestamp="Mon, 18 Oct 2004 13:32:56 +0000">