CVE-2017-13089

Source
https://nvd.nist.gov/vuln/detail/CVE-2017-13089
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-13089.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2017-13089
Related
Published
2017-10-27T19:29:00Z
Modified
2024-09-11T04:15:16.988992Z
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

Alpine:v3.4 / wget

Package

Name
wget
Purl
pkg:apk/alpine/wget?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.18-r2

Affected versions

1.*

1.11.4-r0
1.11.4-r1
1.12-r0
1.12-r1
1.12-r2
1.12-r3
1.12-r4
1.13-r0
1.13.1-r0
1.13.1-r1
1.13.3-r0
1.13.4-r0
1.14-r0
1.14-r1
1.15-r0
1.16-r0
1.16.1-r0
1.16.2-r0
1.16.3-r0
1.16.3-r1
1.17-r0
1.17.1-r0
1.17.1-r1
1.18-r0
1.18-r1

Alpine:v3.5 / wget

Package

Name
wget
Purl
pkg:apk/alpine/wget?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.18-r3

Affected versions

1.*

1.11.4-r0
1.11.4-r1
1.12-r0
1.12-r1
1.12-r2
1.12-r3
1.12-r4
1.13-r0
1.13.1-r0
1.13.1-r1
1.13.3-r0
1.13.4-r0
1.14-r0
1.14-r1
1.15-r0
1.16-r0
1.16.1-r0
1.16.2-r0
1.16.3-r0
1.16.3-r1
1.17-r0
1.17.1-r0
1.18-r0
1.18-r1
1.18-r2

Debian:11 / wget

Package

Name
wget
Purl
pkg:deb/debian/wget?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.19.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / wget

Package

Name
wget
Purl
pkg:deb/debian/wget?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.19.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / wget

Package

Name
wget
Purl
pkg:deb/debian/wget?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.19.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}