Advisory

UBUNTU-CVE-2017-13090

Also known as: CVE-2017-13090

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2017-10-26 15:00 UTC
Modified
2026-02-04 04:11 UTC

Affected packages and fixes

wget

Debian packages (deb) · Ubuntu 14.04

Affected

  • introduced 0, fixed 1.15-1ubuntu1.14.04.3 (ecosystem)

Fixed versions

1.15-1ubuntu1.14.04.3

Fix

  • Fixed version 1.15-1ubuntu1.14.04.3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

wget

Debian packages (deb) · Ubuntu 16.04

Affected

  • introduced 0, fixed 1.17.1-1ubuntu1.3 (ecosystem)

Fixed versions

1.17.1-1ubuntu1.3

Fix

  • Fixed version 1.17.1-1ubuntu1.3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences