CVE-2016-8621
Description
In curl < 7.51.0, curl_getdate performs an out-of-bounds read when parsing date strings with a single-digit minute or second.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
In curl < 7.51.0, curl_getdate performs an out-of-bounds read when parsing date strings with a single-digit minute or second.
Vulnerability
The curl_getdate function in curl versions prior to 7.51.0 contains an out-of-bounds read vulnerability. The parser uses sscanf() with format strings %02d:%02d and %02d:%02d:%02d to parse HH:MM or HH:MM:SS time components. If the input ends with a single digit (e.g., a truncated minute or second), the parser advances its read pointer one byte too far, reading beyond the allocated buffer [4]. This function is used internally for parsing HTTP cookies (possibly from remote servers) and for conditional HTTP requests [4].
Exploitation
An attacker can trigger the vulnerability by supplying a crafted date string that is one digit short of the expected two-digit minute or second field. No authentication is required if the attacker can control the input to curl_getdate, for example by sending a malicious HTTP response with a malformed Date header or a cookie with an invalid expiry time. The vulnerable code path is reached when curl parses the date string; the out-of-bounds read occurs during the sscanf() call [4].
Impact
Successful exploitation allows an attacker to cause an out-of-bounds read, which may lead to information disclosure of heap memory. In extreme cases, this could be combined with other bugs to cause a crash or leak sensitive data [4]. The read is limited to adjacent memory and does not typically result in code execution, but it violates memory safety and can disclose unintended data.
Mitigation
The vulnerability was fixed in curl version 7.51.0, released on 2016-11-02 [4]. Upstream advisory at https://curl.haxx.se/docs/adv_20161102G.html [4]. Users should upgrade to curl 7.51.0 or later. Red Hat addressed this issue in httpd24-curl 7.61.1 (RHSA-2018:3558) [1] and in JBoss Core Services Apache HTTP Server 2.4.29 (RHSA-2018:2486) [2]. Tenable LCE 4.8.2 also includes the fix [3]. No workaround is available; upgrading is required.
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
10- 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/94101mitrevdb-entryx_refsource_BID
- www.securitytracker.com/id/1037192mitrevdb-entryx_refsource_SECTRACK
- bugzilla.redhat.com/show_bug.cgimitrex_refsource_CONFIRM
- curl.haxx.se/CVE-2016-8621.patchmitrex_refsource_CONFIRM
- curl.haxx.se/docs/adv_20161102G.htmlmitrex_refsource_CONFIRM
- www.tenable.com/security/tns-2016-21mitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.