VDB

CVE-2017-13089

CVE-2017-13089 PUBLISHED CVSS 8.8 HIGH

GNU Wget: stack overflow in HTTP protocol handling

Reported by certcc · Published October 27, 2017

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
wgetArch Linux1.19.2-1
wgetAlpine1.18-r3, 1.18-r2
wgetgnu1.19.1

Risk scores

CVSS 3.0
8.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
GNU ProjectWgetprior to 1.19.2
archwget0
alpinewget0, 0
GNU ProjectWget1.19.2
GNU ProjectWget

Timeline

  • Oct 27, 2017 CVE Published
  • Nov 27, 2017 PoC Published (2 in total, the first dated here)
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 5, 2026 Distribution Patch (4 in total, the first dated here)
  • Mar 5, 2026 Security Advisory (6 in total, the first dated here)
  • Oct 3, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2017-13089
vulnetix vdb fixes CVE-2017-13089

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-13089/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

  • x_refsource_MISC
  • GLSA-201711-06 vendor-advisoryx_refsource_GENTOO
  • DSA-4008 vendor-advisoryx_refsource_DEBIAN
  • x_refsource_CONFIRM
  • x_refsource_CONFIRM
  • 101592 vdb-entryx_refsource_BID
  • x_refsource_MISC
  • 1039661 vdb-entryx_refsource_SECTRACK
  • RHSA-2017:3075 vendor-advisoryx_refsource_REDHAT
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›