<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd"> <glsa id="201006-16"> <title>GD: User-assisted execution of arbitrary code</title> <synopsis> The GD library is prone to a buffer overflow vulnerability. </synopsis> <product type="ebuild">gd</product> <announced>2010-06-03</announced> <revised count="01">2010-06-03</revised> <bug>292130</bug> <access>remote</access> <affected> <package name="media-libs/gd" auto="yes" arch="*"> <unaffected range="ge">2.0.35-r1</unaffected> <vulnerable range="lt">2.0.35-r1</vulnerable> </package> </affected> <background> <p> GD is a graphic library for fast image creation. </p> </background> <description> <p> Tomas Hoger reported that the _gdGetColors() function in gd_gd.c does not properly verify the colorsTotal struct member, possibly leading to a buffer overflow. </p> </description> <impact type="normal"> <p> A remote attacker could entice a user to open a specially crafted image file with a program using the GD library, possibly resulting in the remote execution of arbitrary code with the privileges of the user running the application, or a Denial of Service condition. </p> </impact> <workaround> <p> There is no known workaround at this time. </p> </workaround> <resolution> <p> All GD users should upgrade to the latest version: </p> <code> # emerge --sync # emerge --ask --oneshot --verbose ">=media-libs/gd-2.0.35-r1"</code> <p> NOTE: This is a legacy GLSA. Updates for all affected architectures are available since November 21, 2009. It is likely that your system is already no longer affected by this issue. </p> </resolution> <references> <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3546">CVE-2009-3546</uri> </references> <metadata tag="requester" timestamp="2009-12-18T02:08:27Z"> craig </metadata> <metadata tag="submitter" timestamp="2010-05-31T05:59:40Z"> a3li </metadata> <metadata tag="bugReady" timestamp="2010-05-31T05:59:48Z"> a3li </metadata> </glsa>