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 restore THD::db_access privileges when returning…
Noroxi assessment
Priority: Monitor (action score 25/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 1.8% (FIRST EPSS); higher than 79.8% of all records.
- Fixed version: mysql-dfsg (Debian:3.1) 4.0.24-10sarge3; mysql-dfsg-4.1 (Debian:3.1) 4.1.11a-4sarge8; mysql-dfsg-5.0 (Debian:4.0) 5.0.32-7etch3.
Low priority for now. Upgrade to mysql-dfsg (Debian:3.1) 4.0.24-10sarge3; mysql-dfsg-4.1 (Debian:3.1) 4.1.11a-4sarge8; mysql-dfsg-5.0 (Debian:4.0) 5.0.32-7etch3 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- May 15, 2007
- Updated
- Jun 16, 2026
- EPSS
- 1.8% · 79th percentile
- CWE
- —
Report tools
Action score
25
Low priority for now.
- CVSS
- 24 / 40 · 6.0 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 1.8%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is MySQL on your server exposed to the internet?Run a port scan
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
Using mysql? Add it to your stack and be the first to know about CVEs like this one. (MySQL)
Is MySQL on your server exposed to the internet?
The free port scanner finds the open ports on your server and matches the service versions it can read against known vulnerabilities. No account needed.
Run a port scanAffected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- mysql mysql5.0.0
- mysql mysql5.0.1
- mysql mysql5.0.10
- mysql mysql5.0.15
- mysql mysql5.0.16
- mysql mysql5.0.17
- mysql mysql5.0.2
- mysql mysql5.0.20
+12 more rows
- mysql mysql5.0.22.1.0.1
- mysql mysql5.0.24
- mysql mysql5.0.3
- mysql mysql5.0.4
- mysql mysql5.0.5
- mysql mysql5.0.5.0.21
- mysql mysql5.1.5
- oracle mysql5.0.0
- oracle mysql5.0.11
- oracle mysql5.0.12
- oracle mysql5.0.13
- oracle mysql5.0.14
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:3.1 | mysql-dfsg | before 4.0.24-10sarge3 | 4.0.24-10sarge3 |
| Debian:3.1 | mysql-dfsg-4.1 | before 4.1.11a-4sarge8 | 4.1.11a-4sarge8 |
| Debian:4.0 | mysql-dfsg-5.0 | before 5.0.32-7etch3 | 5.0.32-7etch3 |
| Red Hat:enterprise_linux:5::client_workstation | mysql | before 0:5.0.45-7.el5 | 0:5.0.45-7.el5 |
| Red Hat:enterprise_linux:5::client_workstation | mysql-bench | before 0:5.0.45-7.el5 | 0:5.0.45-7.el5 |
| Red Hat:enterprise_linux:5::client_workstation | mysql-debuginfo | before 0:5.0.45-7.el5 | 0:5.0.45-7.el5 |
| Red Hat:enterprise_linux:5::client_workstation | mysql-devel | before 0:5.0.45-7.el5 | 0:5.0.45-7.el5 |
| Red Hat:enterprise_linux:5::client_workstation | mysql-server | before 0:5.0.45-7.el5 | 0:5.0.45-7.el5 |
| Red Hat:enterprise_linux:5::client_workstation | mysql-test | before 0:5.0.45-7.el5 | 0:5.0.45-7.el5 |
| Red Hat:rhel_application_stack:1 | mysql | before 0:5.0.44-1.el4s1.1 | 0:5.0.44-1.el4s1.1 |
| Red Hat:rhel_application_stack:1 | mysql-bench | before 0:5.0.44-1.el4s1.1 | 0:5.0.44-1.el4s1.1 |
| Red Hat:rhel_application_stack:1 | mysql-cluster | before 0:5.0.44-1.el4s1.1 | 0:5.0.44-1.el4s1.1 |
| Red Hat:rhel_application_stack:1 | mysql-debuginfo | before 0:5.0.44-1.el4s1.1 | 0:5.0.44-1.el4s1.1 |
| Red Hat:rhel_application_stack:1 | mysql-devel | before 0:5.0.44-1.el4s1.1 | 0:5.0.44-1.el4s1.1 |
| Red Hat:rhel_application_stack:1 | mysql-libs | before 0:5.0.44-1.el4s1.1 | 0:5.0.44-1.el4s1.1 |
| Red Hat:rhel_application_stack:1 | mysql-server | before 0:5.0.44-1.el4s1.1 | 0:5.0.44-1.el4s1.1 |
| Red Hat:rhel_application_stack:1 | mysql-test | before 0:5.0.44-1.el4s1.1 | 0:5.0.44-1.el4s1.1 |
Same product
mysql: all recordsOther highest-scoring records for the same primary product.
- CVE-2004-0627The check_scramble_323 function in MySQL 4.1.x before 4.1.3, and 5.0, allows remote attackers to bypass authentication via a zero-length…61This week
- CVE-2003-0780Buffer overflow in get_salt_from_password from sql_acl.cc for MySQL 4.0.14 and earlier, and 3.23.x, allows attackers with ALTER TABLE…60This week
- CVE-2004-0628Stack-based buffer overflow in MySQL 4.1.x before 4.1.3, and 5.0, allows remote attackers to cause a denial of service (crash) and possibly…42Plan
Published before and after this one in the same product
- ← EarlierCVE-2007-1420Mar 12, 2007 · MySQL 5.x before 5.0.36 allows local users to cause a denial of service (database crash) by performing information_schema table subselects…8Monitor
- ← EarlierCVE-2007-2691May 15, 2007 · MySQL before 4.1.23, 5.0.x before 5.0.42, and 5.1.x before 5.1.18 does not require the DROP privilege for RENAME TABLE statements, which…20Monitor
- Later →CVE-2007-2693May 15, 2007 · MySQL before 5.1.18 allows remote authenticated users without SELECT privileges to obtain sensitive information from partitioned tables via…15Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:mysql-dfsg | 4.0.24-10sarge3 · Debian:3.1 | Package registry (OSV) |
| debian:mysql-dfsg-4.1 | 4.1.11a-4sarge8 · Debian:3.1 | Package registry (OSV) |
| debian:mysql-dfsg-5.0 | 5.0.32-7etch3 · Debian:4.0 | Package registry (OSV) |
| red hat:mysql | 0:5.0.44-1.el4s1.1 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:mysql-bench | 0:5.0.44-1.el4s1.1 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:mysql-cluster | 0:5.0.44-1.el4s1.1 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:mysql-debuginfo | 0:5.0.44-1.el4s1.1 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:mysql-devel | 0:5.0.44-1.el4s1.1 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:mysql-libs | 0:5.0.44-1.el4s1.1 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:mysql-server | 0:5.0.44-1.el4s1.1 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
| red hat:mysql-test | 0:5.0.44-1.el4s1.1 · Red Hat:rhel_application_stack:1 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
If successful
- Confidentiality
- P · data can be read
- Integrity
- P · data or configuration can be modified
- Availability
- P · the service can be disrupted
- Attack complexity
- M
- Confidentiality impact
- P
- Integrity impact
- P
- Availability impact
- P
Weakness class (CWE)
—
CVSS vector
AV:N/AC:M/Au:S/C:P/I:P/A:P
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (19 more)Show less
- dev.mysql.com/doc/refman/5.1/en/news-5-1-18.html
- lists.mysql.com/announce/470
- lists.opensuse.org/opensuse-security-announce/2008-02/msg00003.html
- osvdb.org/34765
- secunia.com/advisories/25301
- secunia.com/advisories/26073
- secunia.com/advisories/26430
- secunia.com/advisories/27823
- secunia.com/advisories/28637
- secunia.com/advisories/28838
- secunia.com/advisories/29443
- secunia.com/advisories/30351
- www.debian.org/security/2007/dsa-1413
- www.mandriva.com/security/advisories?name=MDVSA-2008:028
- www.redhat.com/support/errata/RHSA-2007-0894.html
- www.redhat.com/support/errata/RHSA-2008-0364.html
- www.securityfocus.com/archive/1/473874/100/0/threaded
- www.securityfocus.com/bid/24011
- www.securitytracker.com/id?1018070
Vendor advisories and official records. Exploit/PoC links are deliberately left out.