FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

zip -- long path buffer overflow

Affected packages
zip < 2.3_2


VuXML ID 40549bbf-43b5-11d9-a9e7-0001020eed82
Discovery 2004-10-03
Entry 2004-12-01
Modified 2004-12-12

A HexView security advisory reports:

When zip performs recursive folder compression, it does not check for the length of resulting path. If the path is too long, a buffer overflow occurs leading to stack corruption and segmentation fault. It is possible to exploit this vulnerability by embedding a shellcode in directory or file name. While the issue is not of primary concern for regular users, it can be critical for environments where zip archives are re-compressed automatically using Info-Zip application.


Bugtraq ID 11603
CVE Name CVE-2004-1010