Executive brief
A vulnerability in the cpio archive utility allows the creation of files with insecure permissions. When creating archives, the tool may ignore system security settings and create files that are readable and writeable by any user on the system. This could allow unauthorized local users to view or modify sensitive archived data.
Technical details
The cpio utility fails to respect the user's umask when creating archive files using the -O (archive) or -F options. Specifically, it sets a umask of 0 during file creation, resulting in files being created with mode 0666 (world-readable and world-writable). A local attacker can exploit this to read sensitive information from the archives or modify the archive contents to inject malicious data. The issue was originally identified in older versions of cpio and reappeared in later versions due to a regression or lack of backported fixes. Patches are available for affected distributions including Debian, Red Hat, and Ubuntu.
Affected products
- GNU cpio 2.5 and earlier
- FreeBSD Project FreeBSD 2.1.0
- Debian Project Debian GNU/Linux 3.0
- Canonical Ubuntu Linux 4.10
Timeline
- 1996-07-16: disclosed: Initial disclosure date recorded in NVD
- 2005-02-04: advisory: Ubuntu Security Notice USN-75-1 published
- 2007-03-14: other: Red Hat official statement regarding RHEL 5 status
References
- http://marc.info/?l=bugtraq&m=110763404701519&w=2
- http://secunia.com/advisories/14357
- http://secunia.com/advisories/17063
- http://secunia.com/advisories/17532
- http://support.avaya.com/elmodocs2/security/ASA-2005-212.pdf
- http://www.debian.org/security/2005/dsa-664
- http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/1391