Two problems have been discovered in gzip, the GNU compression utility. The Common Vulnerabilities and Exposures project identifies the following problems.
Imran Ghory discovered a race condition in the permissions setting code in gzip. When decompressing a file in a directory an attacker has access to, gunzip could be tricked to set the file permissions to a different file the user has permissions to.
Ulf Härnhammar discovered a path traversal vulnerability in gunzip. When gunzip is used with the -N option an attacker could use this vulnerability to create files in an arbitrary directory with the permissions of the user.
For the oldstable distribution (woody) these problems have been fixed in version 1.3.2-3woody5.
For the stable distribution (sarge) these problems have been fixed in version 1.3.5-10.
For the unstable distribution (sid) these problems have been fixed in version 1.3.5-10.
We recommend that you upgrade your gzip package.
MD5 checksums of the listed files are available in the original advisory.