CVE-2017-13090
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 chunks length, but doesnt 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.
Risk Information
Associated Vulnerability
| Vulnerability | OS Platform |
|---|---|
| retrieves files from the web (USN-3464-1) wget_1.18-2ubuntu1.1_i386.deb | Linux |
| retrieves files from the web (USN-3464-1) wget_1.18-2ubuntu1.1_amd64.deb | Linux |
| retrieves files from the web (USN-3464-1) wget_1.19.1-3ubuntu1.1_amd64.deb | Linux |
| wget security update(DSA-4008-1) wget_1.18-5_i386.deb | Linux |
| (RHSA-2017:3075) Important: wget security update wget-1.14-15.el7_4.1.x86_64.rpm | Linux |
| SUSE-SU-2017:2871-2(SUSE Linux Enterprise Desktop 12-SP2 ) wget-1.14-21.3.1.x86_64.rpm | Linux |
| SUSE-SU-2017:2871-2(SUSE Linux Enterprise Desktop 12-SP2 ) wget-debuginfo-1.14-21.3.1.x86_64.rpm | Linux |
| SUSE-SU-2017:2871-2(SUSE Linux Enterprise Desktop 12-SP2 ) wget-debugsource-1.14-21.3.1.x86_64.rpm | Linux |
| (CESA-2017:3075) Important: wget security update wget-1.14-15.el7_4.1.x86_64.rpm | Linux |
| Improper Restriction of Operations within the Bounds of a Memory Buffer Vulnerability (CVE-2017-13090) | NCM |
Patch Details
No records foundReferences
https://nvd.nist.gov/vuln/detail/CVE-2023-1234
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-1234