{"id":"CVE-2017-13089","published":"2017-10-27T19:00:00Z","modified":"2024-09-17T01:15:49Z","title":"GNU Wget: stack overflow in HTTP protocol handling","vendor":"GNU Project","product":"Wget","tier":"core","eol":null,"affectedVersions":[{"vendor":"GNU Project","product":"Wget","versions":["prior to 1.19.2"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"GNU Wget before 1.19.2 contains a stack-based buffer overflow in its HTTP protocol handling, specifically in the http.c skip_short_body() routine that processes chunked responses such as during redirects, where an unchecked negative chunk length from strtol() is passed to fd_read(), which discards the high 32 bits and leaves an attacker-controlled length. Exploitation requires a network-reachable server returning a crafted chunked response to a Wget client, with user interaction needed to trigger the request.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-07T13:30:46Z"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.79855,"percentile":0.99612,"date":"2026-11-06","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":2,"pulses":[{"name":"SCANID: S-KhOoOrXsco8: Thor Lite Linux 64 - Sample Lab Device 2 - incomplete (not enriched)","url":"https://otx.alienvault.com/pulse/67c6bb5aa601e91b1314ff44","created":"2025-03-04"},{"name":"Thor Lite Scan - 10.7.15 - Ubuntu Scan on Archived Files","url":"https://otx.alienvault.com/pulse/664cc3c1938ed0b9abf026a2","created":"2024-05-21"}],"provenance":"machine"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"references":[{"url":"https://www.viestintavirasto.fi/en/cybersecurity/vulnerabilities/2017/haavoittuvuus-2017-037.html","tags":["x_refsource_MISC"]},{"url":"https://security.gentoo.org/glsa/201711-06","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://www.debian.org/security/2017/dsa-4008","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.synology.com/support/security/Synology_SA_17_62_Wget","tags":["x_refsource_CONFIRM"]},{"url":"http://git.savannah.gnu.org/cgit/wget.git/commit/?id=d892291fb8ace4c3b734ea5125770989c215df3f","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/101592","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://github.com/r1b/CVE-2017-13089","tags":["x_refsource_MISC"]},{"url":"http://www.securitytracker.com/id/1039661","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://access.redhat.com/errata/RHSA-2017:3075","tags":["vendor-advisory","x_refsource_REDHAT"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2017-4607","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2017-4607","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2017-10-27","earliestUrl":"https://github.com/r1b/CVE-2017-13089","repos":[{"name":"mzeyong/CVE-2017-13089","url":"https://github.com/mzeyong/CVE-2017-13089","stars":55,"created":"2017-11-15"},{"name":"r1b/CVE-2017-13089","url":"https://github.com/r1b/CVE-2017-13089","stars":52,"created":"2017-10-27"}]},"first":{"date":"2017-10-27","source":"PoC-in-GitHub","url":"https://github.com/r1b/CVE-2017-13089"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2017-10-27","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2017-13089","provenance":"source"},{"date":"2017-10-27","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/r1b/CVE-2017-13089","provenance":"source"}],"speed":{"daysToPublicExploit":0,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":32.2,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.92,"detail":"percentile 0.9961"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 PoC-in-GitHub repos"},{"name":"Mentioned in OTX pulses","points":1.08,"detail":"2 pulses"},{"name":"CVSS severity","points":6.16,"detail":"base score 8.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}