{"id":"CVE-2017-13090","url":"https://www.cyber-defence.io/tools/cve/CVE-2017-13090","generatedAt":"2026-10-28T21:23:48.832Z","title":"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.","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.","published":"2017-10-27T19:29:00.000Z","lastModified":"2026-06-17T01:04:32.000Z","status":"Modified","sourceIdentifier":"cret@cert.org","cvss":{"version":"3.0","score":8.8,"severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},"cwe":["CWE-122","CWE-119"],"affected":["gnu/wget","debian/debian linux"],"epss":{"score":0.36563,"percentile":0.98488,"date":"2026-10-27","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 36.6%, higher than 98% of all known CVEs. Patch or mitigate before the next change window."},"changes":[],"references":[{"url":"http://git.savannah.gnu.org/cgit/wget.git/commit/?id=ba6b44f6745b14dce414761a8e4b35d31b176bba","tags":["Issue Tracking","Patch","Third Party Advisory"],"source":"cret@cert.org"},{"url":"http://www.debian.org/security/2017/dsa-4008","tags":["Issue Tracking","Third Party Advisory"],"source":"cret@cert.org"},{"url":"http://www.securityfocus.com/bid/101590","tags":["Issue Tracking","Third Party Advisory","VDB Entry"],"source":"cret@cert.org"},{"url":"http://www.securitytracker.com/id/1039661","tags":["Issue Tracking","Third Party Advisory","VDB Entry"],"source":"cret@cert.org"},{"url":"https://access.redhat.com/errata/RHSA-2017:3075","source":"cret@cert.org"},{"url":"https://security.gentoo.org/glsa/201711-06","tags":["Issue Tracking","Third Party Advisory"],"source":"cret@cert.org"},{"url":"https://www.synology.com/support/security/Synology_SA_17_62_Wget","source":"cret@cert.org"},{"url":"https://www.viestintavirasto.fi/en/cybersecurity/vulnerabilities/2017/haavoittuvuus-2017-037.html","tags":["Issue Tracking","Patch","Third Party Advisory"],"source":"cret@cert.org"},{"url":"http://git.savannah.gnu.org/cgit/wget.git/commit/?id=ba6b44f6745b14dce414761a8e4b35d31b176bba","tags":["Issue Tracking","Patch","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.debian.org/security/2017/dsa-4008","tags":["Issue Tracking","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/bid/101590","tags":["Issue Tracking","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securitytracker.com/id/1039661","tags":["Issue Tracking","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://access.redhat.com/errata/RHSA-2017:3075","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/201711-06","tags":["Issue Tracking","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.synology.com/support/security/Synology_SA_17_62_Wget","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.viestintavirasto.fi/en/cybersecurity/vulnerabilities/2017/haavoittuvuus-2017-037.html","tags":["Issue Tracking","Patch","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2017-13090","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}