CVE-2017-13089

Source
https://nvd.nist.gov/vuln/detail/CVE-2017-13089
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-13089.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2017-13089
Downstream
Related
Published
2017-10-27T19:29:00.330Z
Modified
2025-11-25T03:32:07.495112Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

The http.c:skipshortbody() 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:fdread(). As fdread() takes an int argument, the high 32 bits of the chunk length are discarded, leaving fd_read() with a completely attacker controlled length argument.

References

Affected packages

Git / git.savannah.gnu.org/git/wget.git

Affected ranges

Type
GIT
Repo
http://git.savannah.gnu.org/git/wget.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected

Git / cgit.git.savannah.gnu.org/cgit/wget.git

Affected ranges

Type
GIT
Repo
https://cgit.git.savannah.gnu.org/cgit/wget.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
d892291fb8ace4c3b734ea5125770989c215df3f