CVE-2007-2138: Medium severity PostgreSQL postgresql vulnerability

Published Apr 23, 2007
·
Updated

+++ This bug was initially created as a clone of Bug #237680 +++

Quoting the PostgreSQL release notes: http://www.postgresql.org/docs/8.2/static/release-8-2-4.html

Support explicit placement of the temporary-table schema within searchpath, and disable searching it for functions and operators (Tom)

This is needed to allow a security-definer function to set a truly secure value of searchpath. Without it, an unprivileged SQL user can use temporary objects to execute code with the privileges of the security-definer function (CVE-2007-2138). See CREATE FUNCTION for more information.

This flaw also affects FC5 and FC7

Other sources

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 "searchpath settings."

Red Hat

Affected Software

12 affected componentsFixes available
redhat/postgresql<0:8.1.9-1.el5
0:8.1.9-1.el5
redhat/postgresql<0:8.1.9-1.el4
0:8.1.9-1.el4
PostgreSQL postgresql<7.3.19
PostgreSQL postgresql>=7.4<7.4.17
PostgreSQL postgresql>=8.0<8.0.13
PostgreSQL postgresql>=8.1<8.1.9
PostgreSQL postgresql>=8.2<8.2.4
Debian Debian Linux=3.1
Debian Debian Linux=4.0
Canonical Ubuntu Linux=6.06
Canonical Ubuntu Linux=6.10
Canonical Ubuntu Linux=7.04

Event History

Apr 23, 2007
CVE Published
via Red Hat·12:00 AM
Apr 24, 2007
Data Sourced
via Red Hat·06:46 PM
DescriptionSeverityAffected Software
Apr 25, 2007
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2007-2138?

CVE-2007-2138 is considered a moderate severity vulnerability due to the potential privilege escalation it causes.

2

How do I fix CVE-2007-2138?

To fix CVE-2007-2138, upgrade to PostgreSQL version 7.3.19, 7.4.17, 8.0.13, 8.1.9, or 8.2.4 or later.

3

Who is affected by CVE-2007-2138?

CVE-2007-2138 affects users of PostgreSQL versions 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.

4

What type of vulnerability is CVE-2007-2138?

CVE-2007-2138 is an untrusted search path vulnerability that allows remote authenticated users to gain additional privileges.

5

What are the potential impacts of CVE-2007-2138?

CVE-2007-2138 can lead to unauthorized access and privilege escalation, potentially compromising database security.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203