CVE-2017-13090: GNU Wget: heap overflow in HTTP protocol handling
Vulnerability summary
CVE-2017-13090 is a high (CVSS 9.3) Heap-based Buffer Overflow vulnerability in debian debian_linux. EPSS estimates a 36.56% chance of exploitation in the next 30 days, higher than 98.5% of scored vulnerabilities.
Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 8 · Related 4Timeline
- 27-10-2017PublishedVulnerability first disclosed.
- 16-09-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 5 sources · 2 versions- NVDNIST8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
36.56%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
No change 0.00 pp
From 36.56% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-122Heap-based Buffer OverflowThe product writes past the end of a buffer that was allocated on the heap.
- CWE-119Improper Restriction of Operations within the Bounds of a Memory BufferThe product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary.
Affected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Debian2 products
- wget< 1.19.2-1
- debian_linuxEOL8.0 | 9.0
Alpine1 product
- wget< 1.19.2-r0 | < 1.18-r2 | < 1.18-r3
Gnu1 product
- wget≤ 1.19.1
Gnu project1 product
- wgetprior to 1.19.2
Ubuntu1 product
- wget< 1.15-1ubuntu1.14.04.3 | < 1.17.1-1ubuntu1.3
5 vendors · 6 products
References
14 links- www.viestintavirasto.fi/en/cybersecurity/vulnerabilities/2017/haavoittuvuus-2017-037.htmlX Refsource MISCIssue TrackingPatchThird Party AdvisoryREPORT
- security.gentoo.org/glsa/201711-06Vendor AdvisoryX Refsource GENTOOIssue TrackingThird Party Advisory
- www.debian.org/security/2017/dsa-4008Vendor AdvisoryX Refsource DEBIANIssue TrackingThird Party Advisory
- www.synology.com/support/security/Synology_SA_17_62_WgetX Refsource CONFIRM
- git.savannah.gnu.org/cgit/wget.git/commit/?id=ba6b44f6745b14dce414761a8e4b35d31b176bbaX Refsource CONFIRMIssue TrackingPatchThird Party Advisory