GNU GZip Filename Directory Traversal Vulnerability
Posted by Sachin Garg on 12th July 2005 | Permanent Link
Ulf Harnhammar has reported a bug in GNU GZip. The issue manifests when gunzip is invoked on a malicious archive using the ‘-N’ switch. An archive containing an absolute path for a filename that contains ‘/’ characters, results in the file getting written using the absolute path contained in the filename. A remote attacker may leverage this issue using a malicious archive to corrupt arbitrary files with the privileges of the user that is running the vulnerable software.
More info on both expolit and solution is available.
Bugtraq ID: 13290
CVE: CAN-2005-1228
After recent Zlib buffer overflow mess, this seems like a tough week for compression guys.
July 14th, 2005 at 9:24 am
Odd. That’s exactly what gzip is supposed to do, and what’s more, you have to explicitly ask gzip to use the embedded name. If there is a security issue here, it seems like it is a user issue. As far as I know, it is not possible to enforce secure users. :-)
July 14th, 2005 at 10:22 am
But the advisory even metioned that a newer version (1.3.5-r6?) had this issue fixed… as far as I know JL Gaily doesnt shows up in community anymore and you are the one maitaining it.