CVE-2017-13090 GNU Wget: heap overflow in HTTP protocol handling
HighCVSS 8.8
EPSS 36.6%
- Published
- Updated
- Exploit status
- No public exploit known
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.
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.10) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.11) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.12) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.13) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.14) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.15) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.16) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.17) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.18) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.19) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.20) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.21) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.22) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.23) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.24) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.4) | < 1.18-r2 | 1.18-r2 |
| alpine/wget(Alpine:v3.5) | < 1.18-r3 | 1.18-r3 |
| alpine/wget(Alpine:v3.6) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.7) | < 1.19.2-r0 | 1.19.2-r0 |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/wget(Alpine:v3.8) | < 1.19.2-r0 | 1.19.2-r0 |
| alpine/wget(Alpine:v3.9) | < 1.19.2-r0 | 1.19.2-r0 |
| GNU Project Wget | = prior to 1.19.2 | No fix listed |
References
- Debian Security Tracker CVE-2017-13090 vendor-advisory
- git.savannah.gnu.org issue-tracking patch third-party-advisory
- DSA-4008 issue-tracking third-party-advisory vendor-advisory
- 101590 issue-tracking third-party-advisory vdb-entry
- 1039661 issue-tracking third-party-advisory vdb-entry
- RHSA-2017:3075 vendor-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