portage-ng / portage / dev-db / mysql / 8.4.11
portage-ng glsa
26 advisories reference dev-db/mysql · none place version 8.4.11 in a vulnerable range
▸ GLSA 202105-27 MySQL: Multiple vulnerabilities this version unaffected normal local, remote 2021-05-26

Multiple vulnerabilities have been found in MySQL, the worst of which could result in the arbitrary execution of code.

Announced
2021-05-26
Revised
2021-05-26
Access
local, remote
Bugs
#699876 #708090 #717628 #732974 #766339 #789243
Advisory
https://security.gentoo.org/glsa/202105-27

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 8.0.24>= 5.7.34:5.7, >= 8.0.24
dev-db/mysql-connector-c*< 8.0.24>= 8.0.24

Background

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

Description

Multiple vulnerabilities have been discovered in MySQL. Please review the CVE identifiers referenced below for details.

Impact

An attacker could possibly execute arbitrary code with the privileges of the process, escalate privileges, gain access to critical data or complete access to all MySQL server accessible data, or cause a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.7.34"

All mysql users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-8.0.24"

References

▸ GLSA 201908-24 MariaDB, MySQL: Multiple vulnerabilities this version unaffected normal local, remote 2019-08-18

Multiple vulnerabilities have been found in MariaDB and MySQL, the worst of which could result in privilege escalation.

Announced
2019-08-18
Revised
2019-08-18
Access
local, remote
Bugs
#661500 #670388 #679024
Advisory
https://security.gentoo.org/glsa/201908-24

Affected packages

PackageArchVulnerableUnaffected
dev-db/mariadb*< 10.1.38-r1, < 10.2.22>= 10.1.38-r1, >= 10.2.22
dev-db/mysql*< 5.6.42, < 5.7.24>= 5.6.42, >= 5.7.24

Background

MariaDB is an enhanced, drop-in replacement for MySQL. MySQL is a popular multi-threaded, multi-user SQL server. MySQL is a popular multi-threaded, multi-user SQL server

Description

Multiple vulnerabilities have been discovered in MariaDB and MySQL. Please review the CVE identifiers referenced below for details.

Impact

Please review the referenced CVE identifiers for details.

Workaround

There is no known workaround at this time.

Resolution

All MariaDB 10.1.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mariadb-10.1.38-r1"

All MariaDB 10.2.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mariadb-10.2.22"

All MySQL 5.6.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.6.42"

All MySQL 5.7.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.7.24"

References

▸ GLSA 201802-04 MySQL: Multiple vulnerabilities this version unaffected high local, remote 2018-02-20

Multiple vulnerabilities were found in MySQL, the worst of which may allow remote execution of arbitrary code.

Announced
2018-02-20
Revised
2018-02-20
Access
local, remote
Bugs
#616486 #625626 #634652 #644986
Advisory
https://security.gentoo.org/glsa/201802-04

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 5.6.39>= 5.6.39

Background

A fast, multi-threaded, multi-user SQL database server.

Description

Multiple vulnerabilities have been discovered in MySQL. Please review the referenced CVE identifiers for details.

Impact

A remote attacker could execute arbitrary code without authentication or cause a partial denial of service condition.

Workaround

There are no known workarounds at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.6.39"

References

▸ GLSA 201711-04 MariaDB, MySQL: Root privilege escalation this version unaffected normal remote 2017-11-10

A vulnerability was discovered in MariaDB and MySQL which may allow local users to gain root privileges.

Announced
2017-11-10
Revised
2017-11-10
Access
remote
Bugs
#635704 #635706
Advisory
https://security.gentoo.org/glsa/201711-04

Affected packages

PackageArchVulnerableUnaffected
dev-db/mariadb*< 10.0.30-r1>= 10.0.30-r1
dev-db/mysql*< 5.6.36-r1>= 5.6.36-r1

Background

MySQL is a popular multi-threaded, multi-user SQL server. MariaDB is an enhanced, drop-in replacement for MySQL.

Description

The Gentoo installation scripts before 2017-09-29 have chown calls for user-writable directory trees, which allows local users to gain privileges by leveraging access to the mysql account for creation of a link.

Impact

A local attacker could escalate privileges to root.

Workaround

There is no known workaround at this time.

Resolution

All MariaDB users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mariadb-10.0.30-r1"

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.6.36-r1"

References

▸ GLSA 201702-17 MySQL: Multiple vulnerabilities this version unaffected high local, remote 2017-02-20

Multiple vulnerabilities have been found in MySQL, the worst of which could lead to privilege escalation.

Announced
2017-02-20
Revised
2017-02-20
Access
local, remote
Bugs
#606254
Advisory
https://security.gentoo.org/glsa/201702-17

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 5.6.35>= 5.6.35

Background

MySQL is a popular multi-threaded, multi-user SQL server. MariaDB is an enhanced, drop-in replacement for MySQL.

Description

Multiple vulnerabilities have been discovered in MySQL. Please review the CVE identifiers referenced below for details.

Impact

An attacker could possibly escalate privileges, gain access to critical data or complete access to all MySQL server accessible data, or cause a Denial of Service condition via unspecified vectors.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.6.35"

References

▸ GLSA 201701-01 MariaDB and MySQL: Multiple vulnerabilities this version unaffected normal local, remote 2017-01-01

Multiple vulnerabilities have been found in MariaDB and MySQL, the worst of which could lead to the remote execution of arbitrary code.

Announced
2017-01-01
Revised
2017-01-01 (revision 2)
Access
local, remote
Bugs
#593584 #593608 #593614 #593618 #597538 #598704
Advisory
https://security.gentoo.org/glsa/201701-01

Affected packages

PackageArchVulnerableUnaffected
dev-db/mariadb*< 10.0.28>= 10.0.28
dev-db/mysql*< 5.6.34>= 5.6.34

Background

MySQL is a popular multi-threaded, multi-user SQL server. MariaDB is an enhanced, drop-in replacement for MySQL.

Description

Multiple vulnerabilities have been discovered in MariaDB and MySQL. Please review the CVE identifiers referenced below for details.

Impact

Attackers could execute arbitrary code, escalate privileges, and impact availability via unspecified vectors.

Workaround

There is no known workaround at this time.

Resolution

All MariaDB users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mariadb-10.0.28"

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.6.34"

References

▸ GLSA 201610-06 MySQL and MariaDB: Multiple vulnerabilities this version unaffected normal remote 2016-10-11

Multiple vulnerabilities have been found in MySQL and MariaDB, the worst of which could allow remote attackers to cause a Denial of Service condition or obtain sensitive information.

Announced
2016-10-11
Revised
2016-10-11
Access
remote
Bugs
#546724 #555478 #555480 #564170 #564442 #572870 #580832 #580834 #589238 #589346 #593608
Advisory
https://security.gentoo.org/glsa/201610-06

Affected packages

PackageArchVulnerableUnaffected
dev-db/mariab*—>= 10.0.27
dev-db/mariadb*< 10.0.27> 5.5.51 (revision)
dev-db/mysql*< 5.6.31>= 5.6.31

Background

MySQL is a popular multi-threaded, multi-user SQL server. MariaDB is an enhanced, drop-in replacement for MySQL.

Description

Multiple vulnerabilities have been discovered in MySQL and MariaDB. Please review the CVE identifiers referenced below for details.

Impact

A remote attacker could exploit vulnerabilities, through multiple vectors, that affect the confidentiality, integrity, and availability of MySQL and MariaDB.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.6.31"

All MariaDB users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mariadb-10.0.27"

References

▸ GLSA 201507-19 MySQL: Multiple vulnerabilities this version unaffected normal remote 2015-07-10

Multiple vulnerabilities have been found in MySQL, allowing attackers to execute arbitrary code or cause Denial of Service.

Announced
2015-07-10
Revised
2015-07-10
Access
remote
Bugs
#546722
Advisory
https://security.gentoo.org/glsa/201507-19

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 5.6.24>= 5.5.43 (revision), >= 5.6.24

Background

MySQL is a fast, multi-threaded, multi-user SQL database server.

Description

Multiple vulnerabilities have been discovered in MySQL. Please review the CVE identifiers referenced below for details.

Impact

A remote attacker could send a specially crafted request, possibly resulting in execution of arbitrary code with the privileges of the application or a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All MySQL 5.5.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.5.43"

All MySQL 5.6.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.6.24"

References

▸ GLSA 201504-05 MySQL and MariaDB: Multiple vulnerabilities this version unaffected normal remote 2015-04-11

Multiple vulnerabilities have been found in MySQL and MariaDB, the worst of which can allow remote attackers to cause a Denial of Service condition.

Announced
2015-04-11
Revised
2015-04-11
Access
remote
Bugs
#537216 #537262
Advisory
https://security.gentoo.org/glsa/201504-05

Affected packages

PackageArchVulnerableUnaffected
dev-db/mariadb*< 10.0.16>= 10.0.16, >= 5.5.49 (revision)
dev-db/mysql*< 5.6.22>= 5.6.22

Background

MySQL is a popular multi-threaded, multi-user SQL server. MariaDB is an enhanced, drop-in replacement for MySQL.

Description

Multiple vulnerabilities have been discovered in MySQL and MariaDB. Please review the CVE identifiers referenced below for details.

Impact

A remote attacker could exploit vulnerabilities to possibly cause a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.6.22"

All MariaDB users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mariadb-10.0.16"

References

▸ GLSA 201411-02 MySQL, MariaDB: Multiple vulnerabilities this version unaffected normal remote 2014-11-05

Multiple vulnerabilities have been found in the MySQL and MariaDB, possibly allowing attackers to cause unspecified impact.

Announced
2014-11-05
Revised
2014-11-05
Access
remote
Bugs
#525504
Advisory
https://security.gentoo.org/glsa/201411-02

Affected packages

PackageArchVulnerableUnaffected
dev-db/mariadb*< 5.5.40-r1>= 5.5.40-r1
dev-db/mysql*< 5.5.40>= 5.5.40

Background

MySQL is a popular multi-threaded, multi-user SQL server. MariaDB is an enhanced, drop-in replacement for MySQL.

Description

Multiple unspecified vulnerabilities have been discovered in MySQL. Please review the CVE identifiers referenced below for details.

Impact

A remote attacker could exploit these vulnerabilities to cause unspecified impact, possibly including remote execution of arbitrary code, Denial of Service, or disclosure of sensitive information.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.5.40"

All MariaDB users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mariadb-5.5.40-r1"

References

▸ GLSA 201409-04 MySQL: Multiple vulnerabilities this version unaffected normal local, remote 2014-09-04

Multiple vulnerabilities have been found in MySQL, worst of which allows local attackers to escalate their privileges.

Announced
2014-09-04
Revised
2014-09-04
Access
local, remote
Bugs
#460748 #488212 #498164 #500260 #507802 #518718
Advisory
https://security.gentoo.org/glsa/201409-04

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 5.5.39>= 5.5.39

Background

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

Description

Multiple vulnerabilities have been discovered in MySQL. Please review the CVE identifiers referenced below for details.

Impact

A local attacker could possibly gain escalated privileges. A remote attacker could send a specially crafted SQL query, possibly resulting in a Denial of Service condition. A remote attacker could entice a user to connect to specially crafted MySQL server, possibly resulting in execution of arbitrary code with the privileges of the process.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.5.39"

References

▸ GLSA 201308-06 MySQL: Multiple vulnerabilities this version unaffected high remote 2013-08-29

Multiple vulnerabilities have been found in MySQL, allowing attackers to execute arbitrary code or cause Denial of Service.

Announced
2013-08-29
Revised
2013-08-30 (revision 2)
Access
remote
Bugs
#399375 #411503 #412889 #417989 #445602 #462498 #466236 #477474
Advisory
https://security.gentoo.org/glsa/201308-06

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 5.1.70>= 5.1.70

Background

MySQL is a fast, multi-threaded, multi-user SQL database server.

Description

Multiple vulnerabilities have been discovered in MySQL. Please review the CVE identifiers referenced below for details.

Impact

A remote attacker could send a specially crafted request, possibly resulting in execution of arbitrary code with the privileges of the application or a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.1.70"

References

▸ GLSA 201201-02 MySQL: Multiple vulnerabilities this version unaffected high remote 2012-01-05

Multiple vulnerabilities were found in MySQL, some of which may allow execution of arbitrary code.

Announced
2012-01-05
Revised
2012-01-05
Access
remote
Bugs
#220813 #229329 #237166 #238117 #240407 #277717 #294187 #303747 #319489 #321791 #339717 #344987 #351413
Advisory
https://security.gentoo.org/glsa/201201-02

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 5.1.56>= 5.1.56

Background

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

Description

Multiple vulnerabilities have been discovered in MySQL. Please review the CVE identifiers referenced below for details.

Impact

An unauthenticated remote attacker may be able to execute arbitrary code with the privileges of the MySQL process, cause a Denial of Service condition, bypass security restrictions, uninstall arbitrary MySQL plugins, or conduct Man-in-the-Middle and Cross-Site Scripting attacks.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.1.56"

NOTE: This is a legacy GLSA. Updates for all affected architectures are available since May 14, 2011. It is likely that your system is already no longer affected by this issue.

References

▸ GLSA 200809-04 MySQL: Privilege bypass this version unaffected normal remote 2008-09-04

A vulnerability in MySQL might allow users to bypass privileges and gain access to other databases.

Announced
2008-09-04
Revised
2008-09-04
Access
remote
Bugs
#220399
Advisory
https://security.gentoo.org/glsa/200809-04

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 5.0.60-r1>= 5.0.60-r1

Background

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

Description

Sergei Golubchik reported that MySQL imposes no restrictions on the specification of "DATA DIRECTORY" or "INDEX DIRECTORY" in SQL "CREATE TABLE" statements.

Impact

An authenticated remote attacker could create MyISAM tables, specifying DATA or INDEX directories that contain future table files by other database users, or existing table files in the MySQL data directory, gaining access to those tables.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.0.60-r1"

References

▸ GLSA 200804-04 MySQL: Multiple vulnerabilities this version unaffected normal remote 2008-04-06

Multiple vulnerabilities in MySQL might lead to privilege escalation and Denial of Service.

Announced
2008-04-06
Revised
2008-04-06
Access
remote
Bugs
#201669
Advisory
https://security.gentoo.org/glsa/200804-04

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 5.0.54>= 5.0.54

Background

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

Description

Multiple vulnerabilities have been reported in MySQL:

  • Mattias Jonsson reported that a "RENAME TABLE" command against a table with explicit "DATA DIRECTORY" and "INDEX DIRECTORY" options would overwrite the file to which the symlink points (CVE-2007-5969).
  • Martin Friebe discovered that MySQL does not update the DEFINER value of a view when the view is altered (CVE-2007-6303).
  • Philip Stoev discovered that the federated engine expects the response of a remote MySQL server to contain a minimum number of columns in query replies (CVE-2007-6304).

Impact

An authenticated remote attacker could exploit the first vulnerability to overwrite MySQL system tables and escalate privileges, or use the second vulnerability to gain privileges via an "ALTER VIEW" statement. Remote federated MySQL servers could cause a Denial of Service in the local MySQL server by exploiting the third vulnerability.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.0.54"

References

▸ GLSA 200711-25 MySQL: Denial of service this version unaffected normal remote 2007-11-18

A Denial of Service vulnerability was found in MySQL.

Announced
2007-11-18
Revised
2007-11-18
Access
remote
Bugs
#198988
Advisory
https://security.gentoo.org/glsa/200711-25

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 5.0.44-r2>= 5.0.44-r2

Background

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

Description

Joe Gallo and Artem Russakovskii reported an error in the convert_search_mode_to_innobase() function in ha_innodb.cc in the InnoDB engine that is leading to a failed assertion when handling CONTAINS operations.

Impact

A remote authenticated attacker with ALTER privileges could send a specially crafted request to a vulnerable database server possibly leading to a Denial of Service.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.0.44-r2"

References

▸ GLSA 200708-10 MySQL: Denial of Service and information leakage this version unaffected normal remote 2007-08-16

A Denial of Service vulnerability and a table structure information leakage vulnerability were found in MySQL.

Announced
2007-08-16
Revised
2007-08-16
Access
remote
Bugs
#185333
Advisory
https://security.gentoo.org/glsa/200708-10

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 5.0.44>= 5.0.44

Background

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

Description

Dormando reported a vulnerability within the handling of password packets in the connection protocol (CVE-2007-3780). Andrei Elkin also found that the "CREATE TABLE LIKE" command didn't require SELECT privileges on the source table (CVE-2007-3781).

Impact

A remote unauthenticated attacker could use the first vulnerability to make the server crash. The second vulnerability can be used by authenticated users to obtain information on tables they are not normally able to access.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.0.44"

References

▸ GLSA 200705-11 MySQL: Two Denial of Service vulnerabilities this version unaffected normal remote 2007-05-08

Two Denial of Service vulnerabilities have been discovered in MySQL.

Announced
2007-05-08
Revised
2007-05-08
Access
remote
Bugs
#170126 #171934
Advisory
https://security.gentoo.org/glsa/200705-11

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 5.0.38>= 5.0.38, < 5.0

Background

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

Description

mu-b discovered a NULL pointer dereference in item_cmpfunc.cc when processing certain types of SQL requests. Sec Consult also discovered another NULL pointer dereference when sorting certain types of queries on the database metadata.

Impact

In both cases, a remote attacker could send a specially crafted SQL request to the server, possibly resulting in a server crash. Note that the attacker needs the ability to execute SELECT queries.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-5.0.38"

References

▸ GLSA 200608-09 MySQL: Denial of service this version unaffected normal remote 2006-08-06

An authenticated user can crash MySQL through invalid parameters to the date_format function.

Announced
2006-08-06
Revised
2006-08-07 (revision 2)
Access
remote
Bugs
#142429
Advisory
https://security.gentoo.org/glsa/200608-09

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 4.1.21>= 4.1.21, < 4.1.0

Background

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

Description

Jean-David Maillefer discovered a format string vulnerability in time.cc where MySQL fails to properly handle specially formatted user input to the date_format function.

Impact

By specifying a format string as the first parameter to the date_format function, an authenticated attacker could cause MySQL to crash, resulting in a Denial of Service.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --verbose --oneshot ">=dev-db/mysql-4.1.21"

References

▸ GLSA 200606-13 MySQL: SQL Injection this version unaffected normal remote 2006-06-11

MySQL is vulnerable to an SQL Injection flaw in the multi-byte encoding process.

Announced
2006-06-11
Revised
2006-12-13 (revision 4)
Access
remote
Bugs
#135076
Advisory
https://security.gentoo.org/glsa/200606-13

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 5.0.22>= 5.0.22, >= 4.1.20 (revision), >= 4.1.21 (revision), >= 4.1.22 (revision), < 4.1

Background

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

Description

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.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-4.1.20"

References

▸ GLSA 200605-13 MySQL: Information leakage this version unaffected low remote 2006-05-11

A MySQL server may leak information to unauthorized users.

Announced
2006-05-11
Revised
2006-05-15 (revision 4)
Access
remote
Bugs
#132146
Advisory
https://security.gentoo.org/glsa/200605-13

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 4.1.19>= 4.1.19, >= 4.0.27 (revision)

Background

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

Description

The processing of the COM_TABLE_DUMP command by a MySQL server fails to properly validate packets that arrive from the client via a network socket.

Impact

By crafting specific malicious packets an attacker could gather confidential information from the memory of a MySQL server process, for example results of queries by other users or applications. By using PHP code injection or similar techniques it would be possible to exploit this flaw through web applications that use MySQL as a database backend.

Note that on 5.x versions it is possible to overwrite the stack and execute arbitrary code with this technique. Users of MySQL 5.x are urged to upgrade to the latest available version.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version.

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-4.0.27"

References

▸ GLSA 200503-19 MySQL: Multiple vulnerabilities this version unaffected normal remote and local 2005-03-16

MySQL contains several vulnerabilities potentially leading to the overwriting of local files or to the execution of arbitrary code.

Announced
2005-03-16
Revised
2005-03-16 (revision 2)
Access
remote and local
Bugs
#84819
Advisory
https://security.gentoo.org/glsa/200503-19

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 4.0.24>= 4.0.24

Background

MySQL is a fast, multi-threaded, multi-user SQL database server.

Description

MySQL fails to properly validate input for authenticated users with INSERT and DELETE privileges (CAN-2005-0709 and CAN-2005-0710). Furthermore MySQL uses predictable filenames when creating temporary files with CREATE TEMPORARY TABLE (CAN-2005-0711).

Impact

An attacker with INSERT and DELETE privileges could exploit this to manipulate the mysql table or accessing libc calls, potentially leading to the execution of arbitrary code with the permissions of the user running MySQL. An attacker with CREATE TEMPORARY TABLE privileges could exploit this to overwrite arbitrary files via a symlink attack.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-4.0.24"

References

▸ GLSA 200501-33 MySQL: Insecure temporary file creation this version unaffected normal local 2005-01-23

MySQL is vulnerable to symlink attacks, potentially allowing a local user to overwrite arbitrary files.

Announced
2005-01-23
Revised
2005-01-23
Access
local
Bugs
#77805
Advisory
https://security.gentoo.org/glsa/200501-33

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 4.0.22-r2>= 4.0.22-r2

Background

MySQL is a fast, multi-threaded, multi-user SQL database server.

Description

Javier Fernandez-Sanguino Pena from the Debian Security Audit Project discovered that the 'mysqlaccess' script creates temporary files in world-writeable directories with predictable names.

Impact

A local attacker could create symbolic links in the temporary files directory, pointing to a valid file somewhere on the filesystem. When the mysqlaccess script is executed, this would result in the file being overwritten with the rights of the user running the software, which could be the root user.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-db/mysql-4.0.22-r2"

References

▸ GLSA 200410-22 MySQL: Multiple vulnerabilities this version unaffected high remote 2004-10-24

Several vulnerabilities including privilege abuse, Denial of Service, and potentially remote arbitrary code execution have been discovered in MySQL.

Announced
2004-10-24
Revised
2004-10-24
Access
remote
Bugs
#67062
Advisory
https://security.gentoo.org/glsa/200410-22

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 4.0.21>= 4.0.21

Background

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

Description

The following vulnerabilities were found and fixed in MySQL:

Oleksandr Byelkin found that ALTER TABLE ... RENAME checks CREATE/INSERT rights of the old table instead of the new one (CAN-2004-0835). Another privilege checking bug allowed users to grant rights on a database they had no rights on.

Dean Ellis found a defect where multiple threads ALTERing the MERGE tables to change the UNION could cause the server to crash (CAN-2004-0837). Another crash was found in MATCH ... AGAINST() queries with missing closing double quote.

Finally, a buffer overrun in the mysql_real_connect function was found by Lukasz Wojtow (CAN-2004-0836).

Impact

The privilege checking issues could be used by remote users to bypass their rights on databases. The two crashes issues could be exploited by a remote user to perform a Denial of Service attack on MySQL server. The buffer overrun issue could also be exploited as a Denial of Service attack, and may allow to execute arbitrary code with the rights of the MySQL daemon (typically, the "mysql" user).

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge sync

# emerge -pv ">=dev-db/mysql-4.0.21"
# emerge ">=dev-db/mysql-4.0.21"

References

▸ GLSA 200409-02 MySQL: Insecure temporary file creation in mysqlhotcopy this version unaffected normal local 2004-09-01

The mysqlhotcopy utility can create temporary files with predictable paths, allowing an attacker to use a symlink to trick MySQL into overwriting important data.

Announced
2004-09-01
Revised
2004-09-01
Access
local
Bugs
#60744
Advisory
https://security.gentoo.org/glsa/200409-02

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*<= 4.0.20>= 4.0.20-r1

Background

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

Description

Jeroen van Wolffelaar discovered that the MySQL database hot copy utility (mysqlhotcopy.sh), when using the scp method, uses temporary files with predictable names. A malicious local user with write access to the /tmp directory could create a symbolic link pointing to a file, which may then be overwritten. In cases where mysqlhotcopy is run as root, a malicious user could create a symlink to a critical file such as /etc/passwd and cause it to be overwritten.

Impact

A local attacker could use this vulnerability to destroy other users' data or corrupt and destroy system files, possibly leading to a denial of service condition.

Workaround

There is no known workaround at this time.

Resolution

All MySQL users should upgrade to the latest version:

# emerge sync

# emerge -pv ">=dev-db/mysql-4.0.20-r1"
# emerge ">=dev-db/mysql-4.0.20-r1"

References

▸ GLSA 200405-20 Insecure Temporary File Creation In MySQL this version unaffected normal local 2004-05-25

Two MySQL utilities create temporary files with hardcoded paths, allowing an attacker to use a symlink to trick MySQL into overwriting important data.

Announced
2004-05-25
Revised
2004-05-25
Access
local
Bugs
#46242
Advisory
https://security.gentoo.org/glsa/200405-20

Affected packages

PackageArchVulnerableUnaffected
dev-db/mysql*< 4.0.18-r2>= 4.0.18-r2

Background

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

Description

The MySQL bug reporting utility (mysqlbug) creates a temporary file to log bug reports to. A malicious local user with write access to the /tmp directory could create a symbolic link of the name mysqlbug-N pointing to a protected file, such as /etc/passwd, such that when mysqlbug creates the Nth log file, it would end up overwriting the target file. A similar vulnerability exists with the mysql_multi utility, which creates a temporary file called mysql_multi.log.

Impact

Since mysql_multi runs as root, a local attacker could use this to destroy any other users' data or corrupt and destroy system files.

Workaround

One could modify both scripts to log to a directory that users do not have write permission to, such as /var/log/mysql/.

Resolution

All users should upgrade to the latest stable version of MySQL.

# emerge sync

# emerge -pv ">=dev-db/mysql-4.0.18-r2"
# emerge ">=dev-db/mysql-4.0.18-r2"

References