# CVE-2017-1000257: IMAP FETCH response out of bounds read

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 6.22%, higher than 93% of CVEs (2026-12-01)
- Published: 2017-10-23T08:00:00.000Z
- Modified: 2026-10-25T01:05:07.031Z
- Also known as: CURL-CVE-2017-1000257
- Weaknesses: CWE-119
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- https://github.com/curl/curl.git: from 7.20.0 before 7.56.1; from ec3bb8f727405642a471b4b1b9eb0118fc003104 before 13c9a9ded3ae744a1e11cbc14e9146d9fa427040
- haxx libcurl: from 7.20.0 up to 7.56.0
- debian debian_linux: 8.0; 9.0

## Every score

- CISA-ADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- curl: rating Medium
- NVD: CVSS:3.0 9.1 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:P`

## References

- <https://curl.haxx.se/docs/adv_20171023.html> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2017:3263> (vendor-advisory)
- <https://security.gentoo.org/glsa/201712-04> (vendor-advisory)
- <http://www.securitytracker.com/id/1039644> (third-party-advisory, vdb-entry)
- <https://access.redhat.com/errata/RHSA-2018:3558> (vendor-advisory)
- <http://www.securityfocus.com/bid/101519> (third-party-advisory, vdb-entry)
- <http://www.debian.org/security/2017/dsa-4007> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2018:2486> (vendor-advisory)

## Sources

- CVE List: [CVE-2017-1000257](https://www.cve.org/CVERecord?id=CVE-2017-1000257), CVE Terms of Use, modified 2026-04-15
- curl: [CURL-CVE-2017-1000257](https://osv.dev/vulnerability/CURL-CVE-2017-1000257), MIT, modified 2026-10-25
- NVD: [CVE-2017-1000257](https://nvd.nist.gov/vuln/detail/CVE-2017-1000257), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2017-1000257 · Whole record: https://cve.day/CVE-2017-1000257.json · Rebuilt by cve.day 2026-11-25T22:57:33.359Z
