发布时间 :2005-11-05 06:02:00
修订时间 :2011-07-14 00:00:00

[原文]The cabd_find function in cabd.c of the libmspack library (mspack) for Clam AntiVirus (ClamAV) before 0.87.1 allows remote attackers to cause a denial of service (infinite loop) via a crafted CAB file that causes cabd_find to be called with a zero length.

[CNNVD]Clam Anti-Virus ClamAV CAB文件处理拒绝服务漏洞(CNNVD-200511-127)

        Clam AntiVirus(ClamAV)是免费而且开放源代码的防毒软件。
        Clam AntiVirus (ClamAV) 0.87.1之前版本libmspack程序库(mspack)的cabd.c中的cabd_find函数,可让远程攻击者通过特制的CAB文件(可导致调用零长度的cabd_find)使系统拒绝服务(无限循环)。

- CVSS (基础分值)

CVSS分值: 4.3 [中等(MEDIUM)]
机密性影响: NONE [对系统的机密性无影响]
完整性影响: NONE [不会对系统完整性产生影响]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: MEDIUM [漏洞利用存在一定的访问条件]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

- CWE (弱点类目)

CWE-399 [资源管理错误]

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

cpe:/a:clamav:clamav:0.02 ClamAV 0.02
cpe:/a:clamav:clamav:0.86.1 ClamAV 0.86.1
cpe:/a:clamav:clamav:0.3 ClamAV ClamAV 0.3
cpe:/a:clamav:clamav:0.14 ClamAV 0.14
cpe:/a:clamav:clamav:0.84 ClamAV 0.84
cpe:/a:clamav:clamav:0.21 ClamAV 0.21
cpe:/a:clamav:clamav:0.8:rc3ClamAV 0.80 Release Candidate 3
cpe:/a:clamav:clamav:0.86.2 ClamAV 0.86.2
cpe:/a:clamav:clamav:0.70ClamAV 0.70
cpe:/a:clamav:clamav:0.80:rc2 ClamAV 0.80 Release Candidate 2
cpe:/a:clamav:clamav:0.53ClamAV 0.53
cpe:/a:clamav:clamav:0.68ClamAV 0.68
cpe:/a:clamav:clamav:0.68.1 ClamAV 0.68.1
cpe:/a:clamav:clamav:0.14:pre ClamAV 0.14 pre
cpe:/a:clamav:clamav:0.80ClamAV 0.80
cpe:/a:clamav:clamav:0.71 ClamAV 0.71
cpe:/a:clamav:clamav:0.75.1ClamAV 0.75.1
cpe:/a:clamav:clamav:0.13 ClamAV 0.13
cpe:/a:clamav:clamav:0.20ClamAV 0.20
cpe:/a:clamav:clamav:0.80:rc4 ClamAV 0.80 Release Candidate 4
cpe:/a:clamav:clamav:0.54 ClamAV ClamAV 0.54
cpe:/a:clamav:clamav:0.70:rc ClamAV 0.70 Release Candidate
cpe:/a:clamav:clamav:0.86:rc1 ClamAV 0.86 Release Candidate 1
cpe:/a:clamav:clamav:0.10 ClamAV 0.10
cpe:/a:clamav:clamav:0.75 ClamAV 0.75
cpe:/a:clamav:clamav:0.05 ClamAV 0.05
cpe:/a:clamav:clamav:0.80:rc1ClamAV 0.80 Release Candidate 1
cpe:/a:clamav:clamav:0.85ClamAV 0.85
cpe:/a:clamav:clamav:0.51 ClamAV ClamAV 0.51
cpe:/a:clamav:clamav:0.86ClamAV 0.86
cpe:/a:clamav:clamav:0.80_rc ClamAV 0.80 Release Candidate
cpe:/a:clamav:clamav:0.60pClamAV 0.60p
cpe:/a:clamav:clamav:0.67 ClamAV 0.67
cpe:/a:clamav:clamav:0.12 ClamAV 0.12
cpe:/a:clamav:clamav:0.03 ClamAV 0.03
cpe:/a:clamav:clamav:0.67-1 ClamAV ClamAV 0.67-1
cpe:/a:clamav:clamav:0.65 ClamAV 0.65
cpe:/a:clamav:clamav:0.60 ClamAV 0.60
cpe:/a:clamav:clamav:0.23 ClamAV 0.23
cpe:/a:clamav:clamav:0.80:rc3ClamAV 0.80 Release Candidate 3
cpe:/a:clamav:clamav:0.73 ClamAV 0.73
cpe:/a:clamav:clamav:0.85.1ClamAV 0.85.1
cpe:/a:clamav:clamav:0.74 ClamAV 0.74
cpe:/a:clamav:clamav:0.80:rc ClamAV 0.80 Release Candidate
cpe:/a:clamav:clamav:0.15 ClamAV 0.15
cpe:/a:clamav:clamav:0.84:rc1ClamAV 0.84 Release Candidate 1
cpe:/a:clamav:clamav:0.22ClamAV 0.22
cpe:/a:clamav:clamav:0.01 ClamAV 0.01
cpe:/a:clamav:clamav:0.81 ClamAV 0.81
cpe:/a:clamav:clamav:0.84:rc2 ClamAV 0.84 Release Candidate 2
cpe:/a:clamav:clamav:0.72 ClamAV 0.72
cpe:/a:clamav:clamav:0.81:rc1ClamAV 0.81 Release Candidate 1
cpe:/a:clamav:clamav:0.66 ClamAV ClamAV 0.66
cpe:/a:clamav:clamav:0.24 ClamAV 0.24
cpe:/a:clamav:clamav:0.52 ClamAV 0.52
cpe:/a:clamav:clamav:0.82 ClamAV 0.82
cpe:/a:clamav:clamav:0.87ClamAV 0.87
cpe:/a:clamav:clamav:0.83ClamAV 0.83

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


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

- 其它链接及资源
(VENDOR_ADVISORY)  IDEFENSE  20051104 Clam AntiVirus Cabinet-file handling Denial of Service Vulnerability
(UNKNOWN)  BID  15317

- 漏洞信息

Clam Anti-Virus ClamAV CAB文件处理拒绝服务漏洞
中危 资源管理错误
2005-11-05 00:00:00 2008-12-23 00:00:00
        Clam AntiVirus(ClamAV)是免费而且开放源代码的防毒软件。
        Clam AntiVirus (ClamAV) 0.87.1之前版本libmspack程序库(mspack)的cabd.c中的cabd_find函数,可让远程攻击者通过特制的CAB文件(可导致调用零长度的cabd_find)使系统拒绝服务(无限循环)。

- 公告与补丁


- 漏洞信息 (F41389)

Debian Linux Security Advisory 887-1 (PacketStormID:F41389)
2005-11-08 00:00:00

Debian Security Advisory DSA 887-1 - Several vulnerabilities have been discovered in Clam AntiVirus, the antivirus scanner for Unix, designed for integration with mail servers to perform attachment scanning

Hash: SHA1

- --------------------------------------------------------------------------
Debian Security Advisory DSA 887-1                                        Martin Schulze
November 7th, 2005            
- --------------------------------------------------------------------------

Package        : clamav
Vulnerability  : several
Problem type   : remote
Debian-specific: no
CVE IDs        : CVE-2005-3239 CVE-2005-3303 CVE-2005-3500 CVE-2005-3501

Several vulnerabilities have been discovered in Clam AntiVirus, the
antivirus scanner for Unix, designed for integration with mail servers
to perform attachment scanning.  The Common Vulnerabilities and
Exposures project identifies the following problems:


    The OLE2 unpacker allows remote attackers to cause a segmentation
    fault via a DOC file with an invalid property tree, which triggers
    an infinite recursion.


    A specially crafted executable compressed with FSG 1.33 could
    cause the extractor to write beyond buffer boundaries, allowing an
    attacker to execute arbitrary code.


    A specially crafted CAB file could cause ClamAV to be locked in an
    infinite loop and use all available processor resources, resulting
    in a denial of service.


    A specially crafted CAB file could cause ClamAV to be locked in an
    infinite loop and use all available processor resources, resulting
    in a denial of service.

The old stable distribution (woody) does not contain clamav packages.

For the stable distribution (sarge) these problems have been fixed in
version 0.84-2.sarge.6.

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

We recommend that you upgrade your clamav packages.

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.1 alias sarge
- --------------------------------

  Source archives:
      Size/MD5 checksum:      872 dbecf7f7f16f69bdbad77a24106f7779
      Size/MD5 checksum:   177500 64ba2a8ad84cc961a564eaac4d65a642
      Size/MD5 checksum:  4006624 c43213da01d510faf117daa9a4d5326c

  Architecture independent components:
      Size/MD5 checksum:   154598 3a979fedbb1102fbe4c710621513ec4f
      Size/MD5 checksum:   690218 4143f2f7719c3a359e9c2c7079a9674f
      Size/MD5 checksum:   123568 2ac5e526c3063a704f68233a56b1d9a3

  Alpha architecture:
      Size/MD5 checksum:    74682 a8a3aa80c3030c5541d5444f7dfb5e39
      Size/MD5 checksum:    48774 64a2bfb8d0578085b4e64853a2c4686f
      Size/MD5 checksum:  2176366 88cce725133f000ca90f2db1cf05561f
      Size/MD5 checksum:    42114 b8c7c0ca88544cdaaba1b8a397cd8d83
      Size/MD5 checksum:   255164 b245e6b7b72e215738a9ebabd5bf81f2
      Size/MD5 checksum:   284690 377a0ba8c870ab5bfab6fe41cf8fb123

  AMD64 architecture:
      Size/MD5 checksum:    68874 f5d18144c18d86fbf2151d365e55da1c
      Size/MD5 checksum:    44190 58d96c1544570a9e54be0d24a66f8aa5
      Size/MD5 checksum:  2173202 5d0ed5492f4e7545d7dcb1a78bcfbfa1
      Size/MD5 checksum:    39986 356fffda8f5fd222e511a38f2ac41a9b
      Size/MD5 checksum:   175858 10a6af108612a49dd2017bd1cc1f4f6b
      Size/MD5 checksum:   258818 acef782c52d15b33be57f7d8fed22cdf

  ARM architecture:
      Size/MD5 checksum:    63840 35a9525030ef7d747905c6d4e81b0173
      Size/MD5 checksum:    39518 a78e7ed137fe14172a1f6c6c3cf25d4e
      Size/MD5 checksum:  2171210 d76f65b800ecedf17ba487f89b358453
      Size/MD5 checksum:    37304 118c5156e7b6bce4c52d764ac1a4fd25
      Size/MD5 checksum:   174032 0e29d572a3e3ecc5969d87ed156782bd
      Size/MD5 checksum:   248932 0c7f9cb5b78c4b64786b12dfb6d67e33

  Intel IA-32 architecture:
      Size/MD5 checksum:    65156 39cdd2f9a41dea19683d5b18ea13b052
      Size/MD5 checksum:    40212 768cff8dc82ac48caa234fefa17810fb
      Size/MD5 checksum:  2171510 1bb8efa16e2da68a69feaf005da43daf
      Size/MD5 checksum:    38024 63dfe7c832a43b5cb4c95a5d3c15b296
      Size/MD5 checksum:   158950 084d2af0dd69a20c9d822b7495bb1c48
      Size/MD5 checksum:   253384 9b340ea98aa2b5fe63d854d421a8d547

  Intel IA-64 architecture:
      Size/MD5 checksum:    81708 e98c7c19177bd2338e9f8345a67943d9
      Size/MD5 checksum:    55092 4b67143870b597da701652a16a891bdd
      Size/MD5 checksum:  2180086 bd0fb7f407ffdb505fe5c8fdc71788f6
      Size/MD5 checksum:    49194 25f2909f8d4dda708b16aae5a43fc07b
      Size/MD5 checksum:   251078 67d6352d8d21572a95699e1968cca1f1
      Size/MD5 checksum:   316668 a2752630e4ea263c7e0e2b000d6c07ad

  HP Precision architecture:
      Size/MD5 checksum:    68172 0e153f8fcadd9dce7e179fe303368428
      Size/MD5 checksum:    43238 99751465b47eff1e2056d63b7d6b7adc
      Size/MD5 checksum:  2173618 4dc8f0a603d02ba9551da4e3e5da8b53
      Size/MD5 checksum:    39450 7c7b9399856f59dd797ea5d72dc581a7
      Size/MD5 checksum:   201894 1ddec9057be15b5478c3141128dc710f
      Size/MD5 checksum:   282564 5b9fe2004960c51d85d4a5fc1c95076d

  Motorola 680x0 architecture:
      Size/MD5 checksum:    62458 d60ff7b83bd40ffa90777eb9f8dc5804
      Size/MD5 checksum:    38092 359f1de5b5683ca493313083c213b5ba
      Size/MD5 checksum:  2170446 efeb66c6c3196a646c1d9730c700e8b3
      Size/MD5 checksum:    35074 5e0c25c92fe49c3b763ac4e29afa2d05
      Size/MD5 checksum:   145850 c2b3fe912909a70dd0f34fc97dfd8859
      Size/MD5 checksum:   249624 65e0f477086902569fba919f93e60ac2

  Big endian MIPS architecture:
      Size/MD5 checksum:    67854 2fbfee6855dfcf176d2c597e28d192f3
      Size/MD5 checksum:    43674 a2d1fefc687031fddb3ef316f0ef5e6f
      Size/MD5 checksum:  2172976 e98effb47219f1ef0e9c93ecb264ff6e
      Size/MD5 checksum:    37666 13e039151e67b7a426d0c408f488765b
      Size/MD5 checksum:   194868 718cb7205eb187dd5c1094486c4f6944
      Size/MD5 checksum:   256726 9df477f6f225912ab79b60b904a2c969

  Little endian MIPS architecture:
      Size/MD5 checksum:    67486 50ecc3a0b4a9615e12b2d0970a7d4bf2
      Size/MD5 checksum:    43500 03d76b290417cf2485da3c05335c0f23
      Size/MD5 checksum:  2172918 1fb7cc15ff3148cfaa9b5f6a31c4da0e
      Size/MD5 checksum:    37954 fd7aeaf932e955edcc5458c8d4ce1ced
      Size/MD5 checksum:   191144 935057c7cf3a879179b009833cf9d256
      Size/MD5 checksum:   254270 806fdfdf35fb3ad77c2212c93f244502

  PowerPC architecture:
      Size/MD5 checksum:    69246 3bd6270011341bb71acab16c564c7510
      Size/MD5 checksum:    44606 9a95ee4c1f44e3cf6e01f51b45c13ef9
      Size/MD5 checksum:  2173582 c1fbeccbf7d5b9edb5fefef2c9b56d07
      Size/MD5 checksum:    38896 f5182a4b59a71aef47798511a7c6207e
      Size/MD5 checksum:   187062 dd3887d23e68b5ea9c07c461fbad25d8
      Size/MD5 checksum:   263932 de1915d7be9617f31865ea365d4b4fb3

  IBM S/390 architecture:
      Size/MD5 checksum:    67788 62ebbbd7ee24ed35453302724519a643
      Size/MD5 checksum:    43430 cece7b99db1d38b7148546af3def9cb4
      Size/MD5 checksum:  2172866 48faee149dbaae1a1d85a661a825492e
      Size/MD5 checksum:    38938 485d907f498854e3bd85534196dc1b8f
      Size/MD5 checksum:   182184 744d54adafa399cd199603e744adda9f
      Size/MD5 checksum:   268750 92ba1e3b3bb26cfb7dbf1dd5b05af81a

  Sun Sparc architecture:
      Size/MD5 checksum:    64326 0e18c3ec2b79c481b7022291db62e783
      Size/MD5 checksum:    39390 35c05a770994ead441702f284c3c49f4
      Size/MD5 checksum:  2171066 0b5d93a20422101929c1f8cccbd796b9
      Size/MD5 checksum:    36848 9f8b1bdd483acbd1c6f4b501f318854b
      Size/MD5 checksum:   175268 8fa22ccba8fc0c515867aa77ec0d88ce
      Size/MD5 checksum:   264088 901bf68a7cf92b942844c4174c06971c

  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.4.2 (GNU/Linux)


Full-Disclosure - We believe in it.
Hosted and sponsored by Secunia -

- 漏洞信息

Clam AntiVirus libclamav/mspack/cabd.c Infinite Loop DoS
Remote / Network Access Denial of Service
Loss of Availability Upgrade
Exploit Unknown Vendor Verified

- 漏洞描述

Clam AntiVirus contains a flaw that may allow a remote denial of service. The issue is triggered due to a design error of the 'cabd_find()' function in 'libclamv/mspack/cabd.c'. With a specially crafted CAB file, a remote attacker can cause the application to enter an infinite loop and consume all available CPU resources resulting in a loss of availability.

- 时间线

2005-11-04 2005-10-07
Unknow 2005-11-03

- 解决方案

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

- 相关参考

- 漏洞作者

Unknown or Incomplete