1 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
2 |
Gentoo Linux Security Advisory GLSA 200512-09 |
3 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
4 |
http://security.gentoo.org/ |
5 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
6 |
|
7 |
Severity: Low |
8 |
Title: cURL: Off-by-one errors in URL handling |
9 |
Date: December 16, 2005 |
10 |
Bugs: #114710 |
11 |
ID: 200512-09 |
12 |
|
13 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
14 |
|
15 |
Synopsis |
16 |
======== |
17 |
|
18 |
cURL is vulnerable to local arbitrary code execution via buffer |
19 |
overflow due to the insecure parsing of URLs. |
20 |
|
21 |
Background |
22 |
========== |
23 |
|
24 |
cURL is a command line tool for transferring files with URL syntax, |
25 |
supporting numerous protocols. |
26 |
|
27 |
Affected packages |
28 |
================= |
29 |
|
30 |
------------------------------------------------------------------- |
31 |
Package / Vulnerable / Unaffected |
32 |
------------------------------------------------------------------- |
33 |
1 net-misc/curl < 7.15.1 >= 7.15.1 |
34 |
|
35 |
Description |
36 |
=========== |
37 |
|
38 |
Stefan Esser from the Hardened-PHP Project has reported a vulnerability |
39 |
in cURL that allows for a local buffer overflow when cURL attempts to |
40 |
parse specially crafted URLs. The URL can be specially crafted in one |
41 |
of two ways: the URL could be malformed in a way that prevents a |
42 |
terminating null byte from being added to either a hostname or path |
43 |
buffer; or the URL could contain a "?" separator in the hostname |
44 |
portion, which causes a "/" to be prepended to the resulting string. |
45 |
|
46 |
Impact |
47 |
====== |
48 |
|
49 |
An attacker capable of getting cURL to parse a maliciously crafted URL |
50 |
could cause a denial of service or execute arbitrary code with the |
51 |
privileges of the user making the call to cURL. An attacker could also |
52 |
escape open_basedir or safe_mode pseudo-restrictions when exploiting |
53 |
this problem from within a PHP program when PHP is compiled with |
54 |
libcurl. |
55 |
|
56 |
Workaround |
57 |
========== |
58 |
|
59 |
There is no known workaround at this time. |
60 |
|
61 |
Resolution |
62 |
========== |
63 |
|
64 |
All cURL users should upgrade to the latest version: |
65 |
|
66 |
# emerge --sync |
67 |
# emerge --ask --oneshot --verbose ">=net-misc/curl-7.15.1" |
68 |
|
69 |
References |
70 |
========== |
71 |
|
72 |
[ 1 ] CVE-2005-4077 |
73 |
http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-4077 |
74 |
[ 2 ] Hardened-PHP Advisory |
75 |
http://www.hardened-php.net/advisory_242005.109.html |
76 |
|
77 |
Availability |
78 |
============ |
79 |
|
80 |
This GLSA and any updates to it are available for viewing at |
81 |
the Gentoo Security Website: |
82 |
|
83 |
http://security.gentoo.org/glsa/glsa-200512-09.xml |
84 |
|
85 |
Concerns? |
86 |
========= |
87 |
|
88 |
Security is a primary focus of Gentoo Linux and ensuring the |
89 |
confidentiality and security of our users machines is of utmost |
90 |
importance to us. Any security concerns should be addressed to |
91 |
security@g.o or alternatively, you may file a bug at |
92 |
http://bugs.gentoo.org. |
93 |
|
94 |
License |
95 |
======= |
96 |
|
97 |
Copyright 2005 Gentoo Foundation, Inc; referenced text |
98 |
belongs to its owner(s). |
99 |
|
100 |
The contents of this document are licensed under the |
101 |
Creative Commons - Attribution / Share Alike license. |
102 |
|
103 |
http://creativecommons.org/licenses/by-sa/2.0 |