CVE-2016-8622 Integer overflow in curl
An integer overflow in libcurl's URL decoding can lead to heap buffer overflows, potentially allowing remote code execution or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2016-8622?
CVE-2016-8622 is a low-severity vulnerability in Haxx Libcurl, published on 31 Jul 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The URL percent-encoding decode function in libcurl before 7.51.0 is called `curl_easy_unescape`. Internally, even if this function would be made to allocate a unscape destination buffer larger than 2GB, it would return that new length in a signed 32 bit integer variable, thus the length would get either just truncated or both truncated and turned negative. That could then lead to libcurl writing outside of its heap based buffer.
Which versions are affected by CVE-2016-8622?
It affects 1 product.
Products include Haxx Libcurl.
How do I fix CVE-2016-8622?
Upgrade to a fixed version.
Is CVE-2016-8622 being exploited?
There is no known exploitation of CVE-2016-8622 in the wild and no public exploit code.
Other vulnerabilities in Haxx Libcurl
Sources
Also known as ALPINE-CVE-2016-8622, CLEANSTART-2026-XZ19364, CURL-CVE-2016-8622, DEBIAN-CVE-2016-8622, GHSA-xfmx-53v5-938g, UBUNTU-CVE-2016-8622.