← Vulnerability feed

Vulnerability record · CVE-2017-13089 · published 27 October 2017

CVE-2017-13089: GNU Wget chunked transfer parser stack buffer overflow

Gnu · Wget

Wget before 1.19.2 fails to validate that a chunk length in a chunked HTTP response is non-negative. A negative length is passed through MIN() to fd_read(), where truncation to int yields an attacker-controlled length, causing a stack-based buffer overflow. Because chunked responses are processed during normal operations such as redirects, a malicious or compromised server can corrupt memory in the client.

8.8 CVSS 3.0 High EPSS 80% · top 0.4% CWE-121 · Stack-based buffer overflowCWE-119 · Memory buffer overflow
8.8CVSS 3.0 base score, v2 9.3
80%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
18References
17 Jun 2026Last modified by NVD

Description

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.

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

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

high priorityCVSS 8.8 with no privileges required and high EPSS, though exploitation requires the victim to fetch a malicious chunked response.

What it is

Wget before 1.19.2 fails to validate that a chunk length in a chunked HTTP response is non-negative. A negative length is passed through MIN() to fd_read(), where truncation to int yields an attacker-controlled length, causing a stack-based buffer overflow. Because chunked responses are processed during normal operations such as redirects, a malicious or compromised server can corrupt memory in the client.

Impact

An attacker who controls the HTTP response can corrupt stack memory in the wget process, potentially achieving arbitrary code execution in the context of the user running wget. The CVSS vector rates confidentiality, integrity and availability impact as high.

Attack surface

Reached over the network via a crafted chunked HTTP response, including during redirect handling; the CVSS vector requires user interaction (UI:R) and no privileges (PR:N), meaning the victim must run wget against the attacker-controlled or compromised endpoint.

Exploitation

Not listed in CISA KEV and no ransomware usage is documented, but EPSS is very high at 0.79855 (99.59th percentile), and public references include a GitHub repository for the CVE alongside patch and advisory links.

What to do

  • Upgrade wget to 1.19.2 or later, or apply the vendor patch referenced in the GNU Savannah commit.
  • Apply distribution updates for affected packages (Debian DSA-4008, Red Hat RHSA-2017:3075, Gentoo GLSA 201711-06, Synology SA_17_62).
  • Avoid running wget against untrusted or unauthenticated HTTP endpoints where possible.
  • Where wget is embedded in appliances or scripts, inventory and update those bundled copies, not just the OS package.

Detection

  • Monitor for wget crashes or abnormal process termination when fetching HTTP resources, especially around redirects.
  • Inspect network or proxy logs for chunked HTTP responses with malformed or negative chunk-size values reaching wget clients.
  • Track wget versions in use across hosts and flag any below 1.19.2.
  • Watch for unexpected child processes or outbound connections spawned by wget, which could indicate post-exploitation activity.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://git.savannah.gnu.org/cgit/wget.git/commit/?id=d892291fb8ace4c3b734ea5125770989c215df3f Issue TrackingPatchThird Party Advisory
http://www.debian.org/security/2017/dsa-4008 Issue TrackingThird Party Advisory
http://www.securityfocus.com/bid/101592 Issue TrackingThird Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1039661 Issue TrackingThird Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2017:3075
https://github.com/r1b/CVE-2017-13089 Issue TrackingThird Party Advisory
https://security.gentoo.org/glsa/201711-06 Issue TrackingThird Party Advisory
https://www.synology.com/support/security/Synology_SA_17_62_Wget
https://www.viestintavirasto.fi/en/cybersecurity/vulnerabilities/2017/haavoittuvuus-2017-037.html Issue TrackingPatchThird Party Advisory
http://git.savannah.gnu.org/cgit/wget.git/commit/?id=d892291fb8ace4c3b734ea5125770989c215df3f Issue TrackingPatchThird Party Advisory
http://www.debian.org/security/2017/dsa-4008 Issue TrackingThird Party Advisory
http://www.securityfocus.com/bid/101592 Issue TrackingThird Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1039661 Issue TrackingThird Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2017:3075
https://github.com/r1b/CVE-2017-13089 Issue TrackingThird Party Advisory
https://security.gentoo.org/glsa/201711-06 Issue TrackingThird Party Advisory
https://www.synology.com/support/security/Synology_SA_17_62_Wget
https://www.viestintavirasto.fi/en/cybersecurity/vulnerabilities/2017/haavoittuvuus-2017-037.html Issue TrackingPatchThird Party Advisory

Track CVE-2017-13089 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2017-13089), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.