Vulnerabilities · 2017 · Haxx
CVE-2017-1000100
Haxx Libcurl vulnerability
When doing a TFTP transfer and curl/libcurl is given a URL that contains a very long file name (longer than about 515 bytes), the file name is truncated to fit within the buffer boundaries, but the buffer size is still wrongly updated to use the untruncated length. This too large value is then used in the sendto() call, making curl attempt to send more data than what is actually put into the buffer. The endto() function will then read beyond the end of the heap based buffer. A malicious HTTP(S) server could redirect a vulnerable libcurl-using client to a crafted TFTP URL (if the client hasn't restricted which protocols it allows redirects to) and trick it to send private memory contents to a remote server over UDP. Limit curl's redirect protocols with --proto-redir and libcurl's with CURLOPT_REDIR_PROTOCOLS.
Affected products
Libcurl. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Haxx Libcurl runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- curl.haxx.se/docs/adv_20170809B.html · Patch
- security.gentoo.org/glsa/201709-14 · Patch
- www.securityfocus.com/bid/100286 · Third Party Advisory
- www.securitytracker.com/id/1039118 · Third Party Advisory
- www.debian.org/security/2017/dsa-3992
- access.redhat.com/errata/RHSA-2018:3558
- support.apple.com/HT208221
- nvd.nist.gov/vuln/detail/CVE-2017-1000100
- cve.org/CVERecord?id=CVE-2017-1000100
More vulnerabilities in Haxx products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.