LWN.net Logo

bzip2: file creation and symbolic link vulnerabilities

Package(s):bzip2 CVE #(s):CAN-2002-0759 CAN-2002-0760 CAN-2002-0761
Created:October 29, 2002 Updated:October 31, 2002
Description: bzip2 does not use the O_EXCL flag to create files during decompression and does not warn the user if an existing file would be overwritten, which could allow attackers to overwrite files via a bzip2 archive.

bzip2 decompresses files with world-readable permissions before setting the permissions to what is specified in the bzip2 archive, which could allow local users to read the files as they are being decompressed.

bzip2 uses the permissions of symbolic links instead of the actual files when creating an archive, which could cause the files to be extracted with less restrictive permissions than intended.

Alerts:
SCO Group CSSA-2002-039.0 2002-10-29
Trustix 2002-0053 2002-06-06

(Log in to post comments)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds