bzip2 Decompression File Overwrite Vulnerability

BID:4774

Info

bzip2 Decompression File Overwrite Vulnerability

Bugtraq ID: 4774
Class: Design Error
CVE:
Remote: Yes
Local: No
Published: May 20 2002 12:00AM
Updated: May 20 2002 12:00AM
Credit: Discovery of this issue is credited to Volker Schmidt and Philippe Troin.
Vulnerable: bzip2 bzip2 1.0.1
- FreeBSD FreeBSD 4.5
- FreeBSD FreeBSD 4.4
- Trustix Secure Linux 1.5
- Trustix Secure Linux 1.2
- Trustix Secure Linux 1.1
bzip2 bzip2 1.0
bzip2 bzip2 0.9.5 d
bzip2 bzip2 0.9.5 c
bzip2 bzip2 0.9.5 b
bzip2 bzip2 0.9.5 a
bzip2 bzip2 0.9 c
bzip2 bzip2 0.9 b
bzip2 bzip2 0.9 a
bzip2 bzip2 0.9
Not Vulnerable: bzip2 bzip2 1.0.2
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0
+ Debian Linux 3.0
- FreeBSD FreeBSD 4.5
- FreeBSD FreeBSD 4.5
- FreeBSD FreeBSD 4.4
- FreeBSD FreeBSD 4.4
+ Ubuntu Ubuntu Linux 5.0 4 powerpc
+ Ubuntu Ubuntu Linux 5.0 4 powerpc
+ Ubuntu Ubuntu Linux 5.0 4 i386
+ Ubuntu Ubuntu Linux 5.0 4 i386
+ Ubuntu Ubuntu Linux 5.0 4 amd64
+ Ubuntu Ubuntu Linux 5.0 4 amd64
+ Ubuntu Ubuntu Linux 4.1 ppc
+ Ubuntu Ubuntu Linux 4.1 ppc
+ Ubuntu Ubuntu Linux 4.1 ia64
+ Ubuntu Ubuntu Linux 4.1 ia64
+ Ubuntu Ubuntu Linux 4.1 ia32
+ Ubuntu Ubuntu Linux 4.1 ia32

Discussion

bzip2 Decompression File Overwrite Vulnerability

bzip2 is an open-source file compression/decompression utility for Unix and Linux variants.

bzip2 does not decompress files securely. When a file is decompressed, the program does not check to see if the file already exists, potentially allowing files to be overwritten without warning during the decompression.

Exploit / POC

bzip2 Decompression File Overwrite Vulnerability

There is no exploit code required.

Solution / Fix

bzip2 Decompression File Overwrite Vulnerability

Solution:
Upgrades are available:


bzip2 bzip2 0.9 c

bzip2 bzip2 0.9 b

bzip2 bzip2 0.9

bzip2 bzip2 0.9 a

bzip2 bzip2 0.9.5 a

bzip2 bzip2 0.9.5 b

bzip2 bzip2 0.9.5 d

bzip2 bzip2 0.9.5 c

bzip2 bzip2 1.0

bzip2 bzip2 1.0.1

References

bzip2 Decompression File Overwrite Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report