portage-ng / portage / app-arch / zip / 3.0-r7
portage-ng glsa
1 advisory reference app-arch/zip · none place version 3.0-r7 in a vulnerable range
▸ GLSA 200411-16 zip: Path name buffer overflow this version unaffected normal remote 2004-11-09

zip contains a buffer overflow when creating a ZIP archive of files with very long path names. This could lead to the execution of arbitrary code.

Announced
2004-11-09
Revised
2006-05-22 (revision 2)
Access
remote
Bugs
#70227
Advisory
https://security.gentoo.org/glsa/200411-16

Affected packages

PackageArchVulnerableUnaffected
app-arch/zip*<= 2.3-r3>= 2.3-r4

Background

zip is a compression and file packaging utility.

Description

zip does not check the resulting path length when doing recursive folder compression.

Impact

An attacker could exploit this by enticing another user or web application to create an archive including a specially-crafted path name, potentially resulting in the execution of arbitrary code with the permissions of the user running zip.

Workaround

There is no known workaround at this time.

Resolution

All zip users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/zip-2.3-r4"

References