GLSA-200512-09 : cURL: Off-by-one errors in URL handling

medium Nessus Plugin ID 20329

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200512-09 (cURL: Off-by-one errors in URL handling)

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 string.
Impact :

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 libcurl.
Workaround :

There is no known workaround at this time.

Solution

All cURL users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=net-misc/curl-7.15.1'

See Also

http://www.hardened-php.net/advisory_242005.109.html

https://security.gentoo.org/glsa/200512-09

Plugin Details

Severity: Medium

ID: 20329

File Name: gentoo_GLSA-200512-09.nasl

Version: 1.15

Type: local

Published: 12/20/2005

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.2

CVSS v2

Risk Factor: Medium

Base Score: 4.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:curl, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 12/16/2005

Vulnerability Publication Date: 12/7/2005

Reference Information

CVE: CVE-2005-4077

GLSA: 200512-09