PostgreSQL search_path privilege escalation

postgresql-searchpath-privilege-escalation (33842) The risk level is classified as HighHigh Risk

Description:

PostgreSQL could allow a local or remote attacker to gain elevated privileges caused by insecure search_path settings. An attacker could modify the search_path and use specially-crafted temporary objects to obtain privileges of SECURITY DEFINER functions.

*CVSS:

Base Score: 6
  Access Vector: Remote
  Access Complexity: Low
  Authentication: Required
  Confidentiality Impact: Complete
  Integrity Impact: Complete
  Availability Impact: Complete
 
Temporal Score: 4.4
  Exploitability: Unproven
  Remediation Level: Official-Fix
  Report Confidence: Confirmed

Consequences:

Gain Privileges

Remedy:

Refer to PostgreSQL News, 2007-04-23 for upgrade information. See References.

For Mandriva Linux (postgresql):
Refer to MDKSA-2007:094 for patch, upgrade, or suggested workaround information. See References.

For Ubuntu Linux:
Refer to USN-454-1 for patch, upgrade, or suggested workaround information. See References.

For Gentoo Linux (postgresql):
Refer to GLSA 200705-12 for patch, upgrade, or suggested workaround information. See References.

For Solaris:
Refer to Sun Alert ID: 102894 for patch, upgrade, or suggested workaround information. See References.

For Red Hat Linux:
Refer to RHSA-2007:0336 for patch, upgrade, or suggested workaround information. See References.

For Debian GNU/Linux (postgresql-8.1):
Refer to DSA-1309-1 for patch, upgrade, or suggested workaround information. See References.

For Debian/GNU Linux:
Refer to DSA-1311-1 for patch, upgrade, or suggested workaround information. See References.

For other distributions:
Contact your vendor for upgrade or patch information.

References:

  • PostgreSQL News, 2007-04-23: Security Update Releases.
  • PostgreSQL Web site: PostgreSQL: Security Information.
  • Sun Alert ID: 102894: Security Vulnerability in PostgreSQL SECURITY DEFINER Functions May Allow Escalation of Privileges.
  • ASA-2007-172: Security Vulnerability in PostgreSQL SECURITY DEFINER Functions May Allow Escalation of Privileges (Sun 102894)
  • ASA-2007-190: PostgreSQL security update (RHSA-2007-0336 and RHSA-2007-0337)
  • BID-23618: PostgreSQL SECURITY DEFINER Function Local Privilege Escalation Vulnerability
  • CVE-2007-2138: 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.
  • DSA-1309: postgresql-8.1 -- programming error
  • DSA-1311: postgresql-7.4 -- programming error
  • GLSA-200705-12: PostgreSQL: Privilege escalation
  • MDKSA-2007:094: Updated postgresql packages fix vulnerability
  • RHSA-2007-0336: Moderate: postgresql security update
  • RHSA-2007-0337: Moderate: postgresql security update
  • SA25019: PostgreSQL SECURITY DEFINER Functions Privilege Escalation
  • SA25037: Sun Solaris PostgreSQL SECURITY DEFINER Privilege Escalation
  • SA25334: Avaya Products PostgreSQL SECURITY DEFINER Privilege Escalation
  • SECTRACK ID: 1017974: PostgreSQL Lets Remote Authenticated Users Gain Elevated SQL Privileges
  • USN-454-1: PostgreSQL vulnerability

Platforms Affected:

  • Canonical Ubuntu 6.06 LTS
  • Canonical Ubuntu 6.10
  • Canonical Ubuntu 7.04
  • Debian Debian Linux 3.1
  • Debian Debian Linux 4.0
  • Gentoo Linux
  • MandrakeSoft Mandrake Linux 2007
  • MandrakeSoft Mandrake Linux 2007 X86_64
  • MandrakeSoft Mandrake Linux 2007.1 X86_64
  • MandrakeSoft Mandrake Linux 2007.1
  • MandrakeSoft Mandrake Linux 2008.0 X86_64
  • MandrakeSoft Mandrake Linux Corporate Server 3.0
  • MandrakeSoft Mandrake Linux Corporate Server 3.0 X86_64
  • MandrakeSoft Mandrake Linux Corporate Server 4.0
  • MandrakeSoft Mandrake Linux Corporate Server 4.0 X86_64
  • PostgreSQL PostgreSQL 7.3
  • PostgreSQL PostgreSQL 7.3.1
  • PostgreSQL PostgreSQL 7.3.10
  • PostgreSQL PostgreSQL 7.3.11
  • PostgreSQL PostgreSQL 7.3.12
  • PostgreSQL PostgreSQL 7.3.13
  • PostgreSQL PostgreSQL 7.3.14
  • PostgreSQL PostgreSQL 7.3.15
  • PostgreSQL PostgreSQL 7.3.16
  • PostgreSQL PostgreSQL 7.3.17
  • PostgreSQL PostgreSQL 7.3.18
  • PostgreSQL PostgreSQL 7.3.2
  • PostgreSQL PostgreSQL 7.3.3
  • PostgreSQL PostgreSQL 7.3.4
  • PostgreSQL PostgreSQL 7.3.5
  • PostgreSQL PostgreSQL 7.3.6
  • PostgreSQL PostgreSQL 7.3.7
  • PostgreSQL PostgreSQL 7.3.8
  • PostgreSQL PostgreSQL 7.3.9
  • PostgreSQL PostgreSQL 7.4
  • PostgreSQL PostgreSQL 7.4.1
  • PostgreSQL PostgreSQL 7.4.10
  • PostgreSQL PostgreSQL 7.4.11
  • PostgreSQL PostgreSQL 7.4.12
  • PostgreSQL PostgreSQL 7.4.13
  • PostgreSQL PostgreSQL 7.4.14
  • PostgreSQL PostgreSQL 7.4.15
  • PostgreSQL PostgreSQL 7.4.16
  • PostgreSQL PostgreSQL 7.4.2
  • PostgreSQL PostgreSQL 7.4.3
  • PostgreSQL PostgreSQL 7.4.4
  • PostgreSQL PostgreSQL 7.4.5
  • PostgreSQL PostgreSQL 7.4.6
  • PostgreSQL PostgreSQL 7.4.7
  • PostgreSQL PostgreSQL 7.4.8
  • PostgreSQL PostgreSQL 7.4.9
  • PostgreSQL PostgreSQL 8.0
  • PostgreSQL PostgreSQL 8.0.1
  • PostgreSQL PostgreSQL 8.0.10
  • PostgreSQL PostgreSQL 8.0.2
  • PostgreSQL PostgreSQL 8.0.3
  • PostgreSQL PostgreSQL 8.0.4
  • PostgreSQL PostgreSQL 8.0.5
  • PostgreSQL PostgreSQL 8.0.6
  • PostgreSQL PostgreSQL 8.0.7
  • PostgreSQL PostgreSQL 8.0.8
  • PostgreSQL PostgreSQL 8.0.9
  • PostgreSQL PostgreSQL 8.1
  • PostgreSQL PostgreSQL 8.1.1
  • PostgreSQL PostgreSQL 8.1.2
  • PostgreSQL PostgreSQL 8.1.3
  • PostgreSQL PostgreSQL 8.1.4
  • PostgreSQL PostgreSQL 8.1.5
  • PostgreSQL PostgreSQL 8.1.6
  • PostgreSQL PostgreSQL 8.2
  • PostgreSQL PostgreSQL 8.2.1
  • RedHat Application Stack v1 for EL AS 4
  • RedHat Application Stack v1 for EL ES 4
  • RedHat Enterprise Linux 3 Desktop
  • RedHat Enterprise Linux 3 AS
  • RedHat Enterprise Linux 3 WS
  • RedHat Enterprise Linux 3 ES
  • RedHat Enterprise Linux 4 AS
  • RedHat Enterprise Linux 4 WS
  • RedHat Enterprise Linux 4 ES
  • RedHat Enterprise Linux 4 Desktop
  • RedHat Enterprise Linux 4.5.z ES
  • RedHat Enterprise Linux 4.5.z AS
  • RedHat Enterprise Linux 5 Client
  • RedHat Enterprise Linux 5 Server
  • RedHat Enterprise Linux 5 Client Workstation
  • RedHat Enterprise Linux 5
  • RedHat Enterprise Linux Desktop 5.0
  • Sun Solaris 10 x86
  • Sun Solaris 10 SPARC

Reported:

Apr 23, 2007

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this

Return to the main page

* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

About IBM Security Systems

IBM Security Systems include an extensive portfolio of hardware, software solutions, professional and managed services offerings covering the spectrum of IT and business security risks: people and identity, data and information, application and process, network, server and endpoint and physical infrastructure, empowering clients to innovate and operate their businesses on the most secure infrastructure platforms. Through world-class solutions that address risk across the enterprise, IBM helps organizations build a strong security posture that helps reduce costs, improve service, and manage risk. IBM X-Force(R) Research and Development is one of the most renowned commercial security research and development groups in the world. For more information on how to address today's biggest risks, please visit us at ibm.com/security.