CVE-2017-13090 GNU Wget: heap overflow in HTTP protocol handling
An attacker can trigger a heap overflow in GNU Wget via crafted HTTP chunked responses, potentially leading to arbitrary code execution or privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2017-13090?
CVE-2017-13090 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 27 Oct 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Which versions are affected by CVE-2017-13090?
It affects 2 products.
Products include Debian Debian Linux, Gnu Wget.
How do I fix CVE-2017-13090?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2017-13090 being exploited?
There is no known exploitation of CVE-2017-13090 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as ALPINE-CVE-2017-13090, CLEANSTART-2026-JD74997, DEBIAN-CVE-2017-13090, GHSA-55r8-x68f-xh64, UBUNTU-CVE-2017-13090.