Skip to content
Fencer Vulns
medium 6.0

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

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 more
    fixed: 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 more
    +5 more products
    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
    fixed: vendor fix RHSA-2007:0336

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

Sources

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.