OpenBSD VuXML: Documenting security issues in the OpenBSD Ports & Packages Collection

zip -- long path buffer overflow

Affected packages
zip < 2.3p0

Details

VuXML ID 81c7db10-4609-11d9-981c-00065bd5b0b6
Discovery 2004-10-03
Entry 2004-12-04

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.

References

CVE Name CAN-2004-1010
URL http://www.hexview.com/docs/20041103-1.txt