cve.bz

CVE-2017-13090 Heap-based Buffer Overflow

8.8 highEPSS 37%Fix available

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

On this page
The retr.c:fd_read_body() function is called when processing OK responses. 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 read the chunk in pieces of 8192 bytes by using the MIN() macro, but ends up passing the negative chunk length to retr.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. The attacker can corrupt malloc metadata after the allocated buffer.

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
37% (unchanged from 37% a week ago; 37% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th 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-122 Heap-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-13090 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-13090?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-13090?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-13090 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-13090
Ubuntu14.04:LTSwget1.15-1ubuntu1.14.04.3UBUNTU-CVE-2017-13090 USN-3464-1
Ubuntu16.04:LTSwget1.17.1-1ubuntu1.3UBUNTU-CVE-2017-13090 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-13090
Alpinev3.5wget1.18-r3ALPINE-CVE-2017-13090
Alpinev3.6, v3.7, v3.8 and 16 morewget1.19.2-r0ALPINE-CVE-2017-13090

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-13090.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

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