Skip to content
Fencer Vulns
medium 6.0

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.1
    fixed: 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.el5
    fixed: 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

Sources

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.