CVE-2007-2692 json
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…
published 2007-05-16 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-2684
- cvss
- 6.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- mysql RHEL 5 5.0.45-7.el5
- mysql-test RHEL 5 5.0.45-7.el5
- mysql-bench RHEL 5 5.0.45-7.el5
- mysql-server RHEL 5 5.0.45-7.el5
- mysql RHEL 1 APPLICATION_STACK 5.0.44-1.el4s1.1
- mysql-libs RHEL 1 APPLICATION_STACK 5.0.44-1.el4s1.1
- mysql-test RHEL 1 APPLICATION_STACK 5.0.44-1.el4s1.1
- mysql-bench RHEL 1 APPLICATION_STACK 5.0.44-1.el4s1.1
red hat advisories RHSA-2008:0364RHSA-2007:0894
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2007-2692 updated
mysql SECURITY INVOKER functions do not drop privileges
-
Red Hat Application Stack v1 for Enterprise Linux AS (v.4) mysql 5.0.44-1.el4s1.1, mysql-libs 5.0.44-1.el4s1.1, mysql-test 5.0.44-1.el4s1.1, mysql-bench 5.0.44-1.el4s1.1, mysql-server 5.0.44-1.el4s1.1, mysql-cluster 5.0.44-1.el4s1.1 Red Hat Application Stack v1 for Enterprise Linux ES (v.4) mysql 5.0.44-1.el4s1.1, mysql-libs 5.0.44-1.el4s1.1, mysql-test 5.0.44-1.el4s1.1, mysql-bench 5.0.44-1.el4s1.1, mysql-server 5.0.44-1.el4s1.1, mysql-cluster 5.0.44-1.el4s1.1fixed: vendor fix RHSA-2007:0894
-
Red Hat Enterprise Linux (v. 5 server) mysql 5.0.45-7.el5, mysql-test 5.0.45-7.el5, mysql-bench 5.0.45-7.el5, mysql-server 5.0.45-7.el5 Red Hat Enterprise Linux Desktop (v. 5 client) mysql 5.0.45-7.el5, mysql-test 5.0.45-7.el5, mysql-bench 5.0.45-7.el5, mysql-server 5.0.45-7.el5 Red Hat Enterprise Linux Desktop Workstation (v. 5 client) mysql 5.0.45-7.el5, mysql-test 5.0.45-7.el5, mysql-bench 5.0.45-7.el5, mysql-server 5.0.45-7.el5fixed: vendor fix RHSA-2008:0364
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.88% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 6.0 | AV:N/AC:M/Au:S/C:P/I:P/A:P |
Classification
- Technology feeds
References
-
redhat.com
/support/errata/RHSA-2007-0894.html
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2008:028
vendor-advisory
-
debian.org
/security/2007/dsa-1413
vendor-advisory
-
ubuntu.com
/usn/usn-588-1
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2008-02/msg00003.html
vendor-advisory
-
redhat.com
/support/errata/RHSA-2008-0364.html
vendor-advisory
-
secunia.com
/advisories/25301
third-party-advisory, vendor-advisory
-
secunia.com
/advisories/27823
third-party-advisory
-
secunia.com
/advisories/29443
third-party-advisory
- dev.mysql.com /doc/refman/5.1/en/news-5-1-18.html
-
secunia.com
/advisories/26073
third-party-advisory
-
lists.mysql.com
/announce/470
mailing-list
-
vupen.com
/english/advisories/2007/1804
vdb-entry
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9166
vdb-entry, signature
-
securityfocus.com
/archive/1/473874/100/0/threaded
mailing-list
-
securitytracker.com
/id?1018070
vdb-entry
-
exchange.xforce.ibmcloud.com
/vulnerabilities/34348
vdb-entry
- issues.rpath.com /browse/RPL-1536
-
secunia.com
/advisories/28637
third-party-advisory
-
secunia.com
/advisories/30351
third-party-advisory
- bugs.mysql.com /bug.php?id=27337
-
secunia.com
/advisories/26430
third-party-advisory
-
secunia.com
/advisories/28838
third-party-advisory
-
osvdb.org
/34765
vdb-entry
-
securityfocus.com
/bid/24011
vdb-entry
Sources
- CVE List CVE-2007-2692
- NVD CVE-2007-2692
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.