{"schemaVersion":3,"id":"CVE-2017-13090","aliases":["ALPINE-CVE-2017-13090","UBUNTU-CVE-2017-13090","DEBIAN-CVE-2017-13090"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2017-10-27T19:00:00.000Z","modified":"2024-09-16T18:23:48.006Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.3,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","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","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","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","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":9.3,"severity":"high","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Alpine","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","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","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","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","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","exploitability":7.2,"impact":9.8,"computed":true}]},"epss":{"probability":0.36563,"percentile":0.98484,"severity":"high","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.36563},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.36563,"percentile":0.98484}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.36563,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.36563,"percentile":0.98484}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-122","name":"Heap-based Buffer Overflow","description":"A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/122.html"},{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"}],"affected":[{"vendor":"alpine","product":"wget","name":"wget","label":"wget","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/wget","purlType":"apk","versions":[{"text":"< 1.19.2-r0","noFixRecorded":false,"fixedIn":null},{"text":"< 1.18-r2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.18-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.19.2-r0 | < 1.18-r2 | < 1.18-r3","eol":null,"hubHref":null},{"vendor":"debian","product":"wget","name":"wget","label":"wget","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/wget","purlType":"deb","versions":[{"text":"< 1.19.2-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.19.2-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"wget","name":"wget","label":"wget","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/wget","purlType":"deb","versions":[{"text":"< 1.15-1ubuntu1.14.04.3","noFixRecorded":false,"fixedIn":null},{"text":"< 1.17.1-1ubuntu1.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.15-1ubuntu1.14.04.3 | < 1.17.1-1ubuntu1.3","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.0","noFixRecorded":false,"fixedIn":null},{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.0 | 9.0","eol":{"isEol":true,"eolDate":"2020-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"8","label":"8 (Jessie)","eolFrom":"2020-06-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"8.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"gnu project","product":"wget","name":"Wget","label":"wget","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"prior to 1.19.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"prior to 1.19.2","eol":null,"hubHref":"/vendor/gnu_project/wget"},{"vendor":"gnu","product":"wget","name":"wget","label":"wget","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.19.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.19.1","eol":null,"hubHref":"/vendor/gnu/wget"}],"affectedCount":6,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://www.viestintavirasto.fi/en/cybersecurity/vulnerabilities/2017/haavoittuvuus-2017-037.html","label":"www.viestintavirasto.fi/en/cybersecurity/vulnerabilities/2017/haavoittuvuus-2017-037.html","hostname":"www.viestintavirasto.fi","tags":["X Refsource MISC","Issue Tracking","Patch","Third Party Advisory","REPORT"]},{"url":"http://www.securityfocus.com/bid/101590","label":"www.securityfocus.com/bid/101590","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Issue Tracking","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/201711-06","label":"security.gentoo.org/glsa/201711-06","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Issue Tracking","Third Party Advisory"]},{"url":"http://www.debian.org/security/2017/dsa-4008","label":"www.debian.org/security/2017/dsa-4008","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Issue Tracking","Third Party Advisory"]},{"url":"https://www.synology.com/support/security/Synology_SA_17_62_Wget","label":"www.synology.com/support/security/Synology_SA_17_62_Wget","hostname":"www.synology.com","tags":["X Refsource CONFIRM"]},{"url":"http://git.savannah.gnu.org/cgit/wget.git/commit/?id=ba6b44f6745b14dce414761a8e4b35d31b176bba","label":"git.savannah.gnu.org/cgit/wget.git/commit/?id=ba6b44f6745b14dce414761a8e4b35d31b176bba","hostname":"git.savannah.gnu.org","tags":["X Refsource CONFIRM","Issue Tracking","Patch","Third Party Advisory"]},{"url":"http://www.securitytracker.com/id/1039661","label":"www.securitytracker.com/id/1039661","hostname":"www.securitytracker.com","tags":["VDB Entry","X Refsource SECTRACK","Issue Tracking","Third Party Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2017:3075","label":"access.redhat.com/errata/RHSA-2017:3075","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2017-13090","label":"security.alpinelinux.org/vuln/CVE-2017-13090","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2017-13090","label":"ubuntu.com/security/CVE-2017-13090","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-3464-1","label":"ubuntu.com/security/notices/USN-3464-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-3464-2","label":"ubuntu.com/security/notices/USN-3464-2","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-13090","label":"www.cve.org/CVERecord?id=CVE-2017-13090","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-13090","label":"security-tracker.debian.org/tracker/CVE-2017-13090","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-1149-1","DSA-4008-1","MGASA-2017-0396","OPENSUSE-SU-2024:11510-1","RHSA-2017:3075","SUSE-SU-2017:2871-1","SUSE-SU-2017:2871-2","USN-3464-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:11510-1","SUSE-SU-2017:2871-1","SUSE-SU-2017:2871-2","USN-3464-1"]},"timeline":[{"kind":"published","date":"2017-10-27T19:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-16T18:23:48.006Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T08:17:10.909Z","stale":false,"partial":false}}