Buffer overflow in GNU Wget
CVE-2017-13089
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.799 (99.6th percentile), scored .
High probability of exploitation in the next 30 days — patch promptly. 100th percentile — 99.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.799 · newest: 0.799 · change: 0.000
Affected products
- GNU Wget
- GNU Project Wget — versions prior to 1.19.2
- Debian Linux — versions 8.0, 9.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- www.viestintavirasto.fi/en/cybersecurity/vulnerabilities/2017/haavoittuvuus-201… (Patch, Third Party Advisory, Issue Tracking)
- security.gentoo.org/glsa/201711-06 (vendor-advisory, Third Party Advisory, Issue Tracking)
- www.debian.org/security/2017/dsa-4008 (vendor-advisory, Third Party Advisory, Issue Tracking)
- www.synology.com/support/security/Synology_SA_17_62_Wget
- git.savannah.gnu.org/cgit/wget.git/commit/ (Patch, Third Party Advisory, Issue Tracking)
- www.securityfocus.com/bid/101592 (VDB Entry, Third Party Advisory, vdb-entry, Issue Tracking)
- github.com/r1b/CVE-2017-13089 (Third Party Advisory, Issue Tracking)
- www.securitytracker.com/id/1039661 (VDB Entry, Third Party Advisory, vdb-entry, Issue Tracking)
- access.redhat.com/errata/RHSA-2017:3075 (vendor-advisory)
Frequently asked questions
- What is CVE-2017-13089?
- CVE-2017-13089 is a high-severity vulnerability in GNU Wget, classified under Stack-based Buffer Overflow. CVSS score: 8.8/10. Published 2017-10-27.
- How severe is CVE-2017-13089?
- High severity. CVSS v3 base score is 8.8 out of 10.
- Is CVE-2017-13089 known to be exploited?
- 8 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.