GNU Wget: stack overflow in HTTP protocol handling
No fixed version listed yet.Check the vendor advisory. References ↓
GNU Project · Wget
GNU Wget before 1.19.2 contains a stack-based buffer overflow in its HTTP protocol handling, specifically in the http.c skip_short_body() routine that processes chunked responses such as during redirects, where an unchecked negative chunk length from strtol() is passed to fd_read(), which discards the high 32 bits and leaves an attacker-controlled length. Exploitation requires a network-reachable server returning a crafted chunked response to a Wget client, with user interaction needed to trigger the request.
Official description · CVE.org
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.
- Exploited
- Not confirmed
- Reports
- 0
- Tactics
- 0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
Public exploit code (PoC-in-GitHub) was available the same day.
Affected versions and fixes
as published in the CVE recordGNU Project Wget
Affected: prior to 1.19.2
What security researchers reported
Not named in any threat report yetAlso mentioned in 2 community threat pulses (AlienVault OTX)
Weaker evidencePulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.