{"id":"CVE-2007-2692","aliases":["DSA-1413-1","EUVD-2007-2684","GHSA-p759-pfvw-7vmx","RHSA-2007:0894","RHSA-2008:0364"],"status":"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...","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.","severity":{"version":"2.0","score":6,"vector":"AV:N/AC:M/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01881,"percentile":0.79606,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2007-05-16T01:00:00Z","modified":"2026-06-26T12:18:26Z","affected":[{"source":"osv","ecosystem":"Debian:4.0","package":"mysql-dfsg-5.0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.32-7etch3"}]}],"versions":["5.0.32-7etch1","5.0.32-7etch3~bpo31+1"],"bundled":6},{"source":"osv","ecosystem":"Debian:3.1","package":"mysql-dfsg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.24-10sarge3"}]}],"versions":["4.0.24-10","4.0.24-10sarge1","4.0.24-10sarge2"],"bundled":6},{"source":"osv","ecosystem":"Debian:3.1","package":"mysql-dfsg-4.1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.11a-4sarge8"}]}],"versions":["4.1.11a-4","4.1.11a-4sarge1","4.1.11a-4sarge2","4.1.11a-4sarge3","4.1.11a-4sarge4","4.1.11a-4sarge5","4.1.11a-4sarge7"],"bundled":6},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.44-1.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"mysql-bench","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.44-1.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"mysql-cluster","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.44-1.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"mysql-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.44-1.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"mysql-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.44-1.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"mysql-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.44-1.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"mysql-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.44-1.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:1","package":"mysql-test","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.44-1.el4s1.1"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client_workstation","package":"mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.45-7.el5"}]}],"bundled":10},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client_workstation","package":"mysql-bench","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.45-7.el5"}]}],"bundled":10},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client_workstation","package":"mysql-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.45-7.el5"}]}],"bundled":10},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client_workstation","package":"mysql-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.45-7.el5"}]}],"bundled":10},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client_workstation","package":"mysql-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.45-7.el5"}]}],"bundled":10},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client_workstation","package":"mysql-test","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.45-7.el5"}]}],"bundled":10},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client","package":"mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.45-7.el5"}]}],"bundled":10},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::client","package":"mysql-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.45-7.el5"}]}],"bundled":10},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.45-7.el5"}]}],"bundled":10},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"mysql-bench","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.45-7.el5"}]}],"bundled":10},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"mysql-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.45-7.el5"}]}],"bundled":10},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"mysql-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.45-7.el5"}]}],"bundled":10},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"mysql-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.45-7.el5"}]}],"bundled":10},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:5::server","package":"mysql-test","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.0.45-7.el5"}]}],"bundled":10}],"products":[{"vendor":"mysql","product":"mysql"},{"vendor":"oracle","product":"mysql"}],"references":[{"url":"http://secunia.com/advisories/27823","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/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","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://secunia.com/advisories/26073","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2008:028","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"]},{"url":"http://lists.mysql.com/announce/470","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2007/1804","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9166","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/473874/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.securitytracker.com/id?1018070","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/34348","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://secunia.com/advisories/25301","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Vendor Advisory"]},{"url":"http://www.debian.org/security/2007/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","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/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","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/28838","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.ubuntu.com/usn/usn-588-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"http://osvdb.org/34765","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2008-02/msg00003.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2008-0364.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://www.securityfocus.com/bid/24011","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-2692","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-p759-pfvw-7vmx"},{"url":"https://access.redhat.com/errata/RHSA-2007:0894","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#important","tags":["article"]},{"url":"https://rhn.redhat.com/errata/RHEA-2007-0842.html","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=241688","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=241689","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=248553","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=254108","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2007/rhsa-2007_0894.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-2691","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-2691","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-2691","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-2692","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-2692","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-3780","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-3780","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-3780","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-3781","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-3781","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-3781","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-3782","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-3782","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-3782","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2008:0364","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#low","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=194613","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=202246","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=216427","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=232603","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=240813","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=254012","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=256501","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=349121","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=434264","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=435391","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2008/rhsa-2008_0364.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2006-0903","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2006-0903","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-0903","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2006-4031","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2006-4031","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-4031","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2006-4227","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2006-4227","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-4227","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2006-7232","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2006-7232","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-7232","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-1420","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-1420","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-1420","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2007-2583","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-2583","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-2583","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2007-2692","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.","status":"published","published":"2007-05-16T01:00:00Z","modified":"2024-08-07T13:49:57.306Z","updated_at":"2026-11-02T13:32:23.14582Z"}],"euvd":[{"id":"EUVD-2007-2684","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.","status":"published","published":"2007-05-16T01:00:00Z","modified":"2024-08-07T13:49:57Z","updated_at":"2026-11-03T01:38:20.04441Z"}],"ghsa":[{"id":"GHSA-p759-pfvw-7vmx","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...","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.","status":"published","published":"2022-05-01T18:06:23Z","modified":"2023-01-31T05:03:47Z","updated_at":"2026-11-02T14:48:32.911406Z"}],"nvd":[{"id":"CVE-2007-2692","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.","status":"published","published":"2007-05-16T01:19:00Z","modified":"2026-06-16T22:40:07.867Z","cvss":[{"version":"2.0","score":6,"vector":"AV:N/AC:M/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:01:15.696607Z"}],"osv":[{"id":"DSA-1413-1","title":"mysql - multiple","status":"published","published":"2007-11-26T00:00:00Z","modified":"2026-03-09T01:01:23.546491Z","updated_at":"2026-11-02T15:46:14.285228Z"},{"id":"RHSA-2007:0894","title":"Red Hat Security Advisory: mysql security update","status":"published","published":"2024-09-15T16:55:54Z","modified":"2025-11-22T10:13:20Z","updated_at":"2026-11-02T15:52:59.70892Z"},{"id":"RHSA-2008:0364","title":"Red Hat Security Advisory: mysql security and bug fix update","status":"published","published":"2024-09-15T17:10:10Z","modified":"2026-06-26T12:18:26.552621736Z","updated_at":"2026-11-02T15:52:59.70892Z"}]}}
