1 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
2 |
Gentoo Linux Security Advisory GLSA 200606-13 |
3 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
4 |
http://security.gentoo.org/ |
5 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
6 |
|
7 |
Severity: Normal |
8 |
Title: MySQL: SQL Injection |
9 |
Date: June 11, 2006 |
10 |
Bugs: #135076 |
11 |
ID: 200606-13 |
12 |
|
13 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
14 |
|
15 |
Synopsis |
16 |
======== |
17 |
|
18 |
MySQL is vulnerable to an SQL Injection flaw in the multi-byte encoding |
19 |
process. |
20 |
|
21 |
Background |
22 |
========== |
23 |
|
24 |
MySQL is a popular multi-threaded, multi-user SQL server. |
25 |
|
26 |
Affected packages |
27 |
================= |
28 |
|
29 |
------------------------------------------------------------------- |
30 |
Package / Vulnerable / Unaffected |
31 |
------------------------------------------------------------------- |
32 |
1 dev-db/mysql < 4.1.20 *>= 4.1.20 |
33 |
>= 5.0.22 |
34 |
dev-db/mysql < 5.0.22 *>= 4.1.20 |
35 |
>= 5.0.22 |
36 |
|
37 |
Description |
38 |
=========== |
39 |
|
40 |
MySQL is vulnerable to an injection flaw in mysql_real_escape() when |
41 |
used with multi-byte characters. |
42 |
|
43 |
Impact |
44 |
====== |
45 |
|
46 |
Due to a flaw in the multi-byte character process, an attacker is still |
47 |
able to inject arbitary SQL statements into the MySQL server for |
48 |
execution. |
49 |
|
50 |
Workaround |
51 |
========== |
52 |
|
53 |
There are a few workarounds available: NO_BACKSLASH_ESCAPES mode as a |
54 |
workaround for a bug in mysql_real_escape_string(): SET |
55 |
sql_mode='NO_BACKSLASH_ESCAPES'; SET GLOBAL |
56 |
sql_mode='NO_BACKSLASH_ESCAPES'; and server command line options: |
57 |
--sql-mode=NO_BACKSLASH_ESCAPES. |
58 |
|
59 |
Resolution |
60 |
========== |
61 |
|
62 |
All MySQL users should upgrade to the latest version: |
63 |
|
64 |
# emerge --sync |
65 |
# emerge --ask --oneshot --verbose ">=dev-db/mysql-4.1.20" |
66 |
|
67 |
References |
68 |
========== |
69 |
|
70 |
[ 1 ] CVE-2006-2753 |
71 |
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-2753 |
72 |
|
73 |
Availability |
74 |
============ |
75 |
|
76 |
This GLSA and any updates to it are available for viewing at |
77 |
the Gentoo Security Website: |
78 |
|
79 |
http://security.gentoo.org/glsa/glsa-200606-13.xml |
80 |
|
81 |
Concerns? |
82 |
========= |
83 |
|
84 |
Security is a primary focus of Gentoo Linux and ensuring the |
85 |
confidentiality and security of our users machines is of utmost |
86 |
importance to us. Any security concerns should be addressed to |
87 |
security@g.o or alternatively, you may file a bug at |
88 |
http://bugs.gentoo.org. |
89 |
|
90 |
License |
91 |
======= |
92 |
|
93 |
Copyright 2006 Gentoo Foundation, Inc; referenced text |
94 |
belongs to its owner(s). |
95 |
|
96 |
The contents of this document are licensed under the |
97 |
Creative Commons - Attribution / Share Alike license. |
98 |
|
99 |
http://creativecommons.org/licenses/by-sa/2.5 |