CVE-2017-13090
GNU Wget: heap overflow in HTTP protocol handling
Reported by certcc · Published October 27, 2017
The retr.c:fd_read_body() function is called when processing OK responses. When the response is sent chunked in wget before 1.19.2, the chunk parser uses strtol() to read each chunk's length, but doesn't check that the chunk length is a non-negative number. The code then tries to read the chunk in pieces of 8192 bytes by using the MIN() macro, but ends up passing the negative chunk length to retr.c:fd_read(). As fd_read() takes an int argument, the high 32 bits of the chunk length are discarded, leaving fd_read() with a completely attacker controlled length argument. The attacker can corrupt malloc metadata after the allocated buffer.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| wget | Arch Linux | 1.19.2-1 |
| wget | Ubuntu:16.04:LTS | 1.17.1-1ubuntu1.3 |
| wget | gnu | 1.19.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| GNU Project | Wget | prior to 1.19.2 |
| arch | wget | 0 |
| GNU Project | Wget | 1.19.2 |
| GNU Project | Wget | |
| alpine | wget | 0, 0, 0 |
Timeline
- Oct 27, 2017 CVE Published
- Nov 12, 2019 PoC Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 5, 2026 Distribution Patch (4 in total, the first dated here)
- Mar 5, 2026 Security Advisory (6 in total, the first dated here)
- Oct 3, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-13090
vulnetix vdb fixes CVE-2017-13090
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-13090/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- 101590 vdb-entryx_refsource_BID
- GLSA-201711-06 vendor-advisoryx_refsource_GENTOO
- DSA-4008 vendor-advisoryx_refsource_DEBIAN
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- 1039661 vdb-entryx_refsource_SECTRACK
- RHSA-2017:3075 vendor-advisoryx_refsource_REDHAT