Executive Summary

Summary
Title PostgreSQL vulnerability
Informations
Name USN-454-1 First vendor Publication 2007-04-26
Vendor Ubuntu Last vendor Modification 2007-04-26
Severity (Vendor) N/A Revision N/A

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

A security issue affects the following Ubuntu releases:

Ubuntu 6.06 LTS Ubuntu 6.10 Ubuntu 7.04

This advisory also applies to the corresponding versions of Kubuntu, Edubuntu, and Xubuntu.

The problem can be corrected by upgrading your system to the following package versions:

Ubuntu 6.06 LTS:
postgresql-8.1 8.1.9-0ubuntu0.6.06

Ubuntu 6.10:
postgresql-8.1 8.1.9-0ubuntu0.6.10

Ubuntu 7.04:
postgresql-8.2 8.2.4-0ubuntu0.7.04

In general, a standard system upgrade is sufficient to effect the necessary changes.

Details follow:

PostgreSQL did not handle the "search_path" configuration option in a secure way for functions declared as "SECURITY DEFINER".

Previously, an attacker could override functions and operators used by the security definer function to execute arbitrary SQL commands with the privileges of the user who created the security definer function. The updated version does not search the temporary table schema for functions and operators any more.

Similarly, an attacker could put forged tables into the temporary table schema to trick the security definer function into using attacker defined data for processing. This was possible because the temporary schema was always implicitly searched first before all other entries in "search_path". The updated version now supports explicit placement of the temporary schema. Please see the HTML documentation or the manual page for "CREATE FUNCTION" for details and an example how to write security definer functions in a secure way.

Original Source

Url : http://www.ubuntu.com/usn/USN-454-1

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

Alert History

If you want to see full details history, please login or register.
0
Date Informations
2014-02-17 12:04:20
  • Multiple Updates