<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd"> <glsa id="200412-07"> <title>file: Arbitrary code execution</title> <synopsis> The code for parsing ELF headers in file contains a flaw which may allow an attacker to execute arbitrary code. </synopsis> <product type="ebuild">file</product> <announced>2004-12-13</announced> <revised count="02">2006-05-22</revised> <bug>72521</bug> <access>remote</access> <affected> <package name="sys-apps/file" auto="yes" arch="*"> <unaffected range="ge">4.12</unaffected> <vulnerable range="lt">4.12</vulnerable> </package> </affected> <background> <p> file is a utility used to identify the type of a file. </p> </background> <description> <p> A possible stack overflow has been found in the ELF header parsing code of file. </p> </description> <impact type="normal"> <p> An attacker may be able to create a specially crafted ELF file which, when processed with file, may allow the execution of arbitrary code. </p> </impact> <workaround> <p> There is no known workaround at this time. </p> </workaround> <resolution> <p> All file users should upgrade to the latest version: </p> <code> # emerge --sync # emerge --ask --oneshot --verbose ">=sys-apps/file-4.12"</code> </resolution> <references> <uri link="http://securitytracker.com/id?1012433">SecurityTracker Alert ID 1012433</uri> <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-1304">CVE-2004-1304</uri> </references> <metadata tag="requester" timestamp="2004-12-11T10:27:20Z"> koon </metadata> <metadata tag="bugReady" timestamp="2004-12-11T10:27:27Z"> koon </metadata> <metadata tag="submitter" timestamp="2004-12-12T20:24:04Z"> vorlon078 </metadata> </glsa>