CVE-2016-8622
Reported by redhat · Published July 31, 2018
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libcurl-gnutls | Arch Linux | 7.51.0-1 |
| curl | Arch Linux | 7.51.0-1 |
| libcurl-compat | Arch Linux | 7.51.0-1 |
| curl | Alpine | 7.51.0-r0, 7.51.0, 7.49.1-r4 |
| libcurl | haxx | 7.51.0 |
| curl | Ubuntu:14.04:LTS | 7.35.0-1ubuntu2.10 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| The Curl Project | curl | 7.51.0 |
| arch | libcurl-gnutls | 0 |
| arch | curl | 0 |
| arch | libcurl-compat | 0 |
| alpine | curl | 0, 0, 0 |
| The Curl Project | curl | 7.51.0 |
Timeline
- Nov 2, 2016 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 5, 2026 Distribution Patch (4 in total, the first dated here)
- Mar 5, 2026 Security Advisory (15 in total, the first dated here)
- Oct 6, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-8622
vulnetix vdb fixes CVE-2016-8622
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-8622/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2018:3558 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- 1037192 vdb-entryx_refsource_SECTRACK
- x_refsource_CONFIRM
- 94105 vdb-entryx_refsource_BID
- RHSA-2018:2486 vendor-advisoryx_refsource_REDHAT
- GLSA-201701-47 vendor-advisoryx_refsource_GENTOO
- x_refsource_CONFIRM