Description
MySQL 5.0.x before 5.0.51a, 5.1.x before 5.1.23, and 6.0.x before 6.0.4 does not update the DEFINER value of a view when the view is altered, which allows remote authenticated users to gain privileges via a sequence of statements including a CREATE SQL SECURITY DEFINER VIEW statement and an ALTER VIEW statement.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Rhel Application Stack 1 | mysql +6 | 5.0.44-2.el4s1.1 | RHSA-2007:1157 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP1 | mariadb104 | 10.4.30-150100.3.5.10 | SUSE-RU-2023:3956-1 |
| SLES 15 SP1 | python-mysqlclient | 1.4.6-150100.3.3.7 | SUSE-RU-2023:3956-1 |
| SLES 12 SP5 | lz4 | 1.8.0-3.5.2 | SUSE-RU-2023:4991-1 |
| SLES 12 SP5 | mariadb-connector-c | 3.1.22-2.35.1 | SUSE-RU-2023:4991-1 |
| SLES 12 SP5 | mariadb104 | 10.4.30-8.5.46 | SUSE-RU-2023:4991-1 |
| SLES 12 SP5 | python-mysqlclient | 1.3.14-8.9.2 | SUSE-RU-2023:4991-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP1 | mariadb104 | 10.4.30-150100.3.5.10 | SUSE-RU-2023:3956-1 |
| SLES for SAP 15 SP1 | python-mysqlclient | 1.4.6-150100.3.3.7 | SUSE-RU-2023:3956-1 |
| SLES for SAP 12 SP5 | lz4 | 1.8.0-3.5.2 | SUSE-RU-2023:4991-1 |
| SLES for SAP 12 SP5 | mariadb-connector-c | 3.1.22-2.35.1 | SUSE-RU-2023:4991-1 |
| SLES for SAP 12 SP5 | mariadb104 | 10.4.30-8.5.46 | SUSE-RU-2023:4991-1 |
| SLES for SAP 12 SP5 | python-mysqlclient | 1.3.14-8.9.2 | SUSE-RU-2023:4991-1 |
| SLE HPC 15 SP1 | mariadb104 | 10.4.30-150100.3.5.10 | SUSE-RU-2023:3956-1 |
| SLE HPC 15 SP1 | python-mysqlclient | 1.4.6-150100.3.3.7 | SUSE-RU-2023:3956-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | mariadb | 10.6.4-2.1 | openSUSE-SU-2024:11038-1 |
Advisories 4
- SUSE-RU-2023:4991-1 Recommended update for mariadb104 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11038-1 libmariadbd-devel-10.6.4-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-RU-2023:3956-1 Recommended update for mariadb104 SUSE / openSUSE Security Updates · Feb 4, 2026
- RHSA-2007:1157 Red Hat Security Advisory: mysql security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
References
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0040
- http://lists.mysql.com/announce/502
- GLSA-200804-04 vendor-advisory
- 29706 third-party-advisory
- mysql-definer-value-privilege-escalation(38989) vdb-entry
- 29443 third-party-advisory
- MDVSA-2008:017 vendor-advisory
- https://issues.rpath.com/browse/RPL-2187
- FEDORA-2007-4465 vendor-advisory
- RHSA-2007:1157 vendor-advisory
- http://dev.mysql.com/doc/refman/5.1/en/news-5-1-23.html
- ADV-2007-4198 vdb-entry
- FEDORA-2007-4471 vendor-advisory
- http://dev.mysql.com/doc/refman/5.0/en/releasenotes-es-5-0-52.html
- http://bugs.mysql.com/bug.php?id=29908
- 26832 vdb-entry
- 1019085 vdb-entry
- 28025 third-party-advisory
- http://dev.mysql.com/doc/refman/6.0/en/news-6-0-4.html
- 20080205 rPSA-2008-0040-1 mysql mysql-bench mysql-server mailing-list
- 28838 third-party-advisory
- USN-588-1 vendor-advisory
- 28063 third-party-advisory
- SUSE-SR:2008:003 vendor-advisory
- 28739 third-party-advisory