CVE-2017-13090

GNU Wget: heap overflow in HTTP protocol handling

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.

Categories

8.8
CVSS
Severity: High
CVSS 3.0 •
CVSS 2.0 •
EPSS 8.67% Top 10%
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-13090?
CVE-2017-13090 has been scored as a high severity vulnerability.
How to fix CVE-2017-13090?
To fix CVE-2017-13090, 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-13090 being actively exploited in the wild?
It is possible that CVE-2017-13090 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~9% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2017-13090?
CVE-2017-13090 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.