PostgreSQL security-definer function privilege escalation
Published Apr 24, 2007
6.0
MEDIUMCVSS 2.0
EPSS 3.69%
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."
Affected products
No data.
Configuration 1
- < 7.3.19
- ≥ 7.4 · < 7.4.17
- ≥ 8.0 · < 8.0.13
- ≥ 8.1 · < 8.1.9
- ≥ 8.2 · < 8.2.4
Configuration 2
- 3.1
- 4.0
Configuration 3
- 6.06
- 6.10
- 7.04
No data.
Red Hat Enterprise Linux 3
rh-postgresql-0:7.3.19-1
Fixed · RHSA-2007:0336
Red Hat Enterprise Linux 4
postgresql-0:7.4.17-1.RHEL4.1
Fixed · RHSA-2007:0336
Red Hat Enterprise Linux 5
postgresql-0:8.1.9-1.el5
Fixed · RHSA-2007:0336
Red Hat Web Application Stack for RHEL 4
postgresql-0:8.1.9-1.el4s1.1
Fixed · RHSA-2007:0337
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 3 | rh-postgresql-0:7.3.19-1 | Fixed | RHSA-2007:0336 |
| Red Hat Enterprise Linux 4 | postgresql-0:7.4.17-1.RHEL4.1 | Fixed | RHSA-2007:0336 |
| Red Hat Enterprise Linux 5 | postgresql-0:8.1.9-1.el5 | Fixed | RHSA-2007:0336 |
| Red Hat Web Application Stack for RHEL 4 | postgresql-0:8.1.9-1.el4s1.1 | Fixed | RHSA-2007:0337 |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:M/Au:S/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (17 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 3.69% (0.03690) | 89.35th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.18% (0.03184) | 86.37th | v5 (v2026.06.15) |
| Mar 30, 2025 | 1.20% (0.01201) | 77.02th | v4 (v2025.03.14) |
| Mar 29, 2025 | 3.28% (0.03277) | 78.44th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.20% (0.01201) | 77.50th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.38% (0.00375) | 73.61th | v3 (v2023.03.01) |
| Jun 19, 2024 | 0.39% (0.00385) | 73.22th | v3 (v2023.03.01) |
| Apr 4, 2024 | 0.38% (0.00375) | 72.36th | v3 (v2023.03.01) |
| Feb 26, 2024 | 0.27% (0.00268) | 66.91th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.28% (0.00280) | 67.48th | v3 (v2023.03.01) |
| Jan 19, 2024 | 0.28% (0.00280) | 65.08th | v3 (v2023.03.01) |
| Dec 12, 2023 | 0.30% (0.00300) | 66.11th | v3 (v2023.03.01) |
| Apr 30, 2023 | 0.27% (0.00269) | 62.91th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.25% (0.00249) | 60.91th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.53% (0.02528) | 81.92th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.53% (0.02528) | 80.15th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.53% (0.02528) | 58.66th | v2 (v2022.01.01) |
References (35)
- http://rhn.redhat.com/errata/RHSA-2007-0336.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://secunia.com/advisories/24989 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/24999 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/25005 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/25019 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/25037 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/25058 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/25184 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/25238 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/25334 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/25717 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/25720 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/25725 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://security.gentoo.org/glsa/glsa-200705-12.xml vendor-advisoryx_refsource_GENTOOThird Party Advisory
- http://sunsolve.sun.com/search/document.do?assetkey=1-26-102894-1 vendor-advisoryx_refsource_SUNALERTBroken Link
- http://support.avaya.com/elmodocs2/security/ASA-2007-190.htm x_refsource_CONFIRMThird Party Advisory
- http://www.debian.org/security/2007/dsa-1309 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.debian.org/security/2007/dsa-1311 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:094 vendor-advisoryx_refsource_MANDRIVAThird Party Advisory
- http://www.postgresql.org/about/news.791 x_refsource_CONFIRMPatchVendor Advisory
- http://www.postgresql.org/support/security.html x_refsource_CONFIRMPatchVendor Advisory
- http://www.redhat.com/support/errata/RHSA-2007-0337.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://www.securityfocus.com/bid/23618 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id?1017974 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- http://www.trustix.org/errata/2007/0015/ vendor-advisoryx_refsource_TRUSTIXBroken Link
- http://www.ubuntu.com/usn/usn-454-1 vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- http://www.vupen.com/english/advisories/2007/1497 vdb-entryx_refsource_VUPENThird Party Advisory
- http://www.vupen.com/english/advisories/2007/1549 vdb-entryx_refsource_VUPENThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2007-2138 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=237682 Issue Tracking
- https://exchange.xforce.ibmcloud.com/vulnerabilities/33842 vdb-entryx_refsource_XFThird Party AdvisoryVDB Entry
- https://issues.rpath.com/browse/RPL-1292 x_refsource_CONFIRMBroken Link
- https://nvd.nist.gov/vuln/detail/CVE-2007-2138
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10090 vdb-entrysignaturex_refsource_OVALThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2007-2138
| Link | Providers | Tags |
|---|---|---|
| http://rhn.redhat.com/errata/RHSA-2007-0336.html | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| http://secunia.com/advisories/24989 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/24999 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/25005 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/25019 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/25037 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/25058 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/25184 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/25238 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/25334 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/25717 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/25720 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://secunia.com/advisories/25725 | third-party-advisoryx_refsource_SECUNIAThird Party Advisory | |
| http://security.gentoo.org/glsa/glsa-200705-12.xml | vendor-advisoryx_refsource_GENTOOThird Party Advisory | |
| http://sunsolve.sun.com/search/document.do?assetkey=1-26-102894-1 | vendor-advisoryx_refsource_SUNALERTBroken Link | |
| http://support.avaya.com/elmodocs2/security/ASA-2007-190.htm | x_refsource_CONFIRMThird Party Advisory | |
| http://www.debian.org/security/2007/dsa-1309 | vendor-advisoryx_refsource_DEBIANThird Party Advisory | |
| http://www.debian.org/security/2007/dsa-1311 | vendor-advisoryx_refsource_DEBIANThird Party Advisory | |
| http://www.mandriva.com/security/advisories?name=MDKSA-2007:094 | vendor-advisoryx_refsource_MANDRIVAThird Party Advisory | |
| http://www.postgresql.org/about/news.791 | x_refsource_CONFIRMPatchVendor Advisory | |
| http://www.postgresql.org/support/security.html | x_refsource_CONFIRMPatchVendor Advisory | |
| http://www.redhat.com/support/errata/RHSA-2007-0337.html | vendor-advisoryx_refsource_REDHATThird Party Advisory | |
| http://www.securityfocus.com/bid/23618 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| http://www.securitytracker.com/id?1017974 | vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry | |
| http://www.trustix.org/errata/2007/0015/ | vendor-advisoryx_refsource_TRUSTIXBroken Link | |
| http://www.ubuntu.com/usn/usn-454-1 | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| http://www.vupen.com/english/advisories/2007/1497 | vdb-entryx_refsource_VUPENThird Party Advisory | |
| http://www.vupen.com/english/advisories/2007/1549 | vdb-entryx_refsource_VUPENThird Party Advisory | |
| https://access.redhat.com/security/cve/CVE-2007-2138 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=237682 | Issue Tracking | |
| https://exchange.xforce.ibmcloud.com/vulnerabilities/33842 | vdb-entryx_refsource_XFThird Party AdvisoryVDB Entry | |
| https://issues.rpath.com/browse/RPL-1292 | x_refsource_CONFIRMBroken Link | |
| https://nvd.nist.gov/vuln/detail/CVE-2007-2138 | ||
| https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10090 | vdb-entrysignaturex_refsource_OVALThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2007-2138 |
Change history (0)
No recorded changes yet.