CVE-2007-2138 json
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 be…
published 2007-04-24 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-2133
- cvss
- 6.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.8%
- EPSS 3.8% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
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."
Patch / fix
- postgresql postgresql 7.3.19, 7.4.17, 8.0.13, 8.1.9, 8.2.4
- postgresql RHEL 1 APPLICATION_STACK 8.1.9-1.el4s1.1
- postgresql-pl RHEL 1 APPLICATION_STACK 8.1.9-1.el4s1.1
- postgresql-tcl RHEL 1 APPLICATION_STACK 8.1.9-1.el4s1.1
- postgresql-libs RHEL 1 APPLICATION_STACK 8.1.9-1.el4s1.1
- postgresql-test RHEL 1 APPLICATION_STACK 8.1.9-1.el4s1.1
- postgresql-python RHEL 1 APPLICATION_STACK 8.1.9-1.el4s1.1
- postgresql-server RHEL 1 APPLICATION_STACK 8.1.9-1.el4s1.1
- postgresql-contrib RHEL 1 APPLICATION_STACK 8.1.9-1.el4s1.1
red hat advisories RHSA-2007:0337RHSA-2007:0336
- postgresql.org/about/news.791 advisory
- postgresql.org/support/security.html advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2007-2138 updated
PostgreSQL security-definer function privilege escalation
-
Red Hat Application Stack v1 for Enterprise Linux AS (v.4) postgresql 8.1.9-1.el4s1.1, postgresql-pl 8.1.9-1.el4s1.1, postgresql-tcl 8.1.9-1.el4s1.1, postgresql-libs 8.1.9-1.el4s1.1, postgresql-test 8.1.9-1.el4s1.1, postgresql-python 8.1.9-1.el4s1.1, +2 more Red Hat Application Stack v1 for Enterprise Linux ES (v.4) postgresql 8.1.9-1.el4s1.1, postgresql-pl 8.1.9-1.el4s1.1, postgresql-tcl 8.1.9-1.el4s1.1, postgresql-libs 8.1.9-1.el4s1.1, postgresql-test 8.1.9-1.el4s1.1, postgresql-python 8.1.9-1.el4s1.1, +2 morefixed: vendor fix RHSA-2007:0337
-
Red Hat Desktop version 3 rh-postgresql 7.3.19-1, rh-postgresql-pl 7.3.19-1, rh-postgresql-tcl 7.3.19-1, rh-postgresql-jdbc 7.3.19-1, rh-postgresql-libs 7.3.19-1, rh-postgresql-test 7.3.19-1, +3 more Red Hat Enterprise Linux (v. 5 server) postgresql 8.1.9-1.el5, postgresql-pl 8.1.9-1.el5, postgresql-tcl 8.1.9-1.el5, postgresql-libs 8.1.9-1.el5, postgresql-test 8.1.9-1.el5, postgresql-python 8.1.9-1.el5, +2 more Red Hat Enterprise Linux AS version 3 rh-postgresql 7.3.19-1, rh-postgresql-pl 7.3.19-1, rh-postgresql-tcl 7.3.19-1, rh-postgresql-jdbc 7.3.19-1, rh-postgresql-libs 7.3.19-1, rh-postgresql-test 7.3.19-1, +3 more Red Hat Enterprise Linux AS version 4 postgresql 7.4.17-1.RHEL4.1, postgresql-pl 7.4.17-1.RHEL4.1, postgresql-tcl 7.4.17-1.RHEL4.1, postgresql-jdbc 7.4.17-1.RHEL4.1, postgresql-libs 7.4.17-1.RHEL4.1, postgresql-test 7.4.17-1.RHEL4.1, +3 more Red Hat Enterprise Linux Desktop (v. 5 client) postgresql 8.1.9-1.el5, postgresql-pl 8.1.9-1.el5, postgresql-tcl 8.1.9-1.el5, postgresql-libs 8.1.9-1.el5, postgresql-test 8.1.9-1.el5, postgresql-python 8.1.9-1.el5, +2 more Red Hat Enterprise Linux Desktop version 4 postgresql 7.4.17-1.RHEL4.1, postgresql-pl 7.4.17-1.RHEL4.1, postgresql-tcl 7.4.17-1.RHEL4.1, postgresql-jdbc 7.4.17-1.RHEL4.1, postgresql-libs 7.4.17-1.RHEL4.1, postgresql-test 7.4.17-1.RHEL4.1, +3 morefixed: vendor fix RHSA-2007:0336
+5 more productsfewer
Red Hat Enterprise Linux Desktop Workstation (v. 5 client) postgresql 8.1.9-1.el5, postgresql-pl 8.1.9-1.el5, postgresql-tcl 8.1.9-1.el5, postgresql-libs 8.1.9-1.el5, postgresql-test 8.1.9-1.el5, postgresql-python 8.1.9-1.el5, +2 more Red Hat Enterprise Linux ES version 3 rh-postgresql 7.3.19-1, rh-postgresql-pl 7.3.19-1, rh-postgresql-tcl 7.3.19-1, rh-postgresql-jdbc 7.3.19-1, rh-postgresql-libs 7.3.19-1, rh-postgresql-test 7.3.19-1, +3 more Red Hat Enterprise Linux ES version 4 postgresql 7.4.17-1.RHEL4.1, postgresql-pl 7.4.17-1.RHEL4.1, postgresql-tcl 7.4.17-1.RHEL4.1, postgresql-jdbc 7.4.17-1.RHEL4.1, postgresql-libs 7.4.17-1.RHEL4.1, postgresql-test 7.4.17-1.RHEL4.1, +3 more Red Hat Enterprise Linux WS version 3 rh-postgresql 7.3.19-1, rh-postgresql-pl 7.3.19-1, rh-postgresql-tcl 7.3.19-1, rh-postgresql-jdbc 7.3.19-1, rh-postgresql-libs 7.3.19-1, rh-postgresql-test 7.3.19-1, +3 more Red Hat Enterprise Linux WS version 4 postgresql 7.4.17-1.RHEL4.1, postgresql-pl 7.4.17-1.RHEL4.1, postgresql-tcl 7.4.17-1.RHEL4.1, postgresql-jdbc 7.4.17-1.RHEL4.1, postgresql-libs 7.4.17-1.RHEL4.1, postgresql-test 7.4.17-1.RHEL4.1, +3 more
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.82% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 6.0 | AV:N/AC:M/Au:S/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-264 Permissions, Privileges, and Access Controls
- Technology feeds
References
-
postgresql.org
/about/news.791
patch, vendor-advisory
-
postgresql.org
/support/security.html
patch, vendor-advisory
-
trustix.org
/errata/2007/0015/
vendor-advisory, broken-link
-
security.gentoo.org
/glsa/glsa-200705-12.xml
vendor-advisory, third-party-advisory
-
mandriva.com
/security/advisories?name=MDKSA-2007:094
vendor-advisory, third-party-advisory
-
redhat.com
/support/errata/RHSA-2007-0337.html
vendor-advisory, third-party-advisory
-
debian.org
/security/2007/dsa-1311
vendor-advisory, third-party-advisory
-
debian.org
/security/2007/dsa-1309
vendor-advisory, third-party-advisory
-
ubuntu.com
/usn/usn-454-1
vendor-advisory, third-party-advisory
-
rhn.redhat.com
/errata/RHSA-2007-0336.html
vendor-advisory, third-party-advisory
-
sunsolve.sun.com
/search/document.do?assetkey=1-26-102894-1
vendor-advisory, broken-link
-
secunia.com
/advisories/25334
third-party-advisory
-
secunia.com
/advisories/25717
third-party-advisory
-
secunia.com
/advisories/25058
third-party-advisory
-
issues.rpath.com
/browse/RPL-1292
broken-link
-
secunia.com
/advisories/24999
third-party-advisory
-
secunia.com
/advisories/25037
third-party-advisory
-
secunia.com
/advisories/24989
third-party-advisory
-
securityfocus.com
/bid/23618
vdb-entry, third-party-advisory
-
support.avaya.com
/elmodocs2/security/ASA-2007-190.htm
third-party-advisory
-
secunia.com
/advisories/25725
third-party-advisory
-
securitytracker.com
/id?1017974
vdb-entry, third-party-advisory
-
exchange.xforce.ibmcloud.com
/vulnerabilities/33842
vdb-entry, third-party-advisory
-
secunia.com
/advisories/25720
third-party-advisory
-
vupen.com
/english/advisories/2007/1549
vdb-entry, third-party-advisory
-
secunia.com
/advisories/25019
third-party-advisory
-
secunia.com
/advisories/25238
third-party-advisory
-
secunia.com
/advisories/25184
third-party-advisory
-
vupen.com
/english/advisories/2007/1497
vdb-entry, third-party-advisory
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10090
vdb-entry, signature, third-party-advisory
-
secunia.com
/advisories/25005
third-party-advisory
Sources
- CVE List CVE-2007-2138
- NVD CVE-2007-2138
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.