CVE-2016-8622 Integer overflow in curl

Low 3.7 Published Updated

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.

Weakness: CWE-787, CWE-190, CWE-122

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.

All Haxx Libcurl vulnerabilities

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.

Is CVE-2016-8622 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free