{"id":"CVE-2017-1000257","published":"2017-10-31T21:00:00Z","modified":"2026-04-15T21:02:38Z","title":"An IMAP FETCH response line indicates the size of the returned data, in number of bytes","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.06224,"percentile":0.93702,"provenance":"source"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"references":[{"url":"https://curl.haxx.se/docs/adv_20171023.html","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/errata/RHSA-2017:3263","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://security.gentoo.org/glsa/201712-04","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://www.securitytracker.com/id/1039644","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3558","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.securityfocus.com/bid/101519","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.debian.org/security/2017/dsa-4007","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2486","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":25.1,"factors":[{"name":"EPSS percentile","points":18.74},{"name":"CVSS severity","points":6.37}]},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-15T21:02:33.578848Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"The flaw lies in libcurl's IMAP FETCH handling: when a server reports zero bytes of returned data, libcurl passes an empty pointer and zero size to its deliver-data function, which then calls strlen() on a heap buffer that may not be zero-terminated. An attacker controlling or impersonating an IMAP server that a client connects to can trigger this with a crafted FETCH response, without needing credentials or user interaction, leading to out-of-bounds reads of adjacent memory that may be delivered to the application as downloaded data or crash the process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:33:47Z"},"euvd":{"id":"EUVD-2017-1518","exploited":false,"provenance":"source"}}