{"id":"CVE-2017-13089","url":"https://www.cyber-defence.io/tools/cve/CVE-2017-13089","generatedAt":"2026-10-29T02:45:07.901Z","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 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.","published":"2017-10-27T19:29:00.000Z","lastModified":"2026-06-17T01:04:31.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-121","CWE-119"],"affected":["gnu/wget","debian/debian linux"],"epss":{"score":0.79855,"percentile":0.99608,"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 79.9%, higher than 100% 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=d892291fb8ace4c3b734ea5125770989c215df3f","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/101592","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://github.com/r1b/CVE-2017-13089","tags":["Issue Tracking","Third Party Advisory"],"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=d892291fb8ace4c3b734ea5125770989c215df3f","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/101592","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://github.com/r1b/CVE-2017-13089","tags":["Issue Tracking","Third Party Advisory"],"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-13089","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."}