CVE-2017-1000257
Last modified
CVE-2017-1000257 is a critical-severity vulnerability rated 9.1/10 on the CVSS scale. 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. EPSS estimates a 6.22% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Haxx | Libcurl | >= 7.20.0, <= 7.56.0 |
| Debian | Debian Linux | 8.0 |
| Debian | Debian Linux | 9.0 |
References
- http://www.debian.org/security/2017/dsa-4007Third Party Advisory
- http://www.securityfocus.com/bid/101519Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id/1039644Third Party Advisory, VDB Entry
- https://curl.haxx.se/docs/adv_20171023.htmlVendor Advisory
- http://www.debian.org/security/2017/dsa-4007Third Party Advisory
- http://www.securityfocus.com/bid/101519Third Party Advisory, VDB Entry
- http://www.securitytracker.com/id/1039644Third Party Advisory, VDB Entry
- https://curl.haxx.se/docs/adv_20171023.htmlVendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2017-1000257?
How severe is CVE-2017-1000257?
How do I fix CVE-2017-1000257?
Are you affected by CVE-2017-1000257?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
