CVE-2017-13090: debian debian_linux Heap-based Buffer Overflow
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.4% of scored vulnerabilities.
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
98%
Versus all other CVEs
30-day change
0.00 pp
From 36.56% 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-122Heap-based Buffer OverflowA heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
- 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.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