MariaDB: GRANT PROXY with empty password incorrectly checks grantor's privileges
Impact
MariaDB server is a community developed fork of MySQL server. From 10.6.1 until 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2, the GRANT PROXY statement treats an IDENTIFIED clause with an empty password as though authentication were not specified, causing it to check the wrong grantor privileges. A low-privileged attacker who can name another account can exploit this authorization error to set that account's password. This issue is fixed in versions 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2.
Source excerpt · GitHub_MAffected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
MariaDB · server
| Version / range | Source status |
|---|---|
| >= 10.6.1, < 10.6.28 | affected |
| >= 10.11.1, < 10.11.19 | affected |
| >= 11.4.1, < 11.4.13 | affected |
| >= 11.8.1, < 11.8.9 | affected |
| >= 12.3.1, < 12.3.3 | affected |
| >= 13.0.1, < 13.0.2 | affected |
Original source description
MariaDB server is a community developed fork of MySQL server. From 10.6.1 until 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2, the GRANT PROXY statement treats an IDENTIFIED clause with an empty password as though authentication were not specified, causing it to check the wrong grantor privileges. A low-privileged attacker who can name another account can exploit this authorization error to set that account's password. This issue is fixed in versions 10.6.28, 10.11.19, 11.4.13, 11.8.9, 12.3.3, and 13.0.2.
References
- Security advisory github.com/MariaDB/server/security/advisories/GHSA-625w-4hgq-qwmr
- Patch github.com/MariaDB/server/commit/dbd60d0ad8daa2d01050346aa50b7b102490e456
- Release notes github.com/MariaDB/server/releases/tag/mariadb-10.11.19
- Release notes github.com/MariaDB/server/releases/tag/mariadb-10.6.28
- Release notes github.com/MariaDB/server/releases/tag/mariadb-11.4.13
- Release notes github.com/MariaDB/server/releases/tag/mariadb-11.8.9
- Release notes github.com/MariaDB/server/releases/tag/mariadb-12.3.3
- Release notes github.com/MariaDB/server/releases/tag/mariadb-13.0.2
- Source reference jira.mariadb.org/browse/MDEV-40470