CVE-2017-13089

GNU Wget: stack overflow in HTTP protocol handling

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.

Categories

8.8
CVSS
Severity: High
CVSS 3.0 •
CVSS 2.0 •
EPSS 66.63% Top 5%
Vendor Advisory gentoo.org Vendor Advisory debian.org Vendor Advisory redhat.com
Affected: GNU Project Wget
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2017-13089?
CVE-2017-13089 has been scored as a high severity vulnerability.
How to fix CVE-2017-13089?
To fix CVE-2017-13089, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2017-13089 being actively exploited in the wild?
It is possible that CVE-2017-13089 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~67% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2017-13089?
CVE-2017-13089 affects GNU Project Wget.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.