cve.bz

CVE-2017-13089 Stack-based Buffer Overflow

8.8 highEPSS 80%Fix available

High (8.8). EPSS 80% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

8.8 high
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
80% (unchanged from 80% a week ago; 80% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
CWE-121 Stack-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-13089 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-13089?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-13089?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-13089 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:wgetthrough 1.19.1
debian:debian_linux8.0
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7wget1.13.4-3+deb7u5DLA-1149-1
Debian8wget1.16-1+deb8u4DSA-4008-1
Debian9wget1.18-5+deb9u1DSA-4008-1
Debian12, 13, 14wget1.19.2-1DEBIAN-CVE-2017-13089
Ubuntu14.04:LTSwget1.15-1ubuntu1.14.04.3UBUNTU-CVE-2017-13089 USN-3464-1
Ubuntu16.04:LTSwget1.17.1-1ubuntu1.3UBUNTU-CVE-2017-13089 USN-3464-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morewget, wget-debuginfo0:1.14-15.el7_4.1RHSA-2017:3075
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP1-LTSS and 7 morewget1.14-21.3.1SUSE-SU-2017:2871-2
SUSELinux Enterprise Server for Raspberry Pi 12 SP2wget1.14-21.3.1SUSE-SU-2017:2871-1
openSUSETumbleweedwget1.21.1-2.2openSUSE-SU-2024:11510-1
Alpinev3.4wget1.18-r2ALPINE-CVE-2017-13089
Alpinev3.5wget1.18-r3ALPINE-CVE-2017-13089

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue affects the versions of wget as shipped with Red Hat Enterprise Linux 7. This issue did not affect the versions of wget as shipped with Red Hat Enterprise Linux 5 and 6.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7wget-0:1.14-15.el7_4.1Fixed 2017-10-26RHSA-2017:3075
Red Hat Enterprise Linux 5wgetNot affected
Red Hat Enterprise Linux 6wgetNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-13089.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON