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.
CVSS Details
- CVSS 3.1 Base Score: 6.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N)
- CVSS 3.0 Vector: (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade curl | Oct 4, 2017 | Oct 4, 2017 |
| Amazon_linux | — | Upgrade curl | Dec 20, 2017 | Aug 31, 2017 |
| Apple Osx Curl | — | Upgrade macOS to the latest versionApply OS X security update 2017-001 SierraApply OS X security update 2017-004 El Capitan | Nov 1, 2017 | Oct 4, 2017 |
| Arch Linux | — | Upgrade to the latest version of Arch Linux | Jul 11, 2025 | Oct 4, 2017 |
| Debian | — | Upgrade curl | Oct 7, 2017 | Oct 4, 2017 |
| Freebsd | — | Upgrade curl | Dec 10, 2025 | Aug 9, 2017 |
| Gentoo Linux | — | Upgrade net-misc/curl. | Oct 30, 2017 | Oct 4, 2017 |
| Huawei Euleros 2_0_sp2 | — | Upgrade libcurlUpgrade libcurl-develUpgrade curl | Dec 31, 2018 | Oct 4, 2017 |
| Huawei Euleros 2_0_sp3 | — | Upgrade libcurl-develUpgrade curlUpgrade libcurl | Dec 11, 2018 | Oct 4, 2017 |
| Huawei Euleros 2_0_sp5 | — | Upgrade libcurl-develUpgrade libcurlUpgrade curl | Jan 9, 2019 | Oct 4, 2017 |
| Oracle Solaris | — | Upgrade web/curl to version 7.59.0-0.175.3.33.0.3.0 on Solaris 11.3 | Jun 18, 2018 | Oct 4, 2017 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Aug 9, 2017 |
| Suse | — | Upgrade sles12sp1-docker-imageUpgrade libcurl4Upgrade libcurl4-openssl1Upgrade curl-openssl1Upgrade libcurl4-openssl1-32bitUpgrade libcurl4-x86Upgrade sles12sp2-docker-imageUpgrade sles12-docker-imageUpgrade libcurl-develUpgrade curlUpgrade libcurl4-32bitUpgrade libcurl4-openssl1-x86 | Oct 12, 2017 | Oct 4, 2017 |
| Ubuntu | — | Upgrade libcurl3-gnutlsUpgrade libcurl3Upgrade libcurl3-nssUpgrade curl | Oct 10, 2017 | Oct 4, 2017 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Oct 4, 2017 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub