Buffer overflows in gzip 1.3x, 1.2.4, and other versions might allow attackers to execute code via a long file name, possibly remotely if gzip is run on an FTP server.
https://euvd.enisa.europa.eu/vulnerability/EUVD-2001-1209
http://www.securityfocus.com/bid/3712