# CVE-2007-2138

- Priority: **Routine**
- Reason: Not severe (CVSS 6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2007-04-24 · Modified: 2024-08-07
- Aliases: RHSA-2007:0336, RHSA-2007:0337, DSA-1309-1, DSA-1311-1
- Record: https://cvemate.com/vulnerability/CVE-2007-2138 · JSON: https://cvemate.com/vulnerability/CVE-2007-2138/json

## Description

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

## Signals

- CVSS: 6 medium (v2.0, NVD) AV:N/AC:M/Au:S/C:P/I:P/A:P
- EPSS: 3.945%, percentile 90.733%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 30)

- canonical ubuntu\_linux: 6.06 \| 6.10 \| 7.04
- debian postgresql (Debian): \< 7.4.7-6sarge5
- debian postgresql-7.4 (Debian): \< 1:7.4.17-0etch1
- debian postgresql-8.1 (Debian): \< 8.1.9-0etch1
- debian debian\_linux: 3.1 \| 4.0
- postgresql postgresql: \< 7.3.19 \| ≥ 7.4, \< 7.4.17 \| ≥ 8.0, \< 8.0.13 \| ≥ 8.1, \< 8.1.9 \| ≥ 8.2, \< 8.2.4
- redhat postgresql (Red Hat): \< 0:7.4.17-1.RHEL4.1 \| \< 0:8.1.9-1.el5 \| \< 0:8.1.9-1.el4s1.1
- redhat postgresql-contrib (Red Hat): \< 0:7.4.17-1.RHEL4.1 \| \< 0:8.1.9-1.el5 \| \< 0:8.1.9-1.el4s1.1
- redhat postgresql-debuginfo (Red Hat): \< 0:7.4.17-1.RHEL4.1 \| \< 0:8.1.9-1.el5 \| \< 0:8.1.9-1.el4s1.1
- redhat postgresql-devel (Red Hat): \< 0:7.4.17-1.RHEL4.1 \| \< 0:8.1.9-1.el5 \| \< 0:8.1.9-1.el4s1.1
- redhat postgresql-docs (Red Hat): \< 0:7.4.17-1.RHEL4.1 \| \< 0:8.1.9-1.el5 \| \< 0:8.1.9-1.el4s1.1
- redhat postgresql-jdbc (Red Hat): \< 0:7.4.17-1.RHEL4.1
- redhat postgresql-libs (Red Hat): \< 0:7.4.17-1.RHEL4.1 \| \< 0:8.1.9-1.el5 \| \< 0:8.1.9-1.el4s1.1
- redhat postgresql-pl (Red Hat): \< 0:7.4.17-1.RHEL4.1 \| \< 0:8.1.9-1.el5 \| \< 0:8.1.9-1.el4s1.1
- redhat postgresql-python (Red Hat): \< 0:7.4.17-1.RHEL4.1 \| \< 0:8.1.9-1.el5 \| \< 0:8.1.9-1.el4s1.1
- redhat postgresql-server (Red Hat): \< 0:7.4.17-1.RHEL4.1 \| \< 0:8.1.9-1.el5 \| \< 0:8.1.9-1.el4s1.1
- redhat postgresql-tcl (Red Hat): \< 0:7.4.17-1.RHEL4.1 \| \< 0:8.1.9-1.el5 \| \< 0:8.1.9-1.el4s1.1
- redhat postgresql-test (Red Hat): \< 0:7.4.17-1.RHEL4.1 \| \< 0:8.1.9-1.el5 \| \< 0:8.1.9-1.el4s1.1
- redhat rh-postgresql (Red Hat): \< 0:7.3.19-1
- redhat rh-postgresql-contrib (Red Hat): \< 0:7.3.19-1

## References (first 20 of 42)

- <http://secunia.com/advisories/25334>
- <http://secunia.com/advisories/25717>
- <http://www.trustix.org/errata/2007/0015/>
- <http://www.postgresql.org/about/news.791>
- <http://secunia.com/advisories/25058>
- <http://security.gentoo.org/glsa/glsa-200705-12.xml>
- <http://www.mandriva.com/security/advisories?name=MDKSA-2007:094>
- <https://issues.rpath.com/browse/RPL-1292>
- <http://secunia.com/advisories/24999>
- <http://secunia.com/advisories/25037>
- <http://secunia.com/advisories/24989>
- <http://www.securityfocus.com/bid/23618>
- <http://support.avaya.com/elmodocs2/security/ASA-2007-190.htm>
- <http://www.redhat.com/support/errata/RHSA-2007-0337.html>
- <http://secunia.com/advisories/25725>
- <http://www.postgresql.org/support/security.html>
- <http://www.securitytracker.com/id?1017974>
- <https://exchange.xforce.ibmcloud.com/vulnerabilities/33842>
- <http://secunia.com/advisories/25720>
- <http://www.debian.org/security/2007/dsa-1311>

---

Data as of 2026-12-05T14:16:40.407Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
