CVE-2017-13089GNU Wget: stack overflow in HTTP protocol handling
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | wget | Fixed | 1.17.1-1ubuntu1.3 | UBUNTU-CVE-2017-13089 |
| Ubuntu 14.04 | wget | Fixed | 1.15-1ubuntu1.14.04.3 | UBUNTU-CVE-2017-13089 |
| Debian 14 | wget | Fixed | 1.19.2-1 | DEBIAN-CVE-2017-13089 |
| Debian 13 | wget | Fixed | 1.19.2-1 | DEBIAN-CVE-2017-13089 |
| Debian 12 | wget | Fixed | 1.19.2-1 | DEBIAN-CVE-2017-13089 |
| Red Hat Enterprise Linux 7 | wget | Fixed | 0:1.14-15.el7_4.1 | RHSA-2017:3075 |
| Red Hat Enterprise Linux 6 | wget | Not affected | ||
| Red Hat Enterprise Linux 5 | wget | Not affected | ||
| Alpine Linux 3.5 | wget | Fixed | 1.18-r3 | ALPINE-CVE-2017-13089 |
| Alpine Linux 3.4 | wget | Fixed | 1.18-r2 | ALPINE-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.
- GNU Project Wget: affected: prior to 1.19.2
Vendor advisories:
- https://security.gentoo.org/glsa/201711-06 (vendor-advisory)
- http://www.debian.org/security/2017/dsa-4008 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:3075 (vendor-advisory)
References
- https://www.viestintavirasto.fi/en/cybersecurity/vulnerabilities/2017/haavoittuvuus-2017-037.html
- https://security.gentoo.org/glsa/201711-06
- http://www.debian.org/security/2017/dsa-4008
- https://www.synology.com/support/security/Synology_SA_17_62_Wget
- http://git.savannah.gnu.org/cgit/wget.git/commit/?id=d892291fb8ace4c3b734ea5125770989c215df3f
- http://www.securityfocus.com/bid/101592
- https://github.com/r1b/CVE-2017-13089
- http://www.securitytracker.com/id/1039661
- https://access.redhat.com/errata/RHSA-2017:3075
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.