FreeBSD : cURL -- out of bounds read (143ec3d6-b7cf-11e7-ac58-b499baebfeaf)

critical Nessus Plugin ID 104113

Language:

Synopsis

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

Description

The cURL project reports :

libcurl contains a buffer overrun flaw in the IMAP handler. An IMAP FETCH response line indicates the size of the returned data, in number of bytes. When that response says the data is zero bytes, libcurl would pass on that (non-existing) data with a pointer and the size (zero) to the deliver-data function. libcurl's deliver-data function treats zero as a magic number and invokes strlen() on the data to figure out the length. The strlen() is called on a heap based buffer that might not be zero terminated so libcurl might read beyond the end of it into whatever memory lies after (or just crash) and then deliver that to the application as if it was actually downloaded.

Solution

Update the affected package.

See Also

https://curl.haxx.se/docs/CVE-2017-1000257.html

http://www.nessus.org/u?dabf9985

Plugin Details

Severity: Critical

ID: 104113

File Name: freebsd_pkg_143ec3d6b7cf11e7ac58b499baebfeaf.nasl

Version: 3.6

Type: local

Published: 10/24/2017

Updated: 1/4/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.2

CVSS v2

Risk Factor: Medium

Base Score: 6.4

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

CVSS v3

Risk Factor: Critical

Base Score: 9.1

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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: 10/23/2017

Vulnerability Publication Date: 10/23/2017

Reference Information

CVE: CVE-2017-1000257