{"id":"CVE-2007-2692","state":"PUBLISHED","title":"The mysql_change_db function in MySQL 5.0.x before 5.0.40 and 5.1.x before 5.1.18 does not restore THD::db_access privileges when returning from SQL SECURITY INVOKER stored routine","description":"The mysql_change_db function in MySQL 5.0.x before 5.0.40 and 5.1.x before 5.1.18 does not restore THD::db_access privileges when returning from SQL SECURITY INVOKER stored routines, which allows remote authenticated users to gain privileges.","publishedAt":"2007-05-16T01:00:00.000Z","updatedAt":"2024-08-07T13:49:57.306Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["http://secunia.com/advisories/27823","http://secunia.com/advisories/29443","http://dev.mysql.com/doc/refman/5.1/en/news-5-1-18.html","http://www.redhat.com/support/errata/RHSA-2007-0894.html","http://secunia.com/advisories/26073","http://www.mandriva.com/security/advisories?name=MDVSA-2008:028","http://lists.mysql.com/announce/470","http://www.vupen.com/english/advisories/2007/1804","https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9166","http://www.securityfocus.com/archive/1/473874/100/0/threaded","http://www.securitytracker.com/id?1018070","https://exchange.xforce.ibmcloud.com/vulnerabilities/34348","http://secunia.com/advisories/25301","http://www.debian.org/security/2007/dsa-1413","https://issues.rpath.com/browse/RPL-1536","http://secunia.com/advisories/28637","http://secunia.com/advisories/30351","http://bugs.mysql.com/bug.php?id=27337","http://secunia.com/advisories/26430","http://secunia.com/advisories/28838","http://www.ubuntu.com/usn/usn-588-1","http://osvdb.org/34765","http://lists.opensuse.org/opensuse-security-announce/2008-02/msg00003.html","http://www.redhat.com/support/errata/RHSA-2008-0364.html","http://www.securityfocus.com/bid/24011"],"weaknesses":[],"ingestedAt":"2026-10-29T19:38:30.562Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2007/2xxx/CVE-2007-2692.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2007-2692","state":"PUBLISHED","datePublished":"2007-05-16T01:00:00.000Z","dateUpdated":"2024-08-07T13:49:57.306Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2007-05-15T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"The mysql_change_db function in MySQL 5.0.x before 5.0.40 and 5.1.x before 5.1.18 does not restore THD::db_access privileges when returning from SQL SECURITY INVOKER stored routines, which allows remote authenticated users to gain privileges."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"http://secunia.com/advisories/27823","name":"27823","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://secunia.com/advisories/29443","name":"29443","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://dev.mysql.com/doc/refman/5.1/en/news-5-1-18.html","tags":["x_refsource_CONFIRM"]},{"url":"http://www.redhat.com/support/errata/RHSA-2007-0894.html","name":"RHSA-2007:0894","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://secunia.com/advisories/26073","name":"26073","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2008:028","name":"MDVSA-2008:028","tags":["vendor-advisory","x_refsource_MANDRIVA"]},{"url":"http://lists.mysql.com/announce/470","name":"[announce] 20070712 MySQL Community Server 5.0.45 has been released!","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.vupen.com/english/advisories/2007/1804","name":"ADV-2007-1804","tags":["vdb-entry","x_refsource_VUPEN"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9166","name":"oval:org.mitre.oval:def:9166","tags":["vdb-entry","signature","x_refsource_OVAL"]},{"url":"http://www.securityfocus.com/archive/1/473874/100/0/threaded","name":"20070717 rPSA-2007-0143-1 mysql mysql-bench mysql-server","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://www.securitytracker.com/id?1018070","name":"1018070","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/34348","name":"mysql-changedb-privilege-escalation(34348)","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://secunia.com/advisories/25301","name":"25301","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.debian.org/security/2007/dsa-1413","name":"DSA-1413","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://issues.rpath.com/browse/RPL-1536","tags":["x_refsource_CONFIRM"]},{"url":"http://secunia.com/advisories/28637","name":"28637","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://secunia.com/advisories/30351","name":"30351","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://bugs.mysql.com/bug.php?id=27337","tags":["x_refsource_MISC"]},{"url":"http://secunia.com/advisories/26430","name":"26430","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://secunia.com/advisories/28838","name":"28838","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.ubuntu.com/usn/usn-588-1","name":"USN-588-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://osvdb.org/34765","name":"34765","tags":["vdb-entry","x_refsource_OSVDB"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2008-02/msg00003.html","name":"SUSE-SR:2008:003","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://www.redhat.com/support/errata/RHSA-2008-0364.html","name":"RHSA-2008:0364","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.securityfocus.com/bid/24011","name":"24011","tags":["vdb-entry","x_refsource_BID"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2018-10-16T14:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2007-05-14T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2007-2692","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":"The mysql_change_db function in MySQL 5.0.x before 5.0.40 and 5.1.x before 5.1.18 does not restore THD::db_access privileges when returning from SQL SECURITY INVOKER stored routines, which allows remote authenticated users to gain privileges."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"27823","refsource":"SECUNIA","url":"http://secunia.com/advisories/27823"},{"name":"29443","refsource":"SECUNIA","url":"http://secunia.com/advisories/29443"},{"name":"http://dev.mysql.com/doc/refman/5.1/en/news-5-1-18.html","refsource":"CONFIRM","url":"http://dev.mysql.com/doc/refman/5.1/en/news-5-1-18.html"},{"name":"RHSA-2007:0894","refsource":"REDHAT","url":"http://www.redhat.com/support/errata/RHSA-2007-0894.html"},{"name":"26073","refsource":"SECUNIA","url":"http://secunia.com/advisories/26073"},{"name":"MDVSA-2008:028","refsource":"MANDRIVA","url":"http://www.mandriva.com/security/advisories?name=MDVSA-2008:028"},{"name":"[announce] 20070712 MySQL Community Server 5.0.45 has been released!","refsource":"MLIST","url":"http://lists.mysql.com/announce/470"},{"name":"ADV-2007-1804","refsource":"VUPEN","url":"http://www.vupen.com/english/advisories/2007/1804"},{"name":"oval:org.mitre.oval:def:9166","refsource":"OVAL","url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9166"},{"name":"20070717 rPSA-2007-0143-1 mysql mysql-bench mysql-server","refsource":"BUGTRAQ","url":"http://www.securityfocus.com/archive/1/473874/100/0/threaded"},{"name":"1018070","refsource":"SECTRACK","url":"http://www.securitytracker.com/id?1018070"},{"name":"mysql-changedb-privilege-escalation(34348)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/34348"},{"name":"25301","refsource":"SECUNIA","url":"http://secunia.com/advisories/25301"},{"name":"DSA-1413","refsource":"DEBIAN","url":"http://www.debian.org/security/2007/dsa-1413"},{"name":"https://issues.rpath.com/browse/RPL-1536","refsource":"CONFIRM","url":"https://issues.rpath.com/browse/RPL-1536"},{"name":"28637","refsource":"SECUNIA","url":"http://secunia.com/advisories/28637"},{"name":"30351","refsource":"SECUNIA","url":"http://secunia.com/advisories/30351"},{"name":"http://bugs.mysql.com/bug.php?id=27337","refsource":"MISC","url":"http://bugs.mysql.com/bug.php?id=27337"},{"name":"26430","refsource":"SECUNIA","url":"http://secunia.com/advisories/26430"},{"name":"28838","refsource":"SECUNIA","url":"http://secunia.com/advisories/28838"},{"name":"USN-588-1","refsource":"UBUNTU","url":"http://www.ubuntu.com/usn/usn-588-1"},{"name":"34765","refsource":"OSVDB","url":"http://osvdb.org/34765"},{"name":"SUSE-SR:2008:003","refsource":"SUSE","url":"http://lists.opensuse.org/opensuse-security-announce/2008-02/msg00003.html"},{"name":"RHSA-2008:0364","refsource":"REDHAT","url":"http://www.redhat.com/support/errata/RHSA-2008-0364.html"},{"name":"24011","refsource":"BID","url":"http://www.securityfocus.com/bid/24011"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://secunia.com/advisories/27823","name":"27823","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/29443","name":"29443","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://dev.mysql.com/doc/refman/5.1/en/news-5-1-18.html","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2007-0894.html","name":"RHSA-2007:0894","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://secunia.com/advisories/26073","name":"26073","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2008:028","name":"MDVSA-2008:028","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"]},{"url":"http://lists.mysql.com/announce/470","name":"[announce] 20070712 MySQL Community Server 5.0.45 has been released!","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2007/1804","name":"ADV-2007-1804","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9166","name":"oval:org.mitre.oval:def:9166","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/473874/100/0/threaded","name":"20070717 rPSA-2007-0143-1 mysql mysql-bench mysql-server","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.securitytracker.com/id?1018070","name":"1018070","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/34348","name":"mysql-changedb-privilege-escalation(34348)","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://secunia.com/advisories/25301","name":"25301","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.debian.org/security/2007/dsa-1413","name":"DSA-1413","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://issues.rpath.com/browse/RPL-1536","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://secunia.com/advisories/28637","name":"28637","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/30351","name":"30351","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://bugs.mysql.com/bug.php?id=27337","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://secunia.com/advisories/26430","name":"26430","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/28838","name":"28838","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.ubuntu.com/usn/usn-588-1","name":"USN-588-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"http://osvdb.org/34765","name":"34765","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2008-02/msg00003.html","name":"SUSE-SR:2008:003","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2008-0364.html","name":"RHSA-2008:0364","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://www.securityfocus.com/bid/24011","name":"24011","tags":["vdb-entry","x_refsource_BID","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-07T13:49:57.306Z"}}]}}}