All vulnerabilities

Servers and applications

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

Severity
Medium 6.0
Published
24 Apr 2007
Last changed
16 Jun 2026
Added to UpHeron
16 Oct 2026
Fixed in
7.3.19, 7.4.17, 8.0.13, 8.1.9, 8.2.4
Exploit chance
3.8% in the next 30 daysHigher than 90% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
CWE-264
Attack
Over the network · Needs a login
Attacker can
Read some data · Change some data · Slow it down
CVSS vector
AV:N/AC:M/Au:S/C:P/I:P/A:P
Sources
NVD

Affected software

SoftwareAffected versions
PostgreSQLServers and applications · cpe:a:postgresql:postgresql
  • Every version before 7.3.19
  • From 7.4 before 7.4.17
  • From 8.0 before 8.0.13
  • From 8.1 before 8.1.9
  • From 8.2 before 8.2.4

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2007-2138
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2007-2138