CVE-2017-13089: GNU Wget: stack overflow in HTTP protocol handling
Vulnerability summary
CVE-2017-13089 is a high (CVSS 9.3) Stack-based Buffer Overflow vulnerability in debian debian_linux. EPSS estimates a 79.86% chance of exploitation in the next 30 days, higher than 99.6% 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.
- 17-09-2024Last modifiedVulnerability information updated.
Description
The http.c:skip_short_body() function is called in some circumstances, such as when processing redirects. 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 skip the chunk in pieces of 512 bytes by using the MIN() macro, but ends up passing the negative chunk length to connect.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.
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
79.86%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
No change 0.00 pp
From 79.86% 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-121Stack-based Buffer OverflowThe product writes past the end of a buffer that was allocated on the stack.
- 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.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
15 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=d892291fb8ace4c3b734ea5125770989c215df3fX Refsource CONFIRMIssue TrackingPatchThird Party Advisory