Out-of-bounds Write Affecting curl package, versions <7.51.0-r0
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-ALPINE320-CURL-7008560
- published 23 May 2024
- disclosed 31 Jul 2018
How to fix?
Upgrade Alpine:3.20
curl
to version 7.51.0-r0 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream curl
package and not the curl
package as distributed by Alpine
.
See How to fix?
for Alpine:3.20
relevant fixed versions and status.
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.
References
- https://curl.haxx.se/docs/adv_20161102H.html
- https://www.tenable.com/security/tns-2016-21
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-8622
- https://security-tracker.debian.org/tracker/CVE-2016-8622
- https://security.gentoo.org/glsa/201701-47
- http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-8622
- https://access.redhat.com/errata/RHSA-2018:2486
- https://access.redhat.com/errata/RHSA-2018:3558
- http://www.securityfocus.com/bid/94105
- http://www.securitytracker.com/id/1037192
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2016-8622