blob: 72d3f938a1d5906bc997bc7ba94775e89f43b508 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<glsa id="200512-09">
<title>cURL: Off-by-one errors in URL handling</title>
cURL is vulnerable to local arbitrary code execution via buffer overflow
due to the insecure parsing of URLs.
<product type="ebuild">cURL</product>
<announced>December 16, 2005</announced>
<revised>December 16, 2005: 01</revised>
<package name="net-misc/curl" auto="yes" arch="*">
<unaffected range="ge">7.15.1</unaffected>
<vulnerable range="lt">7.15.1</vulnerable>
cURL is a command line tool for transferring files with URL
syntax, supporting numerous protocols.
Stefan Esser from the Hardened-PHP Project has reported a
vulnerability in cURL that allows for a local buffer overflow when cURL
attempts to parse specially crafted URLs. The URL can be specially
crafted in one of two ways: the URL could be malformed in a way that
prevents a terminating null byte from being added to either a hostname
or path buffer; or the URL could contain a "?" separator in the
hostname portion, which causes a "/" to be prepended to the resulting
<impact type="low">
An attacker capable of getting cURL to parse a maliciously crafted
URL could cause a denial of service or execute arbitrary code with the
privileges of the user making the call to cURL. An attacker could also
escape open_basedir or safe_mode pseudo-restrictions when exploiting
this problem from within a PHP program when PHP is compiled with
There is no known workaround at this time.
All cURL users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose &quot;&gt;=net-misc/curl-7.15.1&quot;</code>
<uri link="">CVE-2005-4077</uri>
<uri link="">Hardened-PHP Advisory</uri>
<metadata tag="requester" timestamp="Wed, 14 Dec 2005 13:39:33 +0000">
<metadata tag="submitter" timestamp="Wed, 14 Dec 2005 17:20:45 +0000">
<metadata tag="bugReady" timestamp="Thu, 15 Dec 2005 11:37:18 +0000">