<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd"> <glsa id="200505-05"> <title>gzip: Multiple vulnerabilities</title> <synopsis> gzip contains multiple vulnerabilities potentially allowing an attacker to execute arbitrary commands. </synopsis> <product type="ebuild">gzip</product> <announced>2005-05-09</announced> <revised count="01">2005-05-09</revised> <bug>89946</bug> <bug>90626</bug> <access>local</access> <affected> <package name="app-arch/gzip" auto="yes" arch="*"> <unaffected range="ge">1.3.5-r6</unaffected> <vulnerable range="lt">1.3.5-r6</vulnerable> </package> </affected> <background> <p> gzip (GNU zip) is a popular compression program. The included zgrep utility allows you to grep gzipped files in place. </p> </background> <description> <p> The gzip and gunzip programs are vulnerable to a race condition when setting file permissions (CAN-2005-0988), as well as improper handling of filename restoration (CAN-2005-1228). The zgrep utility improperly sanitizes arguments, which may come from an untrusted source (CAN-2005-0758). </p> </description> <impact type="normal"> <p> These vulnerabilities could allow arbitrary command execution, changing the permissions of arbitrary files, and installation of files to an aribitrary location in the filesystem. </p> </impact> <workaround> <p> There is no known workaround at this time. </p> </workaround> <resolution> <p> All gzip users should upgrade to the latest stable version: </p> <code> # emerge --sync # emerge --ask --oneshot --verbose ">=app-arch/gzip-1.3.5-r6"</code> </resolution> <references> <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0758">CAN-2005-0758</uri> <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0988">CAN-2005-0988</uri> <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-1228">CAN-2005-1228</uri> </references> <metadata tag="submitter" timestamp="2005-05-06T19:23:26Z"> r2d2 </metadata> <metadata tag="bugReady" timestamp="2005-05-09T05:30:13Z"> r2d2 </metadata> </glsa>