python-apt uses MD5 for validation
Canonical Python-apt
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| python-apt PyPI |
|
|
Canonical Python-apt
| Product | Affected | Fixed in |
|---|---|---|
| python-apt PyPI |
|
|
1.6.5ubuntu0.11.9.0ubuntu1.2python-apt only checks the MD5 sums of downloaded files in `Version.fetch_binary()` and `Version.fetch_source()` of apt/package.py in version 1.9.0ubuntu1 and earlier. This allows a man-in-the-middle attack which could potentially be used to install altered packages and has been fixed in versions 1.9.0ubuntu1.2, 1.6.5ubuntu0.1, 1.1.0~beta1ubuntu0.16.04.7, 0.9.3.5ubuntu3+esm2, and 0.8.3ubuntu7.5.
From the CVE record · canonical
Python-apt checks only MD5 sums for files downloaded by `Version.fetch_binary()` and `Version.fetch_source()`. A network man-in-the-middle attacker could potentially use this weakness to install altered packages. The input does not specify authentication or user-interaction requirements.
Engineers running PyPI python-apt in the listed affected ranges—below 0.8.3ubuntu7.5, 0.9.0 to below 0.9.3.5ubuntu3, 1.0.0 to below 1.1.0, 1.2.0 to below 1.6.5ubuntu0.1, or 1.7.0 to below 1.9.0ubuntu1.2—should check their versions.