GLSA-200606-13 : MySQL: SQL Injection

high Nessus Plugin ID 21706

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200606-13 (MySQL: SQL Injection)

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

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.
Workaround :

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.

Solution

All MySQL users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=dev-db/mysql-4.1.20'

See Also

https://security.gentoo.org/glsa/200606-13

Plugin Details

Severity: High

ID: 21706

File Name: gentoo_GLSA-200606-13.nasl

Version: 1.15

Type: local

Published: 6/16/2006

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.8

CVSS v2

Risk Factor: High

Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:mysql, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 6/11/2006

Vulnerability Publication Date: 6/1/2006

Reference Information

CVE: CVE-2006-2753

GLSA: 200606-13