CVE-2017-1000257

Name
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.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
Third Party Advisory http://www.debian.org/security/2017/dsa-4007
Third Party Advisory http://www.securityfocus.com/bid/101519
Third Party Advisory http://www.securitytracker.com/id/1039644
cve@mitre.org https://access.redhat.com/errata/RHSA-2017:3263
cve@mitre.org https://access.redhat.com/errata/RHSA-2018:2486
cve@mitre.org https://access.redhat.com/errata/RHSA-2018:3558
Vendor Advisory https://curl.haxx.se/docs/adv_20171023.html
cve@mitre.org https://security.gentoo.org/glsa/201712-04

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:haxx:libcurl:*:*:*:*:*:*:*:* libcurl >= 7.20.0 <= 7.56.0

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
curl edge-main 7.56.1-r0 None fixed
curl 3.22-main 7.56.1-r0 None fixed
curl 3.21-main 7.56.1-r0 None fixed
curl 3.20-main 7.56.1-r0 None fixed
curl 3.19-main 7.56.1-r0 None fixed
curl 3.18-main 7.56.1-r0 None fixed
curl 3.17-main 7.56.1-r0 None fixed
curl 3.12-main 7.56.1-r0 None fixed
curl 3.11-main 7.56.1-r0 None fixed
curl 3.10-main 7.56.1-r0 None fixed