CVE-2016-8620
Description
The curl tool's globbing feature before version 7.51.0 contains an integer overflow vulnerability that can lead to out-of-bounds memory access via user-controlled range inputs.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
The curl tool's globbing feature before version 7.51.0 contains an integer overflow vulnerability that can lead to out-of-bounds memory access via user-controlled range inputs.
Vulnerability
Curl's 'globbing' feature in tool_urlglob.c allows users to specify numerical or alphabetical ranges (e.g., [1-5] or [a-z]). Two flaws exist: first, parsing the second unsigned number does not check for a leading minus, so [1--1] converts -1 to the maximum unsigned long, causing an integer overflow and out-of-bounds write on the heap after many iterations; second, when an alphabetical range ends with a dangling hyphen like [L-], the code reads 5 bytes from a buffer that may be only 4 bytes, leading to an out-of-bounds read. This flaw exists only in the curl tool, not in libcurl. Affected versions: curl 7.34.0 to and including 7.50.3. Unaffected: versions before 7.34.0 and after 7.51.0. [3][4]
Exploitation
An attacker can exploit this by providing a crafted URL with a malicious range (e.g., [1--1] or [L-]) to a user running curl. No authentication is required; user interaction (running curl with the crafted URL) is sufficient. The curl tool processes the range, triggering the integer overflow or out-of-bounds read without any special privileges. [3][4]
Impact
Successful exploitation can lead to a heap-based buffer overflow (write) or out-of-bounds read, potentially allowing denial of service or arbitrary code execution in the context of the curl process. The vulnerability is rated as Medium severity. [3][4]
Mitigation
Fixed in curl version 7.51.0, released on November 2, 2016. The fix is implemented in commit fbb5f1aa0326d485d5a7ac643. Users should upgrade to curl 7.51.0 or later. Workarounds include disabling globbing (if possible) or manually validating range inputs. Red Hat and other vendors have backported fixes to their supported versions. [1][3][4]
AI Insight generated on May 24, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
12- osv-coords10 versionspkg:rpm/opensuse/curl&distro=openSUSE%20Tumbleweedpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP1pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2011%20SP4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2011%20SP4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP1pkg:rpm/suse/curl&distro=SUSE%20Studio%20Onsite%201.3pkg:rpm/suse/curl-openssl1&distro=SUSE%20Linux%20Enterprise%20Server%2011-SECURITY
< 7.51.0-1.1+ 9 more
- (no CPE)range: < 7.51.0-1.1
- (no CPE)range: < 7.37.0-31.1
- (no CPE)range: < 7.19.7-1.64.1
- (no CPE)range: < 7.37.0-31.1
- (no CPE)range: < 7.19.7-1.64.1
- (no CPE)range: < 7.37.0-31.1
- (no CPE)range: < 7.19.7-1.64.1
- (no CPE)range: < 7.37.0-31.1
- (no CPE)range: < 7.19.7-1.20.47.2
- (no CPE)range: < 7.19.7-1.64.1
- The Curl Project/curlv5Range: 7.51.0
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
8- access.redhat.com/errata/RHSA-2018:3558mitrevendor-advisoryx_refsource_REDHAT
- security.gentoo.org/glsa/201701-47mitrevendor-advisoryx_refsource_GENTOO
- www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.htmlmitrex_refsource_CONFIRM
- www.securityfocus.com/bid/94102mitrevdb-entryx_refsource_BID
- www.securitytracker.com/id/1037192mitrevdb-entryx_refsource_SECTRACK
- bugzilla.redhat.com/show_bug.cgimitrex_refsource_CONFIRM
- curl.haxx.se/docs/adv_20161102F.htmlmitrex_refsource_CONFIRM
- www.tenable.com/security/tns-2016-21mitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.