CVE-2007-2138

Summary

CVECVE-2007-2138
StatePUBLISHED
Assignermitre
Source PriorityCVE Program / NVD first with legacy fallback
Published2007-04-24 20:19:00 UTC
Updated2026-04-23 00:35:47 UTC
DescriptionUntrusted 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."

Risk And Classification

Primary CVSS: v2.0 6 from [email protected]

AV:N/AC:M/Au:S/C:P/I:P/A:P

Problem Types: CWE-264 | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Medium
Authentication
Single
Confidentiality
Partial
Integrity
Partial
Availability
Partial

AV:N/AC:M/Au:S/C:P/I:P/A:P

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Postgresql Postgresql All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
Gentoo update for postgresql - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Third Party Advisory
Advisories - Mandriva Linux af854a3a-2127-422b-91ae-364da2661108 www.mandriva.com Third Party Advisory
#200713: Security Vulnerability in PostgreSQL SECURITY DEFINER Functions May Allow Escalation of Privileges af854a3a-2127-422b-91ae-364da2661108 sunsolve.sun.com Broken Link
Debian -- Security Information -- DSA-1311-1 postgresql-7.4 af854a3a-2127-422b-91ae-364da2661108 www.debian.org Third Party Advisory
Gentoo Linux Documentation -- PostgreSQL: Privilege escalation af854a3a-2127-422b-91ae-364da2661108 security.gentoo.org Third Party Advisory
Support af854a3a-2127-422b-91ae-364da2661108 www.redhat.com Third Party Advisory
Debian update for postgresql-8.1 - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Third Party Advisory
Debian -- Security Information -- DSA-1309-1 postgresql-8.1 af854a3a-2127-422b-91ae-364da2661108 www.debian.org Third Party Advisory
ASA-2007-190 (RHSA-2007-0336 and RHSA-2007-0337) af854a3a-2127-422b-91ae-364da2661108 support.avaya.com Third Party Advisory
Webmail | OVH- OVH af854a3a-2127-422b-91ae-364da2661108 www.vupen.com Third Party Advisory
IBM X-Force Exchange af854a3a-2127-422b-91ae-364da2661108 exchange.xforce.ibmcloud.com Third Party Advisory, VDB Entry
PostgreSQL: News: Security Update Releases af854a3a-2127-422b-91ae-364da2661108 www.postgresql.org Patch, Vendor Advisory
PostgreSQL SECURITY DEFINER Functions Privilege Escalation - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Third Party Advisory
rhn.redhat.com | Red Hat Support af854a3a-2127-422b-91ae-364da2661108 rhn.redhat.com Third Party Advisory
Trustix update for postgresql - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Third Party Advisory
PostgreSQL SECURITY DEFINER Function Local Privilege Escalation Vulnerability af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com Third Party Advisory, VDB Entry
PostgreSQL Lets Remote Authenticated Users Gain Elevated SQL Privileges - SecurityTracker af854a3a-2127-422b-91ae-364da2661108 www.securitytracker.com Third Party Advisory, VDB Entry
rPath update for postgresql and postgresql-server - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Third Party Advisory
Red Hat update for postgresql - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Third Party Advisory
Webmail | OVH- OVH af854a3a-2127-422b-91ae-364da2661108 www.vupen.com Third Party Advisory
PostgreSQL: Security Information af854a3a-2127-422b-91ae-364da2661108 www.postgresql.org Patch, Vendor Advisory
www.trustix.org/errata/2007/0015 af854a3a-2127-422b-91ae-364da2661108 www.trustix.org Broken Link
Avaya Products PostgreSQL SECURITY DEFINER Privilege Escalation - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Third Party Advisory
Repository / Oval Repository af854a3a-2127-422b-91ae-364da2661108 oval.cisecurity.org Third Party Advisory
Ubuntu update for postgresql - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Third Party Advisory
Sun Solaris PostgreSQL SECURITY DEFINER Privilege Escalation - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Third Party Advisory
Debian update for postgresql-7.4 - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Third Party Advisory
issues.rpath.com/browse/RPL-1292 af854a3a-2127-422b-91ae-364da2661108 issues.rpath.com Broken Link
Debian update for libexif - Secunia Advisories - Vulnerability Intelligence - Secunia.com af854a3a-2127-422b-91ae-364da2661108 secunia.com Third Party Advisory
USN-454-1: PostgreSQL vulnerability | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com Third Party Advisory
Mandriva update for postgresql - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

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. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report