mysql SECURITY INVOKER functions do not drop privileges
Published May 16, 2007
6.0
MEDIUMCVSS 2.0
EPSS 1.88%
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.
Affected products
No data.
- 5.0.0
- 5.0.1
- 5.0.2
- 5.0.3
- 5.0.4
- 5.0.5
- 5.0.5.0.21
- 5.0.10
- 5.0.15
- 5.0.16
- 5.0.17
- 5.0.20
- 5.0.22.1.0.1
- 5.0.24
- 5.1.5
- 5.0.0
- 5.0.3
- 5.0.6
- 5.0.7
- 5.0.8
- 5.0.9
- 5.0.11
- 5.0.12
- 5.0.13
- 5.0.14
- 5.0.18
- 5.0.19
- 5.0.21
- 5.0.22
- 5.0.27
- 5.0.33
- 5.0.37
- 5.1.1
- 5.1.2
- 5.1.3
- 5.1.4
- 5.1.6
- 5.1.7
- 5.1.8
- 5.1.9
- 5.1.10
- 5.1.11
- 5.1.12
- 5.1.13
- 5.1.14
- 5.1.15
- 5.1.16
- 5.1.17
No data.
Red Hat Enterprise Linux 5
mysql-0:5.0.45-7.el5
Fixed · RHSA-2008:0364
Red Hat Web Application Stack for RHEL 4
mysql-0:5.0.44-1.el4s1.1
Fixed · RHSA-2007:0894
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | mysql-0:5.0.45-7.el5 | Fixed | RHSA-2008:0364 |
| Red Hat Web Application Stack for RHEL 4 | mysql-0:5.0.44-1.el4s1.1 | Fixed | RHSA-2007:0894 |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue did not affect mysql packages as shipped in Red Hat Enterprise Linux 2.1, 3 and 4.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:M/Au:S/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 3, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (19 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 1.88% (0.01881) | 78.74th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.88% (0.01881) | 76.68th | v5 (v2026.06.15) |
| Mar 30, 2025 | 0.58% (0.00581) | 66.37th | v4 (v2025.03.14) |
| Mar 29, 2025 | 1.94% (0.01942) | 72.49th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.58% (0.00581) | 67.03th | v4 (v2025.03.14) |
| Jan 19, 2025 | 4.10% (0.04103) | 92.11th | v3 (v2023.03.01) |
| Nov 25, 2024 | 6.68% (0.06683) | 94.06th | v3 (v2023.03.01) |
| Aug 19, 2024 | 5.22% (0.05218) | 93.13th | v3 (v2023.03.01) |
| Jul 11, 2024 | 6.28% (0.06282) | 93.68th | v3 (v2023.03.01) |
| Apr 26, 2024 | 6.68% (0.06683) | 93.75th | v3 (v2023.03.01) |
| Mar 19, 2024 | 1.45% (0.01453) | 86.37th | v3 (v2023.03.01) |
| Feb 10, 2024 | 1.08% (0.01083) | 83.87th | v3 (v2023.03.01) |
| Jan 2, 2024 | 0.83% (0.00835) | 80.18th | v3 (v2023.03.01) |
| Oct 17, 2023 | 0.75% (0.00748) | 78.85th | v3 (v2023.03.01) |
| May 21, 2023 | 0.53% (0.00525) | 73.57th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.48% (0.00485) | 72.25th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.53% (0.02528) | 81.92th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.53% (0.02528) | 80.15th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.53% (0.02528) | 58.66th | v2 (v2022.01.01) |
No CWE recorded.
References (29)
- http://bugs.mysql.com/bug.php?id=27337 x_refsource_MISC
- http://dev.mysql.com/doc/refman/5.1/en/news-5-1-18.html x_refsource_CONFIRM
- http://lists.mysql.com/announce/470 mailing-listx_refsource_MLIST
- http://lists.opensuse.org/opensuse-security-announce/2008-02/msg00003.html vendor-advisoryx_refsource_SUSE
- http://osvdb.org/34765 vdb-entryx_refsource_OSVDB
- http://secunia.com/advisories/25301 third-party-advisoryx_refsource_SECUNIAVendor Advisory
- http://secunia.com/advisories/26073 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/26430 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/27823 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/28637 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/28838 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/29443 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/30351 third-party-advisoryx_refsource_SECUNIA
- http://www.debian.org/security/2007/dsa-1413 vendor-advisoryx_refsource_DEBIAN
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:028 vendor-advisoryx_refsource_MANDRIVA
- http://www.redhat.com/support/errata/RHSA-2007-0894.html vendor-advisoryx_refsource_REDHAT
- http://www.redhat.com/support/errata/RHSA-2008-0364.html vendor-advisoryx_refsource_REDHAT
- http://www.securityfocus.com/archive/1/473874/100/0/threaded mailing-listx_refsource_BUGTRAQ
- http://www.securityfocus.com/bid/24011 vdb-entryx_refsource_BID
- http://www.securitytracker.com/id?1018070 vdb-entryx_refsource_SECTRACK
- http://www.ubuntu.com/usn/usn-588-1 vendor-advisoryx_refsource_UBUNTU
- http://www.vupen.com/english/advisories/2007/1804 vdb-entryx_refsource_VUPEN
- https://access.redhat.com/security/cve/CVE-2007-2692 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=241689 Issue Tracking
- https://exchange.xforce.ibmcloud.com/vulnerabilities/34348 vdb-entryx_refsource_XF
- https://issues.rpath.com/browse/RPL-1536 x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2007-2692
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9166 vdb-entrysignaturex_refsource_OVAL
- https://www.cve.org/CVERecord?id=CVE-2007-2692
Change history (0)
No recorded changes yet.