MEDIUM4.7
GHSA-pj65-3pf6-c5q4
python-apt Does Not Check Hash Signature
Quick fix
GHSA-pj65-3pf6-c5q4 — python-apt: upgrade to the fixed version with the command below.
pip install --upgrade 'python-apt>=0.8.3ubuntu7.5'Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/python-apt
Introduced in:
0Fixed in: 0.8.3ubuntu7.5Fix
pip install --upgrade 'python-apt>=0.8.3ubuntu7.5'PyPI/python-apt
Introduced in:
0.9.0Fixed in: 0.9.3.5ubuntu3Fix
pip install --upgrade 'python-apt>=0.9.3.5ubuntu3'PyPI/python-apt
Introduced in:
1.2.0Fixed in: 1.6.5ubuntu0.1Fix
pip install --upgrade 'python-apt>=1.6.5ubuntu0.1'PyPI/python-apt
Introduced in:
1.7.0Fixed in: 1.9.0ubuntu1.2Fix
pip install --upgrade 'python-apt>=1.9.0ubuntu1.2'