CVE-2017-13090

High

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.

SeverityHigh
CVSS8.8
Exploit probability—
ProductGnu Wget
PublishedOct 27, 2017
First seenOct 27, 2017
Weakness typeCWE-122CWE-122

How to fix

Affected products

ProductAffected versionsFixed in
gnu wgetv ≤ 1.19.1—
debian debian_linux8.0, 9.0—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.