{"api_version":"1","generated_at":"2026-07-23T04:25:03+00:00","cve":"CVE-2007-2138","urls":{"html":"https://cve.report/CVE-2007-2138","api":"https://cve.report/api/cve/CVE-2007-2138.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2007-2138","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2007-2138"},"summary":{"title":"CVE-2007-2138","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.\"","state":"PUBLISHED","assigner":"mitre","published_at":"2007-04-24 20:19:00","updated_at":"2026-04-23 00:35:47"},"problem_types":["CWE-264","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"6","severity":"","vector":"AV:N/AC:M/Au:S/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:P/I:P/A:P","baseScore":6,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"http://secunia.com/advisories/25238","name":"http://secunia.com/advisories/25238","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Gentoo update for postgresql - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2007:094","name":"http://www.mandriva.com/security/advisories?name=MDKSA-2007:094","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Advisories - Mandriva Linux","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://sunsolve.sun.com/search/document.do?assetkey=1-26-102894-1","name":"http://sunsolve.sun.com/search/document.do?assetkey=1-26-102894-1","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Broken Link"],"title":"#200713: Security Vulnerability in PostgreSQL SECURITY DEFINER Functions May Allow Escalation of Privileges","mime":"text/html","httpstatus":"-1","archivestatus":"200"},{"url":"http://www.debian.org/security/2007/dsa-1311","name":"http://www.debian.org/security/2007/dsa-1311","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Debian -- Security Information -- DSA-1311-1 postgresql-7.4","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://security.gentoo.org/glsa/glsa-200705-12.xml","name":"http://security.gentoo.org/glsa/glsa-200705-12.xml","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Gentoo Linux Documentation\n--\n  PostgreSQL: Privilege escalation","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.redhat.com/support/errata/RHSA-2007-0337.html","name":"http://www.redhat.com/support/errata/RHSA-2007-0337.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Support","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/25720","name":"http://secunia.com/advisories/25720","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Debian update for postgresql-8.1 - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.debian.org/security/2007/dsa-1309","name":"http://www.debian.org/security/2007/dsa-1309","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Debian -- Security Information -- DSA-1309-1 postgresql-8.1","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://support.avaya.com/elmodocs2/security/ASA-2007-190.htm","name":"http://support.avaya.com/elmodocs2/security/ASA-2007-190.htm","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"ASA-2007-190 (RHSA-2007-0336 and RHSA-2007-0337)","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.vupen.com/english/advisories/2007/1549","name":"http://www.vupen.com/english/advisories/2007/1549","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Webmail | OVH- OVH","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/33842","name":"https://exchange.xforce.ibmcloud.com/vulnerabilities/33842","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.postgresql.org/about/news.791","name":"http://www.postgresql.org/about/news.791","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Vendor Advisory"],"title":"PostgreSQL: \nNews: Security Update Releases","mime":"text/html","httpstatus":"404","archivestatus":"200"},{"url":"http://secunia.com/advisories/25019","name":"http://secunia.com/advisories/25019","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"PostgreSQL SECURITY DEFINER Functions Privilege Escalation - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://rhn.redhat.com/errata/RHSA-2007-0336.html","name":"http://rhn.redhat.com/errata/RHSA-2007-0336.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"rhn.redhat.com | Red Hat Support","mime":"text/html","httpstatus":"-1","archivestatus":"200"},{"url":"http://secunia.com/advisories/24999","name":"http://secunia.com/advisories/24999","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Trustix update for postgresql - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/23618","name":"http://www.securityfocus.com/bid/23618","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"PostgreSQL SECURITY DEFINER Function Local Privilege Escalation Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://www.securitytracker.com/id?1017974","name":"http://www.securitytracker.com/id?1017974","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"PostgreSQL Lets Remote Authenticated Users Gain Elevated SQL Privileges - SecurityTracker","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/24989","name":"http://secunia.com/advisories/24989","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"rPath update for postgresql and postgresql-server - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/25184","name":"http://secunia.com/advisories/25184","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Red Hat update for postgresql - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.vupen.com/english/advisories/2007/1497","name":"http://www.vupen.com/english/advisories/2007/1497","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Webmail | OVH- OVH","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.postgresql.org/support/security.html","name":"http://www.postgresql.org/support/security.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Vendor Advisory"],"title":"PostgreSQL: \nSecurity Information","mime":"text/html","httpstatus":"404","archivestatus":"200"},{"url":"http://www.trustix.org/errata/2007/0015/","name":"http://www.trustix.org/errata/2007/0015/","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Broken Link"],"title":"","mime":"text/plain","httpstatus":"-1","archivestatus":"200"},{"url":"http://secunia.com/advisories/25334","name":"http://secunia.com/advisories/25334","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Avaya Products PostgreSQL SECURITY DEFINER Privilege Escalation - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10090","name":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10090","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Repository  /  Oval Repository","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/25058","name":"http://secunia.com/advisories/25058","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Ubuntu update for postgresql - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/25037","name":"http://secunia.com/advisories/25037","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Sun Solaris PostgreSQL SECURITY DEFINER Privilege Escalation - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/25725","name":"http://secunia.com/advisories/25725","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Debian update for postgresql-7.4 - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://issues.rpath.com/browse/RPL-1292","name":"https://issues.rpath.com/browse/RPL-1292","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Broken Link"],"title":"","mime":"","httpstatus":"-1","archivestatus":"404"},{"url":"http://secunia.com/advisories/25717","name":"http://secunia.com/advisories/25717","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Debian update for libexif - Secunia Advisories - Vulnerability Intelligence - Secunia.com","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.ubuntu.com/usn/usn-454-1","name":"http://www.ubuntu.com/usn/usn-454-1","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"USN-454-1: PostgreSQL vulnerability | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/25005","name":"http://secunia.com/advisories/25005","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"],"title":"Mandriva update for postgresql - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-2138","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-2138","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2007","cve_id":"2138","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-07T13:23:50.862Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"25334","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/25334"},{"name":"25717","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/25717"},{"name":"2007-0015","tags":["vendor-advisory","x_refsource_TRUSTIX","x_transferred"],"url":"http://www.trustix.org/errata/2007/0015/"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://www.postgresql.org/about/news.791"},{"name":"25058","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/25058"},{"name":"GLSA-200705-12","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"],"url":"http://security.gentoo.org/glsa/glsa-200705-12.xml"},{"name":"MDKSA-2007:094","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"],"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2007:094"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://issues.rpath.com/browse/RPL-1292"},{"name":"24999","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/24999"},{"name":"25037","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/25037"},{"name":"24989","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/24989"},{"name":"23618","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/23618"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://support.avaya.com/elmodocs2/security/ASA-2007-190.htm"},{"name":"RHSA-2007:0337","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"],"url":"http://www.redhat.com/support/errata/RHSA-2007-0337.html"},{"name":"25725","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/25725"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://www.postgresql.org/support/security.html"},{"name":"1017974","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"],"url":"http://www.securitytracker.com/id?1017974"},{"name":"postgresql-searchpath-privilege-escalation(33842)","tags":["vdb-entry","x_refsource_XF","x_transferred"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/33842"},{"name":"25720","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/25720"},{"name":"DSA-1311","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"],"url":"http://www.debian.org/security/2007/dsa-1311"},{"name":"DSA-1309","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"],"url":"http://www.debian.org/security/2007/dsa-1309"},{"name":"ADV-2007-1549","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"],"url":"http://www.vupen.com/english/advisories/2007/1549"},{"name":"25019","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/25019"},{"name":"USN-454-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"],"url":"http://www.ubuntu.com/usn/usn-454-1"},{"name":"25238","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/25238"},{"name":"RHSA-2007:0336","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"],"url":"http://rhn.redhat.com/errata/RHSA-2007-0336.html"},{"name":"102894","tags":["vendor-advisory","x_refsource_SUNALERT","x_transferred"],"url":"http://sunsolve.sun.com/search/document.do?assetkey=1-26-102894-1"},{"name":"25184","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/25184"},{"name":"ADV-2007-1497","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"],"url":"http://www.vupen.com/english/advisories/2007/1497"},{"name":"oval:org.mitre.oval:def:10090","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"],"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10090"},{"name":"25005","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/25005"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2007-04-23T00:00:00.000Z","descriptions":[{"lang":"en","value":"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.\""}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2017-10-10T00:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"name":"25334","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/25334"},{"name":"25717","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/25717"},{"name":"2007-0015","tags":["vendor-advisory","x_refsource_TRUSTIX"],"url":"http://www.trustix.org/errata/2007/0015/"},{"tags":["x_refsource_CONFIRM"],"url":"http://www.postgresql.org/about/news.791"},{"name":"25058","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/25058"},{"name":"GLSA-200705-12","tags":["vendor-advisory","x_refsource_GENTOO"],"url":"http://security.gentoo.org/glsa/glsa-200705-12.xml"},{"name":"MDKSA-2007:094","tags":["vendor-advisory","x_refsource_MANDRIVA"],"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2007:094"},{"tags":["x_refsource_CONFIRM"],"url":"https://issues.rpath.com/browse/RPL-1292"},{"name":"24999","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/24999"},{"name":"25037","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/25037"},{"name":"24989","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/24989"},{"name":"23618","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/23618"},{"tags":["x_refsource_CONFIRM"],"url":"http://support.avaya.com/elmodocs2/security/ASA-2007-190.htm"},{"name":"RHSA-2007:0337","tags":["vendor-advisory","x_refsource_REDHAT"],"url":"http://www.redhat.com/support/errata/RHSA-2007-0337.html"},{"name":"25725","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/25725"},{"tags":["x_refsource_CONFIRM"],"url":"http://www.postgresql.org/support/security.html"},{"name":"1017974","tags":["vdb-entry","x_refsource_SECTRACK"],"url":"http://www.securitytracker.com/id?1017974"},{"name":"postgresql-searchpath-privilege-escalation(33842)","tags":["vdb-entry","x_refsource_XF"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/33842"},{"name":"25720","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/25720"},{"name":"DSA-1311","tags":["vendor-advisory","x_refsource_DEBIAN"],"url":"http://www.debian.org/security/2007/dsa-1311"},{"name":"DSA-1309","tags":["vendor-advisory","x_refsource_DEBIAN"],"url":"http://www.debian.org/security/2007/dsa-1309"},{"name":"ADV-2007-1549","tags":["vdb-entry","x_refsource_VUPEN"],"url":"http://www.vupen.com/english/advisories/2007/1549"},{"name":"25019","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/25019"},{"name":"USN-454-1","tags":["vendor-advisory","x_refsource_UBUNTU"],"url":"http://www.ubuntu.com/usn/usn-454-1"},{"name":"25238","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/25238"},{"name":"RHSA-2007:0336","tags":["vendor-advisory","x_refsource_REDHAT"],"url":"http://rhn.redhat.com/errata/RHSA-2007-0336.html"},{"name":"102894","tags":["vendor-advisory","x_refsource_SUNALERT"],"url":"http://sunsolve.sun.com/search/document.do?assetkey=1-26-102894-1"},{"name":"25184","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/25184"},{"name":"ADV-2007-1497","tags":["vdb-entry","x_refsource_VUPEN"],"url":"http://www.vupen.com/english/advisories/2007/1497"},{"name":"oval:org.mitre.oval:def:10090","tags":["vdb-entry","signature","x_refsource_OVAL"],"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10090"},{"name":"25005","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/25005"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2007-2138","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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.\""}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"25334","refsource":"SECUNIA","url":"http://secunia.com/advisories/25334"},{"name":"25717","refsource":"SECUNIA","url":"http://secunia.com/advisories/25717"},{"name":"2007-0015","refsource":"TRUSTIX","url":"http://www.trustix.org/errata/2007/0015/"},{"name":"http://www.postgresql.org/about/news.791","refsource":"CONFIRM","url":"http://www.postgresql.org/about/news.791"},{"name":"25058","refsource":"SECUNIA","url":"http://secunia.com/advisories/25058"},{"name":"GLSA-200705-12","refsource":"GENTOO","url":"http://security.gentoo.org/glsa/glsa-200705-12.xml"},{"name":"MDKSA-2007:094","refsource":"MANDRIVA","url":"http://www.mandriva.com/security/advisories?name=MDKSA-2007:094"},{"name":"https://issues.rpath.com/browse/RPL-1292","refsource":"CONFIRM","url":"https://issues.rpath.com/browse/RPL-1292"},{"name":"24999","refsource":"SECUNIA","url":"http://secunia.com/advisories/24999"},{"name":"25037","refsource":"SECUNIA","url":"http://secunia.com/advisories/25037"},{"name":"24989","refsource":"SECUNIA","url":"http://secunia.com/advisories/24989"},{"name":"23618","refsource":"BID","url":"http://www.securityfocus.com/bid/23618"},{"name":"http://support.avaya.com/elmodocs2/security/ASA-2007-190.htm","refsource":"CONFIRM","url":"http://support.avaya.com/elmodocs2/security/ASA-2007-190.htm"},{"name":"RHSA-2007:0337","refsource":"REDHAT","url":"http://www.redhat.com/support/errata/RHSA-2007-0337.html"},{"name":"25725","refsource":"SECUNIA","url":"http://secunia.com/advisories/25725"},{"name":"http://www.postgresql.org/support/security.html","refsource":"CONFIRM","url":"http://www.postgresql.org/support/security.html"},{"name":"1017974","refsource":"SECTRACK","url":"http://www.securitytracker.com/id?1017974"},{"name":"postgresql-searchpath-privilege-escalation(33842)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/33842"},{"name":"25720","refsource":"SECUNIA","url":"http://secunia.com/advisories/25720"},{"name":"DSA-1311","refsource":"DEBIAN","url":"http://www.debian.org/security/2007/dsa-1311"},{"name":"DSA-1309","refsource":"DEBIAN","url":"http://www.debian.org/security/2007/dsa-1309"},{"name":"ADV-2007-1549","refsource":"VUPEN","url":"http://www.vupen.com/english/advisories/2007/1549"},{"name":"25019","refsource":"SECUNIA","url":"http://secunia.com/advisories/25019"},{"name":"USN-454-1","refsource":"UBUNTU","url":"http://www.ubuntu.com/usn/usn-454-1"},{"name":"25238","refsource":"SECUNIA","url":"http://secunia.com/advisories/25238"},{"name":"RHSA-2007:0336","refsource":"REDHAT","url":"http://rhn.redhat.com/errata/RHSA-2007-0336.html"},{"name":"102894","refsource":"SUNALERT","url":"http://sunsolve.sun.com/search/document.do?assetkey=1-26-102894-1"},{"name":"25184","refsource":"SECUNIA","url":"http://secunia.com/advisories/25184"},{"name":"ADV-2007-1497","refsource":"VUPEN","url":"http://www.vupen.com/english/advisories/2007/1497"},{"name":"oval:org.mitre.oval:def:10090","refsource":"OVAL","url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10090"},{"name":"25005","refsource":"SECUNIA","url":"http://secunia.com/advisories/25005"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2007-2138","datePublished":"2007-04-24T20:00:00.000Z","dateReserved":"2007-04-18T00:00:00.000Z","dateUpdated":"2024-08-07T13:23:50.862Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2007-04-24 20:19:00","lastModifiedDate":"2026-04-23 00:35:47","problem_types":["CWE-264","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:P/I:P/A:P","baseScore":6,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"MEDIUM","exploitabilityScore":6.8,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":true,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.19","matchCriteriaId":"6BF727EC-685A-447E-98AE-3624804E4B5B"},{"vulnerable":true,"criteria":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"7.4","versionEndExcluding":"7.4.17","matchCriteriaId":"45734FD5-793E-45D3-9D27-6DFFAFF51358"},{"vulnerable":true,"criteria":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"8.0","versionEndExcluding":"8.0.13","matchCriteriaId":"806CED04-05CA-4D9A-91AE-FD1071BEC34D"},{"vulnerable":true,"criteria":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"8.1","versionEndExcluding":"8.1.9","matchCriteriaId":"080EAF40-B674-488F-A420-A0578321A4C8"},{"vulnerable":true,"criteria":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","versionStartIncluding":"8.2","versionEndExcluding":"8.2.4","matchCriteriaId":"3BB30658-2400-4CE0-8B70-606FB7505C0E"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:debian:debian_linux:3.1:*:*:*:*:*:*:*","matchCriteriaId":"A2E0C1F8-31F5-4F61-9DF7-E49B43D3C873"},{"vulnerable":true,"criteria":"cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:*","matchCriteriaId":"0F92AB32-E7DE-43F4-B877-1F41FA162EC7"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:lts:*:*:*","matchCriteriaId":"5C18C3CD-969B-4AA3-AE3A-BA4A188F8BFF"},{"vulnerable":true,"criteria":"cpe:2.3:o:canonical:ubuntu_linux:6.10:*:*:*:*:*:*:*","matchCriteriaId":"23E304C9-F780-4358-A58D-1E4C93977704"},{"vulnerable":true,"criteria":"cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:*","matchCriteriaId":"6EBDAFF8-DE44-4E80-B6BD-E341F767F501"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2007","CveId":"2138","Ordinal":"1","Title":"CVE-2007-2138","CVE":"CVE-2007-2138","Year":"2007"},"notes":[{"CveYear":"2007","CveId":"2138","Ordinal":"1","NoteData":"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.\"","Type":"Description","Title":"CVE-2007-2138"},{"CveYear":"2007","CveId":"2138","Ordinal":"2","NoteData":"2007-04-24","Type":"Other","Title":"Published"},{"CveYear":"2007","CveId":"2138","Ordinal":"3","NoteData":"2017-10-09","Type":"Other","Title":"Modified"}]}}}