FreeBSD : cURL -- Escape and unescape integer overflows (b018121b-7a4b-11e6-bf52-b499baebfeaf)

High Nessus Plugin ID 93498

Synopsis

The remote FreeBSD host is missing a security-related update.

Description

The cURL project reports

The four libcurl functions curl_escape(), curl_easy_escape(), curl_unescape and curl_easy_unescape perform string URL percent escaping and unescaping. They accept custom string length inputs in signed integer arguments.

The provided string length arguments were not properly checked and due to arithmetic in the functions, passing in the length 0xffffffff (2^32-1 or UINT_MAX or even just -1) would end up causing an allocation of zero bytes of heap memory that curl would attempt to write gigabytes of data into.

Solution

Update the affected package.

See Also

https://curl.haxx.se/docs/CVE-2016-7167.html

http://www.nessus.org/u?55624a75

Plugin Details

Severity: High

ID: 93498

File Name: freebsd_pkg_b018121b7a4b11e6bf52b499baebfeaf.nasl

Version: 2.6

Type: local

Published: 2016/09/15

Updated: 2018/12/19

Dependencies: 12634

Risk Information

Risk Factor: High

CVSS v2.0

Base Score: 7.5

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

CVSS v3.0

Base Score: 9.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:curl, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Patch Publication Date: 2016/09/14

Vulnerability Publication Date: 2016/09/14

Reference Information

CVE: CVE-2016-7167