CVE-2017-1000257Improper Restriction of Operations within the Bounds of a Memory Buffer in Libcurl

Severity
9.1CRITICALNVD
EPSS
0.9%
top 24.67%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedOct 31
Latest updateApr 16

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 wh

CVSS vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HExploitability: 3.9 | Impact: 5.2

Affected Packages2 packages

NVDhaxx/libcurl7.20.07.56.0
Debianhaxx/curl< 7.56.1-1+3

Also affects: Debian Linux 8.0, 9.0

🔴Vulnerability Details

4
VulDB
cURL up to 7.56.0 IMAP FETCH Response memory corruption (adv_20171023 / Nessus ID 104105)2026-04-16
GHSA
GHSA-6x54-39w9-rqhw: An IMAP FETCH response line indicates the size of the returned data, in number of bytes2022-05-14
CVEList
CVE-2017-1000257: An IMAP FETCH response line indicates the size of the returned data, in number of bytes2017-10-31
OSV
CVE-2017-1000257: An IMAP FETCH response line indicates the size of the returned data, in number of bytes2017-10-31

📋Vendor Advisories

4
Red Hat
curl: IMAP FETCH response out of bounds read2017-10-23
Ubuntu
curl vulnerabilities2017-10-23
Ubuntu
curl vulnerability2017-10-23
Debian
CVE-2017-1000257: curl - An IMAP FETCH response line indicates the size of the returned data, in number o...2017

💬Community

4
Bugzilla
CVE-2017-1000257 curl: IMAP FETCH response out of bounds read [fedora-all]2017-10-23
Bugzilla
CVE-2017-1000257 mingw-curl: curl: IMAP FETCH response out of bounds read [epel-7]2017-10-23
Bugzilla
CVE-2017-1000257 mingw-curl: curl: IMAP FETCH response out of bounds read [fedora-all]2017-10-23
Bugzilla
CVE-2017-1000257 curl: IMAP FETCH response out of bounds read2017-10-18
CVE-2017-1000257 — Haxx Libcurl vulnerability | cvebase