{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"MODERATE\"}"}}}], "affected": [{"vendor": "oraclelinux", "product": "postgresql", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "postgresql-contrib", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "postgresql-devel", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "postgresql-docs", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "postgresql-libs", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "postgresql-pl", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "postgresql-python", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "postgresql-server", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "postgresql-tcl", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "postgresql-test", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}], "references": [{"url": "https://linux.oracle.com/cve/CVE-2007-2138.html"}], "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."}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000006", "shortName": "oraclelinux", "dateUpdated": "2007-05-08T00:00:00Z", "x_subShortName": "oraclelinux"}}, {"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Moderate\"}"}}}], "affected": [{"vendor": "redhat", "product": "postgresql", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "postgresql-contrib", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "postgresql-devel", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "postgresql-docs", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "postgresql-libs", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "postgresql-pl", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "postgresql-python", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "postgresql-server", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "postgresql-tcl", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "postgresql-test", "versions": [{"status": "affected", "version": "0", "lessThan": "0:8.1.9-1.el5", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}], "references": [{"url": "https://access.redhat.com/errata/RHSA-2007:0336"}, {"url": "https://access.redhat.com/security/cve/CVE-2007-2138"}], "descriptions": [{"lang": "en", "value": "PostgreSQL is an advanced Object-Relational database management system\n(DBMS).\n\nA flaw was found in the way PostgreSQL allows authenticated users to\nexecute security-definer functions.  It was possible for an unprivileged\nuser to execute arbitrary code with the privileges of the security-definer\nfunction. (CVE-2007-2138)\n\nUsers of PostgreSQL should upgrade to these updated packages containing\nPostgreSQL version 8.1.9, 7.4.17, and 7.3.19 which corrects this issue."}], "providerMetadata": {"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "shortName": "redhat", "dateUpdated": "2007-04-23T00:00:00Z", "x_subShortName": "redhat_5"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 6, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:S/C:P/I:P/A:P", "authentication": "SINGLE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}], "affected": [{"cpes": ["cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*"], "vendor": "postgresql", "product": "postgresql", "versions": [{"status": "affected", "version": "0", "lessThan": "7.3.19", "versionType": "custom"}, {"status": "affected", "version": "7.4", "lessThan": "7.4.17", "versionType": "custom"}, {"status": "affected", "version": "8.0", "lessThan": "8.0.13", "versionType": "custom"}, {"status": "affected", "version": "8.1", "lessThan": "8.1.9", "versionType": "custom"}, {"status": "affected", "version": "8.2", "lessThan": "8.2.4", "versionType": "custom"}], "defaultStatus": "unaffected"}, {"cpes": ["cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:lts:*:*:*", "cpe:2.3:o:canonical:ubuntu_linux:6.10:*:*:*:*:*:*:*", "cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:*"], "vendor": "canonical", "product": "ubuntu_linux", "versions": [{"status": "affected", "version": "6.06"}, {"status": "affected", "version": "6.10"}, {"status": "affected", "version": "7.04"}], "defaultStatus": "unaffected"}, {"cpes": ["cpe:2.3:o:debian:debian_linux:3.1:*:*:*:*:*:*:*", "cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:*"], "vendor": "debian", "product": "debian_linux", "versions": [{"status": "affected", "version": "3.1"}, {"status": "affected", "version": "4.0"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://sunsolve.sun.com/search/document.do?assetkey=1-26-102894-1", "tags": ["broken-link"]}, {"url": "http://www.trustix.org/errata/2007/0015/", "tags": ["broken-link"]}, {"url": "https://issues.rpath.com/browse/RPL-1292", "tags": ["broken-link"]}, {"url": "http://www.postgresql.org/about/news.791", "tags": ["patch", "vendor-advisory"]}, {"url": "http://www.postgresql.org/support/security.html", "tags": ["patch", "vendor-advisory"]}, {"url": "http://rhn.redhat.com/errata/RHSA-2007-0336.html", "tags": ["third-party-advisory"]}, {"url": "http://secunia.com/advisories/24989", "tags": ["third-party-advisory"]}, {"url": "http://secunia.com/advisories/24999", "tags": ["third-party-advisory"]}, {"url": "http://secunia.com/advisories/25005", "tags": ["third-party-advisory"]}, {"url": "http://secunia.com/advisories/25019", "tags": ["third-party-advisory"]}, {"url": "http://secunia.com/advisories/25037", "tags": ["third-party-advisory"]}, {"url": "http://secunia.com/advisories/25058", "tags": ["third-party-advisory"]}, {"url": "http://secunia.com/advisories/25184", "tags": ["third-party-advisory"]}, {"url": "http://secunia.com/advisories/25238", "tags": ["third-party-advisory"]}, {"url": "http://secunia.com/advisories/25334", "tags": ["third-party-advisory"]}, {"url": "http://secunia.com/advisories/25717", "tags": ["third-party-advisory"]}, {"url": "http://secunia.com/advisories/25720", "tags": ["third-party-advisory"]}, {"url": "http://secunia.com/advisories/25725", "tags": ["third-party-advisory"]}, {"url": "http://security.gentoo.org/glsa/glsa-200705-12.xml", "tags": ["third-party-advisory"]}, {"url": "http://support.avaya.com/elmodocs2/security/ASA-2007-190.htm", "tags": ["third-party-advisory"]}, {"url": "http://www.debian.org/security/2007/dsa-1309", "tags": ["third-party-advisory"]}, {"url": "http://www.debian.org/security/2007/dsa-1311", "tags": ["third-party-advisory"]}, {"url": "http://www.mandriva.com/security/advisories?name=MDKSA-2007:094", "tags": ["third-party-advisory"]}, {"url": "http://www.redhat.com/support/errata/RHSA-2007-0337.html", "tags": ["third-party-advisory"]}, {"url": "http://www.ubuntu.com/usn/usn-454-1", "tags": ["third-party-advisory"]}, {"url": "http://www.vupen.com/english/advisories/2007/1497", "tags": ["third-party-advisory"]}, {"url": "http://www.vupen.com/english/advisories/2007/1549", "tags": ["third-party-advisory"]}, {"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10090", "tags": ["third-party-advisory"]}, {"url": "http://www.securityfocus.com/bid/23618", "tags": ["third-party-advisory", "vdb-entry"]}, {"url": "http://www.securitytracker.com/id?1017974", "tags": ["third-party-advisory", "vdb-entry"]}, {"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/33842", "tags": ["third-party-advisory", "vdb-entry"]}], "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.\""}, {"lang": "es", "value": "Vulnerabilidad de búsqueda en ruta no confiable en PostgreSQL anterior a 7.3.19, 7.4.x anterior a  7.4.17, 8.0.x anterior a 8.0.13, 8.1.x anterior a 8.1.9, y 8.2.x anterior a 8.2.4 permite a usuarios remotos validados, cuando se permite hacer la llamada a la función SECURITY DEFINER, para ganar los privilegios de la función propietaria, relacionado con \"configuración de search_path\"."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-264", "description": "CWE-264"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2007-04-24T20:19:00Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2007-2138", "state": "PUBLISHED", "dateUpdated": "2025-04-09T00:30:58Z", "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "datePublished": "2007-04-24T20:19:00Z", "assignerShortName": "mitre"}, "dataVersion": "5.0"}