Description
The executable comment feature in MySQL 5.0.x before 5.0.93 and 5.1.x before 5.1.50, when running in certain slave configurations in which the slave is running a newer version than the master, allows remote attackers to execute arbitrary SQL commands via custom comments.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Oracle MySQL < 5.1.50 - Privilege Escalation EDB-34796 · remote · Aug 3, 2010 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://bugzilla.redhat.com/show_bug.cgi?id=640177
- http://dev.mysql.com/doc/refman/5.0/en/news-5-0-93.html
- http://bugs.mysql.com/bug.php?id=49124
- SUSE-SU-2012:0984 vendor-advisory
- http://dev.mysql.com/doc/refman/5.1/en/news-5-1-50.html
- [oss-security] 20111018 Re: MySQL executable comment execution on MySQL slave server (from 2009) mailing-list
- 49179 third-party-advisory