CVE-2017-13089

GNU Wget: stack overflow in HTTP protocol handling

HIGH
8.8
CVSS Score
Published: October 27, 2017 at 07:00 PM UTC
Updated: June 17, 2026 at 01:04 AM UTC
2 products affected across 2 vendorsDebian LinuxWget

Using Wget by GNU Project?

Get instant alerts when new vulnerabilities affect Wget - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 80%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≤ 1.19.1
Affected range stops below 1.19.2, so it looks safe — our inference, not a vendor statement

References (9)

Vendor Advisoryx_refsource_DEBIANIssue TrackingThird Party Advisory
http://www.debian.org/security/2017/dsa-4008
VDB Entryx_refsource_BIDIssue TrackingThird Party Advisory
http://www.securityfocus.com/bid/101592
VDB Entryx_refsource_SECTRACKIssue TrackingThird Party Advisory
http://www.securitytracker.com/id/1039661
x_refsource_MISCIssue TrackingThird Party Advisory
https://github.com/r1b/CVE-2017-13089
Vendor Advisoryx_refsource_GENTOOIssue TrackingThird Party Advisory
https://security.gentoo.org/glsa/201711-06

CVSS

8.8HIGHcertcc
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-121CWE-119

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card