CVE-2017-13089 GNU Wget: stack overflow in HTTP protocol handling
HighCVSS 8.8
EPSS 79.9%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/wget(Debian:12) | < 1.19.2-1 | 1.19.2-1 |
| debian/wget(Debian:13) | < 1.19.2-1 | 1.19.2-1 |
| debian/wget(Debian:14) | < 1.19.2-1 | 1.19.2-1 |
| GNU wget | <= 1.19.1 | No fix listed |
| debian linux | = 8.0 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| alpine/wget(Alpine:v3.4) | < 1.18-r2 | 1.18-r2 |
| alpine/wget(Alpine:v3.5) | < 1.18-r3 | 1.18-r3 |
| GNU Project Wget | = prior to 1.19.2 | No fix listed |
References
- Debian Security Tracker CVE-2017-13089 vendor-advisory
- git.savannah.gnu.org issue-tracking patch third-party-advisory
- DSA-4008 issue-tracking third-party-advisory vendor-advisory
- 101592 issue-tracking third-party-advisory vdb-entry
- 1039661 issue-tracking third-party-advisory vdb-entry
- RHSA-2017:3075 vendor-advisory
- github.com issue-tracking third-party-advisory
- GLSA-201711-06 issue-tracking third-party-advisory vendor-advisory
- www.synology.com
- www.viestintavirasto.fi issue-tracking patch third-party-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking