CVE-2016-8617
Description
Curl before 7.51.0 has a buffer under-allocation in base64 encoding on 32-bit systems when processing large input via CURLOPT_USERNAME, leading to out-of-bounds write.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Curl before 7.51.0 has a buffer under-allocation in base64 encoding on 32-bit systems when processing large input via CURLOPT_USERNAME, leading to out-of-bounds write.
Vulnerability
The base64 encode function in curl versions prior to 7.51.0 contains an integer overflow vulnerability on 32-bit systems. When a large input (at least 1 GB) is provided via the CURLOPT_USERNAME option, the buffer size calculation can under-allocate, resulting in a heap buffer overflow [2][4]. The issue is in lib/base64.c in the base64_encode() function [3].
Exploitation
An attacker must be able to supply a very large username string (≥1 GB) to a curl operation on a 32-bit system. This could be achieved through a malicious server or by controlling the input to a client application using libcurl. The attacker does not need authentication; they only need to trigger the encoding of the large input. The overflow occurs during the base64 encoding process.
Impact
Successful exploitation leads to an out-of-bounds write on the heap, which can cause a crash or potentially allow arbitrary code execution in the context of the curl process. The vulnerability is rated as Important by Red Hat [2] and Medium by Red Hat [1].
Mitigation
The vulnerability is fixed in curl version 7.51.0. Users should upgrade to curl 7.51.0 or later. Red Hat has released updates for httpd24-curl (RHSA-2018:3558) [1] and JBoss Core Services (RHSA-2018:2486) [2]. Tenable LCE 4.8.2 also includes the fix [3]. No workaround is available; upgrading is the recommended action.
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
12- access.redhat.com/errata/RHSA-2018:2486mitrevendor-advisoryx_refsource_REDHAT
- 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/94097mitrevdb-entryx_refsource_BID
- www.securitytracker.com/id/1037192mitrevdb-entryx_refsource_SECTRACK
- bugzilla.redhat.com/show_bug.cgimitrex_refsource_CONFIRM
- curl.haxx.se/CVE-2016-8617.patchmitrex_refsource_CONFIRM
- curl.haxx.se/docs/adv_20161102C.htmlmitrex_refsource_CONFIRM
- lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3Emitremailing-listx_refsource_MLIST
- www.tenable.com/security/tns-2016-21mitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.