CVE-2017-13089: debian debian_linux Stack-based Buffer Overflow
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.
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
0.00 pp
From 79.86% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-121Stack-based Buffer OverflowA stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).
- 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. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.
Affected systems
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