PT-2017-3164

CVE-2017-13090

·

Published

2017-10-26

·

Updated

2026-10-01

Description by

CVSS 2.0
9.3
High
MetricsAV:N/AC:M/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions Wget versions prior to 1.19.2
Description The issue is related to insufficient input validation in the fd read body() function, which can lead to a buffer overflow. This occurs when processing OK responses sent chunked, where the chunk parser uses strtol() to read each chunk's length without checking if it's a non-negative number. The code then attempts to read the chunk in pieces, passing the negative chunk length to fd read(), allowing an attacker to corrupt malloc metadata after the allocated buffer. This can potentially enable a remote attacker to execute arbitrary code.
Recommendations For versions prior to 1.19.2, update to version 1.19.2 or later to resolve the issue. As a temporary workaround, consider restricting the use of chunked responses until a patch is available. Avoid using the fd read body() function in retr.c with untrusted input until the issue is resolved.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
ALT-PU-2017-2521
CESA-2017_3075
CLEANSTART-2026-JD74997
DLA-1149-1
DSA-4008-1
MGASA-2017-0396
OPENSUSE-SU-2017_2884-1
OPENSUSE-SU-2024:11510-1
RHSA-2017:3075
RHSA-2017_3075
SUSE-SU-2017:2871-1
SUSE-SU-2017:2871-2
USN-3464-1
USN-3464-2
Found an issue in the description? Have something to add? Feel free to write us 👾