Every CVE Search/ Get API key

CVE-2007-2692

The mysql_change_db function in MySQL 5.0.x before 5.0.40 and 5.1.x before 5.1.18 does not...

6.0 Medium

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.

Exploit likelihood

1.88%Down 0.6 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 6.0

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.

Record
CVE-2007-2692
CVSS 2.0
6.0 MediumAV:N/AC:M/Au:S/C:P/I:P/A:P
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2007-2692
Updated
2026-11-02
EUVDEUVD-2007-2684 No score

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.

Record
EUVD-2007-2684
Updated
2026-11-03
GitHub AdvisoriesGHSA-p759-pfvw-7vmx No score

The mysql_change_db function in MySQL 5.0.x before 5.0.40 and 5.1.x before 5.1.18 does not...

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.

Record
GHSA-p759-pfvw-7vmx
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
mysql-dfsg-5.0
Debian:4.0
From an advisory covering 6 CVEs
before 5.0.32-7etch3, plus listed versions
5.0.32-7etch15.0.32-7etch3~bpo31+1
5.0.32-7etch3
mysql-dfsg
Debian:3.1
From an advisory covering 6 CVEs
before 4.0.24-10sarge3, plus listed versions
4.0.24-104.0.24-10sarge14.0.24-10sarge2
4.0.24-10sarge3
mysql-dfsg-4.1
Debian:3.1
From an advisory covering 6 CVEs
before 4.1.11a-4sarge8, plus listed versions
4.1.11a-44.1.11a-4sarge14.1.11a-4sarge24.1.11a-4sarge34.1.11a-4sarge44.1.11a-4sarge54.1.11a-4sarge7
4.1.11a-4sarge8
mysql
Red Hat:rhel_application_stack:1
From an advisory covering 5 CVEs
before 0:5.0.44-1.el4s1.1
0:5.0.44-1.el4s1.1
mysql-bench
Red Hat:rhel_application_stack:1
From an advisory covering 5 CVEs
before 0:5.0.44-1.el4s1.1
0:5.0.44-1.el4s1.1
mysql-cluster
Red Hat:rhel_application_stack:1
From an advisory covering 5 CVEs
before 0:5.0.44-1.el4s1.1
0:5.0.44-1.el4s1.1
mysql-debuginfo
Red Hat:rhel_application_stack:1
From an advisory covering 5 CVEs
before 0:5.0.44-1.el4s1.1
0:5.0.44-1.el4s1.1
mysql-devel
Red Hat:rhel_application_stack:1
From an advisory covering 5 CVEs
before 0:5.0.44-1.el4s1.1
0:5.0.44-1.el4s1.1
mysql-libs
Red Hat:rhel_application_stack:1
From an advisory covering 5 CVEs
before 0:5.0.44-1.el4s1.1
0:5.0.44-1.el4s1.1
mysql-server
Red Hat:rhel_application_stack:1
From an advisory covering 5 CVEs
before 0:5.0.44-1.el4s1.1
0:5.0.44-1.el4s1.1
Show 15 moreShow less
Affected packages
PackageAffectedFixed
mysql-test
Red Hat:rhel_application_stack:1
From an advisory covering 5 CVEs
before 0:5.0.44-1.el4s1.1
0:5.0.44-1.el4s1.1
mysql
Red Hat:enterprise_linux:5::client_workstation
From an advisory covering 10 CVEs
before 0:5.0.45-7.el5
0:5.0.45-7.el5
mysql-bench
Red Hat:enterprise_linux:5::client_workstation
From an advisory covering 10 CVEs
before 0:5.0.45-7.el5
0:5.0.45-7.el5
mysql-debuginfo
Red Hat:enterprise_linux:5::client_workstation
From an advisory covering 10 CVEs
before 0:5.0.45-7.el5
0:5.0.45-7.el5
mysql-devel
Red Hat:enterprise_linux:5::client_workstation
From an advisory covering 10 CVEs
before 0:5.0.45-7.el5
0:5.0.45-7.el5
mysql-server
Red Hat:enterprise_linux:5::client_workstation
From an advisory covering 10 CVEs
before 0:5.0.45-7.el5
0:5.0.45-7.el5
mysql-test
Red Hat:enterprise_linux:5::client_workstation
From an advisory covering 10 CVEs
before 0:5.0.45-7.el5
0:5.0.45-7.el5
mysql
Red Hat:enterprise_linux:5::client
From an advisory covering 10 CVEs
before 0:5.0.45-7.el5
0:5.0.45-7.el5
mysql-debuginfo
Red Hat:enterprise_linux:5::client
From an advisory covering 10 CVEs
before 0:5.0.45-7.el5
0:5.0.45-7.el5
mysql
Red Hat:enterprise_linux:5::server
From an advisory covering 10 CVEs
before 0:5.0.45-7.el5
0:5.0.45-7.el5
mysql-bench
Red Hat:enterprise_linux:5::server
From an advisory covering 10 CVEs
before 0:5.0.45-7.el5
0:5.0.45-7.el5
mysql-debuginfo
Red Hat:enterprise_linux:5::server
From an advisory covering 10 CVEs
before 0:5.0.45-7.el5
0:5.0.45-7.el5
mysql-devel
Red Hat:enterprise_linux:5::server
From an advisory covering 10 CVEs
before 0:5.0.45-7.el5
0:5.0.45-7.el5
mysql-server
Red Hat:enterprise_linux:5::server
From an advisory covering 10 CVEs
before 0:5.0.45-7.el5
0:5.0.45-7.el5
mysql-test
Red Hat:enterprise_linux:5::server
From an advisory covering 10 CVEs
before 0:5.0.45-7.el5
0:5.0.45-7.el5

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
affected, aliases, facts, references, titleGitHub Advisories, OSV
first indexedCVE List, NVD

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2007-2692 is a medium vulnerability (CVSS 6.0) in Mysql, published May 16, 2007. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.88%, the 79th percentile. No source names a fixed version.

References

Show 73 moreShow less
MoveEnter Open