发布时间 :2004-11-03 00:00:00
修订时间 :2017-07-10 21:30:31

[原文]MySQL 4.x before 4.0.21, and 3.x before 3.23.49, allows attackers to cause a denial of service (crash or hang) via multiple threads that simultaneously alter MERGE table UNIONs.

[CNNVD]MySQL ALTER命令远程拒绝服务攻击漏洞(CNNVD-200411-023)


- CVSS (基础分值)

CVSS分值: 2.6 [轻微(LOW)]
机密性影响: [--]
完整性影响: [--]
可用性影响: [--]
攻击复杂度: [--]
攻击向量: [--]
身份认证: [--]

- CPE (受影响的平台与产品)

cpe:/a:mysql:mysql:3.23.49MySQL MySQL 3.23.49
cpe:/a:mysql:mysql:4.0.21MySQL MySQL 4.0.21

- OVAL (用于检测的技术细节)


- 官方数据库链接
(官方数据源) MITRE
(官方数据源) NVD
(官方数据源) CNNVD

- 其它链接及资源
(UNKNOWN)  BUGTRAQ  20041125 [USN-32-1] mysql vulnerabilities
(UNKNOWN)  BID  11357
(UNKNOWN)  XF  mysql-union-dos(17667)

- 漏洞信息

MySQL ALTER命令远程拒绝服务攻击漏洞
低危 设计错误
2004-11-03 00:00:00 2005-10-20 00:00:00

- 公告与补丁

        MySQL AB

- 漏洞信息 (F34632)

dsa-562.txt (PacketStormID:F34632)
2004-10-13 00:00:00
Lukasz Wojtow,Oleksandr Byelkin,Dean Ellis
advisory,denial of service,overflow

Debian Security Advisory DSA 562-1 - Several problems have been discovered in MySQL, a commonly used SQL database on Unix servers, including a denial of service and buffer overrun vulnerability.

Hash: SHA1

- --------------------------------------------------------------------------
Debian Security Advisory DSA 562-1                                        Martin Schulze
October 11th, 2004            
- --------------------------------------------------------------------------

Package        : mysql
Vulnerability  : several vulnerabilities
Problem-Type   : remote
Debian-specific: no
CVE ID         : CAN-2004-0835 CAN-2004-0836 CAN-2004-0837 

Severl problems have been discovered in MySQL, a commonly used SQL
database on Unix servers.  The following problems have been identified
by the Common Vulnerabilities and Exposures Project:


    Oleksandr Byelkin noticed that ALTER TABLE ... RENAME checks
    CREATE/INSERT rights of the old table instead of the new one.


    Lukasz Wojtow noticed a buffer overrun in the mysql_real_connect


    Dean Ellis noticed that multiple threads ALTERing the same (or
    different) MERGE tables to change the UNION can cause the server
    to crash or stall.

For the stable distribution (woody) these problems have been fixed in
version 3.23.49-8.8.

For the unstable distribution (sid) these problems have been fixed in
version 4.0.21-1.

We recommend that you upgrade your mysql and related packages and
restart services linking against them (e.g. Apache/PHP).

Upgrade Instructions
- --------------------

wget url
        will fetch the file for you
dpkg -i file.deb
        will install the referenced file.

If you are using the apt-get package manager, use the line for
sources.list as given below:

apt-get update
        will update the internal database
apt-get upgrade
        will install corrected packages

You may use an automated update by adding the resources from the
footer to the proper configuration.

Debian GNU/Linux 3.0 alias woody
- --------------------------------

  Source archives:
      Size/MD5 checksum:      883 adab4c7e7fcde533254e37d99f8d832b
      Size/MD5 checksum:    66315 d376044fa0d6f8a501993ab02abc4a6b
      Size/MD5 checksum: 11861035 a2820d81997779a9fdf1f4b3c321564a

  Architecture independent components:
      Size/MD5 checksum:    17262 2e5ebe0702d91a53ec449146b01a573a
      Size/MD5 checksum:  1962992 a4cacebaadf9d5988da0ed1a336b48e6

  Alpha architecture:
      Size/MD5 checksum:   278096 4ac1bf890f801a32a87b9e304da35f41
      Size/MD5 checksum:   779166 2efba3f9821343f3863c8927352bd4b9
      Size/MD5 checksum:   163880 643c6c339b4d2dc131beff973cbbe7e2
      Size/MD5 checksum:  3634956 cd912ffbb52a4f58a5a2b98ec8526815

  ARM architecture:
      Size/MD5 checksum:   238696 1a96397e60328bc6f889660d94468261
      Size/MD5 checksum:   635036 41cbebd5050bf90fc1bed870310dc102
      Size/MD5 checksum:   124314 4ad3587a1423e1302f30a7c24e443dcf
      Size/MD5 checksum:  2806658 bd143a0f5e7bac001d8870f69ebe7d69

  Intel IA-32 architecture:
      Size/MD5 checksum:   235078 5ec7d023107015d11d0168e728864ef8
      Size/MD5 checksum:   576912 3672d903045723481241a8aa2c6adf49
      Size/MD5 checksum:   122896 c3bb667905a98b2fe0c1cbc3358ae3db
      Size/MD5 checksum:  2800926 710ec1b9eeb3af57db869dffe1b4f515

  Intel IA-64 architecture:
      Size/MD5 checksum:   315430 c6dd5c44f2e15a67d54c07a15fb00beb
      Size/MD5 checksum:   848868 cda6ede74af0cc7533583d123c3d8a91
      Size/MD5 checksum:   174122 d83187efff448d4e251ac2601b4c9a73
      Size/MD5 checksum:  4000236 3ce854b000b84f2bfcc7d3dcf171b82e

  HP Precision architecture:
      Size/MD5 checksum:   281034 268ecb759196f6abf4ea1883d9e4171b
      Size/MD5 checksum:   744094 b20cd387dfc81a790bbee7c850c58240
      Size/MD5 checksum:   140948 d738b053864f5a589b57c02c9eaa96e2
      Size/MD5 checksum:  3514870 245a10f9e60311d363cbec4de95f32b8

  Motorola 680x0 architecture:
      Size/MD5 checksum:   228104 ba7e5cf2deb86b3b44377e8885063944
      Size/MD5 checksum:   558120 6dc1ad3096fd0ada76ae9175ab461ba6
      Size/MD5 checksum:   118758 96054fb6609cdb0d4c8e93a04d7d433d
      Size/MD5 checksum:  2646786 c62a9ae47d6bca54440ef3a0096aba80

  Big endian MIPS architecture:
      Size/MD5 checksum:   251310 f9dac0e4197eccd211125f8e3edfd162
      Size/MD5 checksum:   689316 b2bb4838a961655527d2f8505ff3ec47
      Size/MD5 checksum:   134238 2e5f11a0c081b3c2cdc25761cabfba51
      Size/MD5 checksum:  2848592 ce156e918b0639de9413ad9b251b8e90

  Little endian MIPS architecture:
      Size/MD5 checksum:   250972 de4eb2f6ef3d26e90787a159d4b6a0ac
      Size/MD5 checksum:   688696 04bfb0883f8b2b4c55e7433120c99f61
      Size/MD5 checksum:   134574 1230a8e666f5196d4bf612de12c313fc
      Size/MD5 checksum:  2839476 55da45664aaedc7c376c2e5c58131633

  PowerPC architecture:
      Size/MD5 checksum:   248122 cba1d3545afe87dcfc547849c9d59004
      Size/MD5 checksum:   653066 acdaf15ae0dfcced6c54159b56344030
      Size/MD5 checksum:   129780 c5fd168e75eff53b9289004674562272
      Size/MD5 checksum:  2823500 cec9d6704902e7ffe51a99aea1845abc

  IBM S/390 architecture:
      Size/MD5 checksum:   250416 c0426b03788856721ca9f3c1564b250a
      Size/MD5 checksum:   607570 6d9902585915e0cacf4d0a9ebd65ef8c
      Size/MD5 checksum:   126768 b543d42acfdc0332d7ecf3e64092a3bb
      Size/MD5 checksum:  2691372 1700e8f3756d329a8b991dff82487154

  Sun Sparc architecture:
      Size/MD5 checksum:   241594 a7d17678a6703ba32a9cccc677db7034
      Size/MD5 checksum:   616052 28c7e496d23b2af7cbdcc690e03b7d2e
      Size/MD5 checksum:   130728 c3be609ef840dd09a5c57e62728d2ad6
      Size/MD5 checksum:  2940040 c7e6aa60fa9772963bb2541d3a30336f

  These files will probably be moved into the stable distribution on
  its next update.

- ---------------------------------------------------------------------------------
For apt-get: deb stable/updates main
For dpkg-ftp: dists/stable/updates/main
Mailing list:
Package info: `apt-cache show <pkg>' and<pkg>

Version: GnuPG v1.2.5 (GNU/Linux)



- 漏洞信息

MySQL ALTER MERGE Tables to Change the UNION DoS
Remote / Network Access Denial of Service
Loss of Availability
Exploit Public

- 漏洞描述

MySQL contains a flaw that may allow a remote denial of service. The issue is triggered when an attacker uses multiple threads to ALTER the same or different MERGE tables in order to change the UNION., and will result in loss of availability for the server.

- 时间线

2004-10-11 Unknow
2004-10-11 Unknow

- 解决方案

Upgrade to version 4.0.21 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

- 相关参考

- 漏洞作者