CVE-2017-8817: Critical severity haxx curl vulnerability
libcurl contains a read out of bounds flaw in the FTP wildcard function.
libcurl's FTP wildcard matching feature, which is enabled with the CURLOPTWILDCARDMATCH option can use a built-in wildcard function or a user provided one. The built-in wildcard function has a flaw that makes it not detect the end of the pattern string if it ends with an open bracket ([) but instead it will continue reading the heap beyond the end of the URL buffer that holds the wildcard.
For applications that use HTTP(S) URLs, allow libcurl to handle redirects and have FTP wildcards enabled, this flaw can be triggered by malicious servers that can redirect clients to a URL using such a wildcard pattern.
- Affected versions: libcurl 7.21.0 to and including 7.56.1 - Not affected versions: libcurl < 7.21.0 and >= 7.57.0
Other sources
The FTP wildcard function in curl and libcurl before 7.57.0 allows remote attackers to cause a denial of service (out-of-bounds read and application crash) or possibly have unspecified other impact via a string that ends with an '[' character.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/curlto a version that resolves this vulnerability.Fixed in 7.64.0-4+deb10u2Fixed in 7.64.0-4+deb10u7Fixed in 7.74.0-1.3+deb11u9Fixed in 7.74.0-1.3+deb11u10Fixed in 7.88.1-10+deb12u3Fixed in 7.88.1-10+deb12u4Fixed in 8.4.0-2 - Upgrade
Upgrade
redhat/curlto a version that resolves this vulnerability.Fixed in 7.57.0 - Upgrade
Upgrade
libcurlto a version that resolves this vulnerability.Fixed in 7.57.0
Event History
Frequently Asked Questions
What is CVE-2017-8817?
CVE-2017-8817 is a vulnerability in curl and libcurl before version 7.57.0 that allows remote attackers to cause a denial of service or possibly have unspecified other impact via a string ending with an '[' character.
How severe is CVE-2017-8817?
CVE-2017-8817 has a severity rating of 9.8 (Critical).
What software is affected by CVE-2017-8817?
The software affected by CVE-2017-8817 includes curl and libcurl versions prior to 7.57.0.
How can I fix CVE-2017-8817?
To fix CVE-2017-8817, update curl and libcurl to version 7.57.0 or later.
Where can I find more information about CVE-2017-8817?
You can find more information about CVE-2017-8817 in the following references: [bugzilla.redhat.com](https://bugzilla.redhat.com/show_bug.cgi/attachment.cgi?id=1356600&action=diff), [bugzilla.redhat.com](https://bugzilla.redhat.com/show_bug.cgi/attachment.cgi?id=1356600&action=edit), [github.com](https://github.com/curl/curl/commit/0825cd80a62c).