Read the docs
TI-2007-02059 Aliases CVE-2007-2138GHSA-2hq5-m4w6-6x9c

Untrusted search path vulnerability in PostgreSQL before 7.3.19, 7.4.x before 7.4.17…

Priority LOW 33CWE-264Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
— Not recorded in CVSS 2.0
Attack complexity
Medium
Impact type
Security bypass
Confidentiality · integrity · availability
Partial · Partial · Partial
Fix status
Fixed

Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-264.

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

Why it matters now

EPSS 0.03823 90th percentileScored 2026-11-07
Fix Fixed Red Hat: 2 advisories

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
  • — Vendor— Affected all versions Fixed in — No fix listed CNA

CPE configurations NVD · 6

CPEVersionsRoleVendor
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*before 7.3.19; 7.4 to before 7.4.17; 8.0 to before 8.0.13; 8.1 to before 8.1.9; 8.2 to before 8.2.4VulnerablePostgreSQL
cpe:2.3:o:debian:debian_linux:3.1:*:*:*:*:*:*:*3.1VulnerableDebian
cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:*4.0VulnerableDebian
cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:lts:*:*:*6.06VulnerableCanonical
cpe:2.3:o:canonical:ubuntu_linux:6.10:*:*:*:*:*:*:*6.10VulnerableCanonical
cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:*7.04VulnerableCanonical
  • cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* Versions before 7.3.19; 7.4 to before 7.4.17; 8.0 to before 8.0.13; 8.1 to before 8.1.9; 8.2 to before 8.2.4 Vulnerable ·PostgreSQL
  • cpe:2.3:o:debian:debian_linux:3.1:*:*:*:*:*:*:* Versions 3.1 Vulnerable ·Debian
  • cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:* Versions 4.0 Vulnerable ·Debian
  • cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:lts:*:*:* Versions 6.06 Vulnerable ·Canonical
  • cpe:2.3:o:canonical:ubuntu_linux:6.10:*:*:*:*:*:*:* Versions 6.10 Vulnerable ·Canonical
  • cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:* Versions 7.04 Vulnerable ·Canonical

Remediation

Red Hat 2 advisories

  • RHSA-2007:0336 Released 2007-05-08 · Red Hat rating Moderate
    postgresql security update
    • Red Hat Desktop version 3 rh-postgresql-7.3.19-1, rh-postgresql-7.3.19-1.i386, rh-postgresql-contrib-7.3.19-1 +19
    • Red Hat Enterprise Linux (v. 5 server) postgresql-8.1.9-1.el5, postgresql-8.1.9-1.el5.i386, postgresql-8.1.9-1.el5.ia64 +37
    • Red Hat Enterprise Linux AS version 3 rh-postgresql-7.3.19-1, rh-postgresql-7.3.19-1.i386, rh-postgresql-7.3.19-1.ia64 +41
    • Red Hat Enterprise Linux AS version 4 postgresql-7.4.17-1.RHEL4.1, postgresql-7.4.17-1.RHEL4.1.i386, postgresql-7.4.17-1.RHEL4.1.ia64 +41
    • Red Hat Enterprise Linux Desktop (v. 5 client) postgresql-8.1.9-1.el5, postgresql-8.1.9-1.el5.i386, postgresql-contrib-8.1.9-1.el5 +9
    • Red Hat Enterprise Linux Desktop Workstation (v. 5 client) postgresql-8.1.9-1.el5, postgresql-devel-8.1.9-1.el5, postgresql-devel-8.1.9-1.el5.i386 +6
    • Red Hat Enterprise Linux Desktop version 4 postgresql-7.4.17-1.RHEL4.1, postgresql-7.4.17-1.RHEL4.1.i386, postgresql-contrib-7.4.17-1.RHEL4.1 +19
    • Red Hat Enterprise Linux ES version 3 rh-postgresql-7.3.19-1, rh-postgresql-7.3.19-1.i386, rh-postgresql-7.3.19-1.ia64 +30
    • Red Hat Enterprise Linux ES version 4 postgresql-7.4.17-1.RHEL4.1, postgresql-7.4.17-1.RHEL4.1.i386, postgresql-7.4.17-1.RHEL4.1.ia64 +30
    • Red Hat Enterprise Linux WS version 3 rh-postgresql-7.3.19-1, rh-postgresql-7.3.19-1.i386, rh-postgresql-7.3.19-1.ia64 +30
    • Red Hat Enterprise Linux WS version 4 postgresql-7.4.17-1.RHEL4.1, postgresql-7.4.17-1.RHEL4.1.i386, postgresql-7.4.17-1.RHEL4.1.ia64 +30
  • RHSA-2007:0337 Released 2007-05-03 · Red Hat rating Moderate
    postgresql security update
    • Red Hat Application Stack v1 for Enterprise Linux AS (v.4) postgresql-8.1.9-1.el4s1.1, postgresql-8.1.9-1.el4s1.1.i386, postgresql-contrib-8.1.9-1.el4s1.1 +17
    • Red Hat Application Stack v1 for Enterprise Linux ES (v.4) postgresql-8.1.9-1.el4s1.1, postgresql-8.1.9-1.el4s1.1.i386, postgresql-contrib-8.1.9-1.el4s1.1 +17

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Application Stack v1 for Enterprise Linux AS (v.4)Fixed RHSA-2007:0337
Red Hat Application Stack v1 for Enterprise Linux ES (v.4)Fixed RHSA-2007:0337
Red Hat Desktop version 3Fixed RHSA-2007:0336
Red Hat Enterprise Linux (v. 5 server)Fixed RHSA-2007:0336
Red Hat Enterprise Linux AS version 3Fixed RHSA-2007:0336
Red Hat Enterprise Linux AS version 4Fixed RHSA-2007:0336
Red Hat Enterprise Linux Desktop (v. 5 client)Fixed RHSA-2007:0336
Red Hat Enterprise Linux Desktop Workstation (v. 5 client)Fixed RHSA-2007:0336
Red Hat Enterprise Linux Desktop version 4Fixed RHSA-2007:0336
Red Hat Enterprise Linux ES version 3Fixed RHSA-2007:0336
Red Hat Enterprise Linux ES version 4Fixed RHSA-2007:0336
Red Hat Enterprise Linux WS version 3Fixed RHSA-2007:0336
Red Hat Enterprise Linux WS version 4Fixed RHSA-2007:0336

Timeline

  1. 2026-10-02 Threatist record created from CVE-2007-2138
  2. 2026-10-03 Alias added: GHSA-2hq5-m4w6-6x9c
  3. 2026-11-07 EPSS moved to the 90th–95th percentile

References

Sources