python-apt Flawed Package Integrity Check
Moderate severity
GitHub Reviewed
Published
May 24, 2022
to the GitHub Advisory Database
•
Updated Sep 26, 2023
Package
Affected versions
< 0.8.3ubuntu7.5
>= 0.9.0, < 0.9.3.5ubuntu3
>= 1.0.0, < 1.1.0
>= 1.2.0, < 1.6.5ubuntu0.1
>= 1.7.0, < 1.9.0ubuntu1.2
Patched versions
0.8.3ubuntu7.5
0.9.3.5ubuntu3
1.1.0
1.6.5ubuntu0.1
1.9.0ubuntu1.2
Description
Published by the National Vulnerability Database
Mar 26, 2020
Published to the GitHub Advisory Database
May 24, 2022
Reviewed
Jul 18, 2023
Last updated
Sep 26, 2023
python-apt only checks the MD5 sums of downloaded files in
Version.fetch_binary()
andVersion.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.References