CVE-2017-1000257

CRITICAL

libcurl 7.20.0-7.55.1 - Heap-Based Buffer Over-Read via IMAP FETCH Response

Title source: llm
STIX 2.1

Description

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.

References (8)

Core 8
Core References
Vendor Advisory x_refsource_confirm
https://curl.haxx.se/docs/adv_20171023.html
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2017:3263
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/201712-04
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id/1039644
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:3558
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/101519
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2017/dsa-4007
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:2486

Scores

CVSS v3 9.1
EPSS 0.0086
EPSS Percentile 75.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact partial

Details

CWE
CWE-119
Status published
Products (3)
debian/debian_linux 8.0
debian/debian_linux 9.0
haxx/libcurl 7.20.0 - 7.56.0
Published Oct 31, 2017
Tracked Since Feb 18, 2026