Skip to content
OpenAdvisories
Medium · 4.7 CVE-2019-15796 EUVD-2022-4782GHSA-pj65-3pf6-c5q4

python-apt downloads from untrusted sources

Published Mar 26, 2020 · Updated Sep 16, 2024 · Assigned by canonical

Description

Python-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.

Affected products

VendorProductAffectedFixed
Canonical Python-apt 0.8.3 – < 0.8.3ubuntu7.5, 0.9.3.5 – < 0.9.3.5ubuntu3+esm2, 1.1.0 – < 1.1.0~beta1ubuntu0.16.04.7, 1.6.5 – < 1.6.5ubuntu0.1, 1.9.0 – < 1.9.0ubuntu1.2, 1.9.5 – < 1.9.5 0.8.3ubuntu7.5

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-apt 1.8.5 —
Debian 13 python-apt 1.8.5 —
Debian 12 python-apt 1.8.5 —
Debian 10 python-apt 1.8.4.1 DSA-4609-1
Debian 9 python-apt 1.4.1 DSA-4609-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 8 python-apt 0.9.3.13 DLA-2074-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS python-apt 1.6.5ubuntu0.1 USN-4247-1
Ubuntu 16.04 LTS python-apt 1.1.0~beta1ubuntu0.16.04.7 USN-4247-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS python-apt 0.9.3.5ubuntu3+esm2 USN-4247-3

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI python-apt < 0.8.3ubuntu7.5 0.8.3ubuntu7.5 GHSA-pj65-3pf6-c5q4
PyPI python-apt >= 0.9.0, < 0.9.3.5ubuntu3 0.9.3.5ubuntu3 GHSA-pj65-3pf6-c5q4
PyPI python-apt >= 1.2.0, < 1.6.5ubuntu0.1 1.6.5ubuntu0.1 GHSA-pj65-3pf6-c5q4
PyPI python-apt >= 1.7.0, < 1.9.0ubuntu1.2 1.9.0ubuntu1.2 GHSA-pj65-3pf6-c5q4
PyPI python-apt >= 1.9.1, < 1.9.5 1.9.5 GHSA-pj65-3pf6-c5q4

Advisories 4

References