CVE-2017-1000257
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| sles | affected | | |
| arch | fixed | 7.56.1-1 | |
| debian | bookworm | fixed | 7.56.1-1 |
| debian | bullseye | fixed | 7.56.1-1 |
| debian | forky | fixed | 7.56.1-1 |
| debian | sid | fixed | 7.56.1-1 |
| debian | trixie | fixed | 7.56.1-1 |
| debian | 8.0 | affected | |
| debian | 9.0 | affected | |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| haxx | libcurl | {"startIncluding":"7.20.0","endIncluding":"7.56.0"} | |
References
- https://security.archlinux.org/ASA-201711-6
- https://security.archlinux.org/ASA-201711-7
- https://security.archlinux.org/ASA-201711-8
- https://security.archlinux.org/ASA-201711-9
- https://security.archlinux.org/ASA-201711-10
- https://security.archlinux.org/ASA-201711-11
- http://www.debian.org/security/2017/dsa-4007
- http://www.securityfocus.com/bid/101519
- http://www.securitytracker.com/id/1039644
- 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://curl.haxx.se/docs/adv_20171023.html
- https://security.gentoo.org/glsa/201712-04
- https://www.suse.com/security/cve/CVE-2017-1000257.html
- https://security-tracker.debian.org/tracker/CVE-2017-1000257
CWEs
CWE-119
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.