SecurityContext

CVE-2017-13090: wget - Buffer Overflow

  • Cve: CVE-2017-13090
  • Name: wget - Buffer Overflow
  • Description: 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.
  • Impact: Attackers can cause heap corruption, potentially leading to arbitrary code execution or denial of service.
  • Remediation: Update to version 1.19.2 or later.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution, denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.36563
  • Epss percentile: 0.98533
  • Assignee: [email protected]
  • Published at: 2017-10-27T19:29:00Z
  • Age in days: 3315
  • Modified at: 2026-06-17T01:04:31Z
  • Patch available: yes
  • References total: 8
  • Products total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2017-13090
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: requirements

Cwe

IdName
CWE-122Heap-based Buffer Overflow
CWE-119Improper Restriction of Operations within the Bounds of a Memory Buffer

Hackerone

  • Reports: 1
  • Rank: 5193

References

Same in every row:

  • Source: nvd
UrlTags
http://git.savannah.gnu.org/cgit/wget.git/commit/?id=ba6b44f6745b14dce414761a8e4b35d31b176bbaIssue Tracking, Patch, Third Party Advisory
https://www.viestintavirasto.fi/en/cybersecurity/vulnerabilities/2017/haavoittuvuus-2017-037.htmlIssue Tracking, Patch, Third Party Advisory
http://www.debian.org/security/2017/dsa-4008Issue Tracking, Third Party Advisory
http://www.securityfocus.com/bid/101590Issue Tracking, Third Party Advisory, VDB Entry
http://www.securitytracker.com/id/1039661Issue Tracking, Third Party Advisory, VDB Entry
https://security.gentoo.org/glsa/201711-06Issue Tracking, Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:3075
https://www.synology.com/support/security/Synology_SA_17_62_Wget

Products

ProductAffectedPlatform boundSourcesUrl
gnu:wget<= 1.19.1nonvd/v1/products/gnu/wget
debian:debian_linux= 9.0, = 8.0nonvd/v1/products/debian/debian_linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Hackerone reports: 1
  • Exposed hosts: 4706702
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since