<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>175791</bug_id>
          
          <creation_ts>2007-04-24 03:29 0000</creation_ts>
          <short_desc>dev-db/postgresql privilege escalation in SECURITY DEFINER functions (CVE-2007-2138)</short_desc>
          <delta_ts>2007-09-23 00:24:34 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Security</product>
          <component>Vulnerabilities</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://www.postgresql.org/about/news.791</bug_file_loc>
          <status_whiteboard>B3 [glsa]</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>aross@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>bernd@linx.net</cc>
    
    <cc>chainsaw@gentoo.org</cc>
    
    <cc>esigra@gmail.com</cc>
    
    <cc>mips@gentoo.org</cc>
    
    <cc>pgsql-bugs@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>aross@gentoo.org</who>
            <bug_when>2007-04-24 03:29:13 0000</bug_when>
            <thetext>&quot;The PostgreSQL Global Development Group has released updates to patch a privilege escalation exploit in SECURITY DEFINER functions. The fix is available in 8.2.4, 8.1.9, 8.0.13, 7.4.17, and 7.3.19 and all users of this feature are strongly urged to update to the latest minor version and follow instructions on securing these functions as soon as possible.&quot;

dev-db/postgresql-8.0.12 is the latest stable version on x86, and is vulnerable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vorlon@gentoo.org</who>
            <bug_when>2007-04-24 16:04:21 0000</bug_when>
            <thetext>please provide an updated ebuild</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aross@gentoo.org</who>
            <bug_when>2007-04-30 23:07:46 0000</bug_when>
            <thetext>If a GLSA is issued, it should refer users to http://www.postgresql.org/docs/techdocs.77 (Creating Secure Security Definer Functions), as the code for all security definer functions written by the user will need to be updated to properly secure the database.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aross@gentoo.org</who>
            <bug_when>2007-05-03 04:57:02 0000</bug_when>
            <thetext>dev-db/postgresql-8.0.13 and its dep dev-db/libpq-8.0.13 are in the tree and need to be marked stable. As per the release notes (http://www.postgresql.org/docs/8.0/static/release.html#RELEASE-8-0-13), there are very few changes over 8.0.12 (the current stable version) and they are all minor fixes.

If at all possible, 7.3.19 and 7.4.17 should also be marked stable, as they provide a much easier upgrade path for users than jumping to 8.0.13 (which requires a database dump/reload when upgrading from 7.x)

8.2.4 and 8.1.9 can remain in ~arch, as the 8.1.x and 8.2.x series are not currently stable on any archs.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dev-zero@gentoo.org</who>
            <bug_when>2007-05-03 14:40:12 0000</bug_when>
            <thetext>aross: 7.3, 7.4, 8.0, 8.1 and 8.2 are major versions which will be kept in the tree and have to be bumped as well. I&apos;m taking care of this. Thanks</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aetius@gentoo.org</who>
            <bug_when>2007-05-03 18:34:42 0000</bug_when>
            <thetext>Thanks aross and dev-zero.  Arches, the snowball is in your court, please stabilize:

dev-db/postgresql-7.3.19
dev-db/postgresql-7.4.17
dev-db/postgresql-8.0.13</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gustavoz@gentoo.org</who>
            <bug_when>2007-05-04 13:00:37 0000</bug_when>
            <thetext>I suppose we should match this with the corresponding libpq versions too right?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-05-04 13:12:39 0000</bug_when>
            <thetext>ia64 + x86 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gustavoz@gentoo.org</who>
            <bug_when>2007-05-04 15:31:57 0000</bug_when>
            <thetext>sparc stable.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>voxus@gentoo.org</who>
            <bug_when>2007-05-04 16:37:59 0000</bug_when>
            <thetext>amd64 stable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2007-05-04 19:05:58 0000</bug_when>
            <thetext>Stable for HPPA.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2007-05-05 10:26:09 0000</bug_when>
            <thetext>ppc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2007-05-05 13:20:37 0000</bug_when>
            <thetext>ppc64 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>yoswink@gentoo.org</who>
            <bug_when>2007-05-06 22:20:15 0000</bug_when>
            <thetext>dev-db/postgresql-7.3.19
dev-db/postgresql-7.4.17
dev-db/postgresql-8.0.13

Stable on alpha.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2007-05-10 18:56:24 0000</bug_when>
            <thetext>GLSA 200705-12

arm, mips, s390 don&apos;t forget to mark stable to benifit from the GLSA.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>