CVE-2017-1000257
- State
- Published
- Severity
- 9.1 Critical
- Published
- Oct 31, 2017
- Updated
- Apr 15, 2026
- Reserved
- Oct 31, 2017
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 9.1 Critical | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H | CISA-ADP |
Weaknesses
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected Products
| Product | Versions |
|---|---|
n/an/a |
|
References
- https://curl.haxx.se/docs/adv_20171023.html
- RHSA-2017:3263vendor-advisory
- GLSA-201712-04vendor-advisory
- 1039644vdb-entry
- RHSA-2018:3558vendor-advisory
- 101519vdb-entry
- DSA-4007vendor-advisory
- RHSA-2018:2486vendor-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.