python-apt downloads from untrusted sources
Canonical Python-apt
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| python-apt PyPI |
|
|
Canonical Python-apt
| Product | Affected | Fixed in |
|---|---|---|
| python-apt PyPI |
|
|
1.9.0ubuntu1.21.9.5Python-apt doesn't check if hashes are signed in `Version.fetch_binary()` and `Version.fetch_source()` of apt/package.py or in `_fetch_archives()` of apt/cache.py in version 1.9.3ubuntu2 and earlier. This allows downloads from unsigned repositories which shouldn't be allowed and has been fixed in verisions 1.9.5, 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 does not check whether hashes are signed when fetching packages through `Version.fetch_binary()`, `Version.fetch_source()`, or `_fetch_archives()`. This can allow downloads from unsigned repositories that should be disallowed. The input does not specify attacker access requirements or whether user interaction is needed.
Engineers using PyPI python-apt should check installations in the affected ranges below 0.8.3ubuntu7.5, 0.9.0 to below 0.9.3.5ubuntu3, 1.2.0 to below 1.6.5ubuntu0.1, 1.7.0 to below 1.9.0ubuntu1.2, or 1.9.1 to below 1.9.5.