CVEfocus › CVE database › CVE-2017-13089

CVE-2017-13089GNU Wget: stack overflow in HTTP protocol handling

CVSS 8.8 HighEPSS 79.9% (in the top 1% of all CVEs)Published 2017-10-27Updated 2024-09-17Assigner: certcc

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.

CWE-121

What to do

Likely to be exploited: EPSS gives a 80% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

8Fixed
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 16.04wgetFixed1.17.1-1ubuntu1.3UBUNTU-CVE-2017-13089
Ubuntu 14.04wgetFixed1.15-1ubuntu1.14.04.3UBUNTU-CVE-2017-13089
Debian 14wgetFixed1.19.2-1DEBIAN-CVE-2017-13089
Debian 13wgetFixed1.19.2-1DEBIAN-CVE-2017-13089
Debian 12wgetFixed1.19.2-1DEBIAN-CVE-2017-13089
Red Hat Enterprise Linux 7wgetFixed0:1.14-15.el7_4.1RHSA-2017:3075
Red Hat Enterprise Linux 6wgetNot affected
Red Hat Enterprise Linux 5wgetNot affected
Alpine Linux 3.5wgetFixed1.18-r3ALPINE-CVE-2017-13089
Alpine Linux 3.4wgetFixed1.18-r2ALPINE-CVE-2017-13089

What the vendor says

As published in the CVE record by certcc, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.