MySQL: SQL Injection MySQL is vulnerable to an SQL Injection flaw in the multi-byte encoding process. MySQL 2006-06-11 2006-12-13 135076 remote 5.0.22 4.1.20 4.1.21 4.1.22 4.1 5.0.22

MySQL is a popular multi-threaded, multi-user SQL server.

MySQL is vulnerable to an injection flaw in mysql_real_escape() when used with multi-byte characters.

Due to a flaw in the multi-byte character process, an attacker is still able to inject arbitary SQL statements into the MySQL server for execution.

There are a few workarounds available: NO_BACKSLASH_ESCAPES mode as a workaround for a bug in mysql_real_escape_string(): SET sql_mode='NO_BACKSLASH_ESCAPES'; SET GLOBAL sql_mode='NO_BACKSLASH_ESCAPES'; and server command line options: --sql-mode=NO_BACKSLASH_ESCAPES.

All MySQL users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose ">=dev-db/mysql-4.1.20"
CVE-2006-2753 falco falco daxomatic