CVE-2017-13089

Summary

CVECVE-2017-13089
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2017-10-27 19:29:00 UTC
Updated2017-12-30 02:29:00 UTC
DescriptionThe 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.

Risk And Classification

Problem Types: CWE-119

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 8.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Operating System Debian Debian Linux 8.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Application Gnu Wget All All All All

References

ReferenceSourceLinkTags
wget Buffer Overflows in Processing HTTP Data Lets Remote Users Execute Arbitrary Code - SecurityTracker SECTRACK www.securitytracker.com Issue Tracking, Third Party Advisory, VDB Entry
GitHub - r1b/CVE-2017-13089: PoC for wget v1.19.1 MISC github.com Issue Tracking, Third Party Advisory
Debian -- Security Information -- DSA-4008-1 wget DEBIAN www.debian.org Issue Tracking, Third Party Advisory
wget.git - GNU Wget CONFIRM git.savannah.gnu.org Issue Tracking, Patch, Third Party Advisory
GNU Wget: Multiple vulnerabilities (GLSA 201711-06) — Gentoo Security GENTOO security.gentoo.org Issue Tracking, Third Party Advisory
Red Hat Customer Portal REDHAT access.redhat.com
GNU wget CVE-2017-13089 Stack Buffer Overflow Vulnerability BID www.securityfocus.com Issue Tracking, Third Party Advisory, VDB Entry
Synology-SA-17:62 Wget | Synology Inc. CONFIRM www.synology.com
Viestintävirasto - Critical vulnerabilities in Wget MISC www.viestintavirasto.fi Issue Tracking, Patch, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 378216 Virtuozzo Linux Security Update for wget (VZLSA-2017:3075)
  • 710494 Gentoo Linux GNU Wget Multiple Vulnerabilities (GLSA 201711-06)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report