CVE-2017-1000257: libcurl - Out of Bounds Read
- Cve: CVE-2017-1000257
- Name: libcurl - Out of Bounds Read
- Description: An IMAP FETCH response line indicates the size of the returned data, in number of bytes. When that response says the data is zero bytes, libcurl would pass on that (non-existing) data with a pointer and the size (zero) to the deliver-data function. libcurl's deliver-data function treats zero as a magic number and invokes strlen() on the data to figure out the length. The strlen() is called on a heap based buffer that might not be zero terminated so libcurl might read beyond the end of it into whatever memory lies after (or just crash) and then deliver that to the application as if it was actually downloaded.
- Impact: Attackers can cause denial of service or read arbitrary memory, leading to crashes or information disclosure.
- Remediation: Update to the latest version of libcurl where this issue is fixed.
- Vulnerability type: out_of_bounds_rw
- Vulnerability impact: denial_of_service, information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- Epss score: 0.06224
- Epss percentile: 0.9371
- Assignee: [email protected]
- Published at: 2017-10-31T21:29:00Z
- Age in days: 3311
- Modified at: 2026-06-17T00:59:00Z
- References total: 8
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2017-1000257
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer |
Hackerone
- Reports: 2
- Rank: 3806
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://curl.haxx.se/docs/adv_20171023.html | Vendor Advisory |
| http://www.debian.org/security/2017/dsa-4007 | Third Party Advisory |
| http://www.securityfocus.com/bid/101519 | Third Party Advisory, VDB Entry |
| http://www.securitytracker.com/id/1039644 | Third Party Advisory, VDB Entry |
| https://access.redhat.com/errata/RHSA-2017:3263 | |
| https://access.redhat.com/errata/RHSA-2018:2486 | |
| https://access.redhat.com/errata/RHSA-2018:3558 | |
| https://security.gentoo.org/glsa/201712-04 |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| haxx:libcurl | >= 7.20.0, <= 7.56.0 | no | nvd | /v1/products/haxx/libcurl |
| debian:debian_linux | = 9.0, = 8.0 | no | nvd | /v1/products/debian/debian_linux |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| curl/curl | fix | yes | /v1/repositories/curl/curl |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Hackerone reports: 2
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since