Executive Summary

Summary
Title postgresql security update
Informations
Name RHSA-2007:0337 First vendor Publication 2007-05-03
Vendor RedHat Last vendor Modification 2007-05-03
Severity (Vendor) Moderate Revision 01

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:M/Au:S/C:P/I:P/A:P)
Cvss Base Score 6 Attack Range Network
Cvss Impact Score 6.4 Attack Complexity Medium
Cvss Expoit Score 6.8 Authentication Requires single instance
Calculate full CVSS 2.0 Vectors scores

Detail

Problem Description:

Updated postgresql packages that fix several security vulnerabilities are now available for the Red Hat Application Stack.

This update has been rated as having moderate security impact by the Red Hat Security Response Team.

2. Relevant releases/architectures:

Red Hat Application Stack v1 for Enterprise Linux AS (v.4) - i386, x86_64 Red Hat Application Stack v1 for Enterprise Linux ES (v.4) - i386, x86_64

3. Problem description:

PostgreSQL is an advanced Object-Relational database management system (DBMS).

A flaw was found in the way PostgreSQL allows authenticated users to execute security-definer functions. It was possible for an unprivileged user to execute arbitrary code with the privileges of the security-definer function. (CVE-2007-2138)

Users of PostgreSQL should upgrade to these updated packages containing PostgreSQL version 8.1.9 which corrects this issue.

4. Solution:

Before applying this update, make sure that all previously-released errata relevant to your system have been applied.

This update is available via Red Hat Network. Details on how to use the Red Hat Network to apply this update are available at http://kbase.redhat.com/faq/FAQ_58_10188

5. Bug IDs fixed (http://bugzilla.redhat.com/):

237681 - CVE-2007-2138 PostgreSQL security-definer function privilege escalation

Original Source

Url : https://rhn.redhat.com/errata/RHSA-2007-0337.html

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-264 Permissions, Privileges, and Access Controls

OVAL Definitions

Definition Id: oval:org.mitre.oval:def:10090
 
Oval ID: oval:org.mitre.oval:def:10090
Title: Untrusted search path vulnerability in PostgreSQL before 7.3.19, 7.4.x before 7.4.17, 8.0.x before 8.0.13, 8.1.x before 8.1.9, and 8.2.x before 8.2.4 allows remote authenticated users, when permitted to call a SECURITY DEFINER function, to gain the privileges of the function owner, related to "search_path settings."
Description: Untrusted search path vulnerability in PostgreSQL before 7.3.19, 7.4.x before 7.4.17, 8.0.x before 8.0.13, 8.1.x before 8.1.9, and 8.2.x before 8.2.4 allows remote authenticated users, when permitted to call a SECURITY DEFINER function, to gain the privileges of the function owner, related to "search_path settings."
Family: unix Class: vulnerability
Reference(s): CVE-2007-2138
Version: 5
Platform(s): Red Hat Enterprise Linux 3
CentOS Linux 3
Red Hat Enterprise Linux 4
CentOS Linux 4
Oracle Linux 4
Red Hat Enterprise Linux 5
CentOS Linux 5
Oracle Linux 5
Product(s):
Definition Synopsis:
Definition Id: oval:org.mitre.oval:def:20469
 
Oval ID: oval:org.mitre.oval:def:20469
Title: DSA-1309-1 postgresql-8.1
Description: It was discovered that the PostgreSQL database performs insufficient validation of variables passed to privileged SQL statements, so called <q>security definers</q>, which could lead to SQL privilege escalation.
Family: unix Class: patch
Reference(s): DSA-1309-1
CVE-2007-2138
Version: 5
Platform(s): Debian GNU/Linux 4.0
Product(s): postgresql-8.1
Definition Synopsis:
Definition Id: oval:org.mitre.oval:def:20481
 
Oval ID: oval:org.mitre.oval:def:20481
Title: DSA-1311-1 postgresql-7.4
Description: It was discovered that the PostgreSQL database performs insufficient validation of variables passed to privileged SQL statement called <q>security definers</q>, which could lead to SQL privilege escalation.
Family: unix Class: patch
Reference(s): DSA-1311-1
CVE-2007-2138
Version: 5
Platform(s): Debian GNU/Linux 4.0
Product(s): postgresql-7.4
Definition Synopsis:
Definition Id: oval:org.mitre.oval:def:21808
 
Oval ID: oval:org.mitre.oval:def:21808
Title: ELSA-2007:0336: postgresql security update (Moderate)
Description: Untrusted search path vulnerability in PostgreSQL before 7.3.19, 7.4.x before 7.4.17, 8.0.x before 8.0.13, 8.1.x before 8.1.9, and 8.2.x before 8.2.4 allows remote authenticated users, when permitted to call a SECURITY DEFINER function, to gain the privileges of the function owner, related to "search_path settings."
Family: unix Class: patch
Reference(s): ELSA-2007:0336-02
CVE-2007-2138
Version: 6
Platform(s): Oracle Linux 5
Product(s): rh-postgresql
postgresql
Definition Synopsis:

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 156
Os 3
Os 2

OpenVAS Exploits

Date Description
2009-04-09 Name : Mandriva Update for postgresql MDKSA-2007:094 (postgresql)
File : nvt/gb_mandriva_MDKSA_2007_094.nasl
2009-03-23 Name : Ubuntu Update for postgresql-8.1, postgresql-8.2 vulnerability USN-454-1
File : nvt/gb_ubuntu_USN_454_1.nasl
2009-02-27 Name : Fedora Update for postgresql FEDORA-2007-0174
File : nvt/gb_fedora_2007_0174_postgresql_fc7.nasl
2009-02-27 Name : Fedora Update for postgresql FEDORA-2007-565
File : nvt/gb_fedora_2007_565_postgresql_fc6.nasl
2009-02-27 Name : Fedora Update for postgresql FEDORA-2007-566
File : nvt/gb_fedora_2007_566_postgresql_fc5.nasl
2009-02-17 Name : Fedora Update for postgresql FEDORA-2008-0552
File : nvt/gb_fedora_2008_0552_postgresql_fc7.nasl
2008-09-24 Name : Gentoo Security Advisory GLSA 200705-12 (postgresql)
File : nvt/glsa_200705_12.nasl
2008-01-17 Name : Debian Security Advisory DSA 1309-1 (postgresql-8.1)
File : nvt/deb_1309_1.nasl
2008-01-17 Name : Debian Security Advisory DSA 1311-1 (postgresql-7.4)
File : nvt/deb_1311_1.nasl

Open Source Vulnerability Database (OSVDB)

Id Description
34903 PostgreSQL SECURITY DEFINER Functions Search Path Subversion Local Privilege ...

Nessus® Vulnerability Scanner

Date Description
2013-07-12 Name : The remote Oracle Linux host is missing one or more security updates.
File : oraclelinux_ELSA-2007-0336.nasl - Type : ACT_GATHER_INFO
2012-08-01 Name : The remote Scientific Linux host is missing one or more security updates.
File : sl_20070508_postgresql_on_SL4.nasl - Type : ACT_GATHER_INFO
2012-08-01 Name : The remote Scientific Linux host is missing one or more security updates.
File : sl_20070508_postgresql_on_on_SL3_0_x.nasl - Type : ACT_GATHER_INFO
2008-01-14 Name : The remote Fedora host is missing a security update.
File : fedora_2008-0552.nasl - Type : ACT_GATHER_INFO
2007-11-10 Name : The remote Ubuntu host is missing one or more security-related patches.
File : ubuntu_USN-454-1.nasl - Type : ACT_GATHER_INFO
2007-11-06 Name : The remote Fedora host is missing a security update.
File : fedora_2007-0174.nasl - Type : ACT_GATHER_INFO
2007-06-21 Name : The remote Debian host is missing a security-related update.
File : debian_DSA-1311.nasl - Type : ACT_GATHER_INFO
2007-06-18 Name : The remote Debian host is missing a security-related update.
File : debian_DSA-1309.nasl - Type : ACT_GATHER_INFO
2007-06-07 Name : The remote Fedora Core host is missing a security update.
File : fedora_2007-565.nasl - Type : ACT_GATHER_INFO
2007-06-07 Name : The remote Fedora Core host is missing a security update.
File : fedora_2007-566.nasl - Type : ACT_GATHER_INFO
2007-05-11 Name : The remote Gentoo host is missing one or more security-related patches.
File : gentoo_GLSA-200705-12.nasl - Type : ACT_GATHER_INFO
2007-05-10 Name : The remote CentOS host is missing one or more security updates.
File : centos_RHSA-2007-0336.nasl - Type : ACT_GATHER_INFO
2007-05-10 Name : The remote Red Hat host is missing one or more security updates.
File : redhat-RHSA-2007-0336.nasl - Type : ACT_GATHER_INFO
2007-04-30 Name : The remote Mandrake Linux host is missing one or more security updates.
File : mandrake_MDKSA-2007-094.nasl - Type : ACT_GATHER_INFO
2007-03-18 Name : The remote host is missing Sun Security Patch number 123590-12
File : solaris10_123590.nasl - Type : ACT_GATHER_INFO
2007-03-18 Name : The remote host is missing Sun Security Patch number 123591-12
File : solaris10_x86_123591.nasl - Type : ACT_GATHER_INFO