CVE-2017-1000257
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.
Severity
CRITICAL
CVSS v3
9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H · source adp
Exploit chance (EPSS)
6.224%
chance of exploitation in the next 30 days
higher than 93.7% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-04-15 |
Timeline
- 2017-10-31Published by the CNA21:00 UTC
- 2026-04-15CISA SSVC decision recorded3088 days after publication
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| haxx libcurl | from 7.20.0 through 7.56.0no fix listed | not listed |
| debian debian_linux | 8.0no fix listed9.0no fix listed | not listednot listed |
References
- http://www.debian.org/security/2017/dsa-4007
- https://access.redhat.com/errata/RHSA-2017:3263
- https://access.redhat.com/errata/RHSA-2018:2486
- https://access.redhat.com/errata/RHSA-2018:3558
- https://curl.haxx.se/docs/adv_20171023.html
- https://security.gentoo.org/glsa/201712-04
- http://www.securityfocus.com/bid/101519
- http://www.securitytracker.com/id/1039644
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2017-1000257'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2017-1000257'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2017-1000257'curl 'https://api.contrastcyber.com/cve_products/CVE-2017-1000257'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).