CVE-2007-2138
publishedPostgreSQL security-definer function privilege escalation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | etch | postgresql-7.4 | Advisory build | 1:7.4.17-0etch1 | DSA-1311-1 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresqli386 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Debian | etch | postgresql-8.1 | Advisory build | 8.1.9-0etch1 | DSA-1309-1 |
| Debian | sarge | postgresql | Advisory build | 7.4.7-6sarge5 | DSA-1311-1 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresqlia64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresqlppc | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresqls390 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresqls390x | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresqlsrc | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresqlx86_64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-contribi386 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-contribia64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-contribppc | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-contribs390 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-contribs390x | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-contribx86_64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-debuginfoi386 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-debuginfoia64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-debuginfoppc | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-debuginfoppc64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-debuginfos390 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-debuginfos390x | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-debuginfox86_64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-develi386 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-develia64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-develppc | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-devels390 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-devels390x | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-develx86_64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-docsi386 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-docsia64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-docsppc | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-docss390 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-docss390x | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-docsx86_64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-jdbci386 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-jdbcia64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-jdbcppc | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-jdbcs390 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-jdbcs390x | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-jdbcx86_64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-libsi386 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-libsia64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-libsppc | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-libsppc64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-libss390 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-libss390x | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-libsx86_64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-pli386 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-plia64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-plppc | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-pls390 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-pls390x | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-plx86_64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-pythoni386 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-pythonia64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-pythonppc | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-pythons390 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-pythons390x | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-pythonx86_64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-serveri386 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-serveria64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-serverppc | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-servers390 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-servers390x | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-serverx86_64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-tcli386 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-tclia64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-tclppc | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-tcls390 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-tcls390x | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-tclx86_64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-testi386 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-testia64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-testppc | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-tests390 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-tests390x | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-3 | rh-postgresql-testx86_64 | Advisory build | 7.3.19-1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresqli386 | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresqlia64 | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresqlppc | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresqls390 | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresqls390x | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresqlsrc | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresqlx86_64 | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresql-contribi386 | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresql-contribia64 | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresql-contribppc | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresql-contribs390 | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresql-contribs390x | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresql-contribx86_64 | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresql-debuginfoi386 | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresql-debuginfoia64 | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresql-debuginfoppc | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresql-debuginfoppc64 | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresql-debuginfos390 | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresql-debuginfos390x | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresql-debuginfox86_64 | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresql-develi386 | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
| Red Hat Enterprise Linux | RHEL-4 | postgresql-develia64 | Advisory build | 7.4.17-1.RHEL4.1 | RHSA-2007:0336 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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."
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
31- RHSA-2007:0336 http://rhn.redhat.com/errata/RHSA-2007-0336.html
- 24989 http://secunia.com/advisories/24989
- 24999 http://secunia.com/advisories/24999
- 25005 http://secunia.com/advisories/25005
- 25019 http://secunia.com/advisories/25019
- 25037 http://secunia.com/advisories/25037
- 25058 http://secunia.com/advisories/25058
- 25184 http://secunia.com/advisories/25184
- 25238 http://secunia.com/advisories/25238
- 25334 http://secunia.com/advisories/25334
- 25717 http://secunia.com/advisories/25717
- 25720 http://secunia.com/advisories/25720
- 25725 http://secunia.com/advisories/25725
- GLSA-200705-12 http://security.gentoo.org/glsa/glsa-200705-12.xml
- 102894 http://sunsolve.sun.com/search/document.do?assetkey=1-26-102894-1
- http://support.avaya.com/elmodocs2/security/ASA-2007-190.htm
- DSA-1309 http://www.debian.org/security/2007/dsa-1309
- DSA-1311 http://www.debian.org/security/2007/dsa-1311
- MDKSA-2007:094 http://www.mandriva.com/security/advisories?name=MDKSA-2007:094
- http://www.postgresql.org/about/news.791
- http://www.postgresql.org/support/security.html
- RHSA-2007:0337 http://www.redhat.com/support/errata/RHSA-2007-0337.html
- 23618 http://www.securityfocus.com/bid/23618
- 1017974 http://www.securitytracker.com/id?1017974
- 2007-0015 http://www.trustix.org/errata/2007/0015/
- USN-454-1 http://www.ubuntu.com/usn/usn-454-1
- ADV-2007-1497 http://www.vupen.com/english/advisories/2007/1497
- ADV-2007-1549 http://www.vupen.com/english/advisories/2007/1549
- postgresql-searchpath-privilege-escalation(33842) https://exchange.xforce.ibmcloud.com/vulnerabilities/33842
- https://issues.rpath.com/browse/RPL-1292
- oval:org.mitre.oval:def:10090 https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10090
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ddb1b02534ba3da22611a9b325a7fb14f370a3efec3bade58301168de4be3410
- Ingested
- 23 Sep 2026, 07:38:12 UTC
- Source record
- Official CVE record