CVE-2019-15795: python-apt uses MD5 for validation
Last updated 25 August 2025
Other sources
python-apt only checks the MD5 sums of downloaded files in Version.fetchbinary() and Version.fetchsource() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/python-aptto a version that resolves this vulnerability.Fixed in 1.9.0ubuntu1.2 - Upgrade
Upgrade
pip/python-aptto a version that resolves this vulnerability.Fixed in 1.6.5ubuntu0.1 - Upgrade
Upgrade
pip/python-aptto a version that resolves this vulnerability.Fixed in 1.1.0 - Upgrade
Upgrade
pip/python-aptto a version that resolves this vulnerability.Fixed in 0.9.3.5ubuntu3 - Upgrade
Upgrade
pip/python-aptto a version that resolves this vulnerability.Fixed in 0.8.3ubuntu7.5 - Upgrade
Upgrade
debian/python-aptto a version that resolves this vulnerability.Fixed in 2.2.1Fixed in 2.2.1.1Fixed in 2.6.0Fixed in 3.0.0Fixed in 3.1.0 - Upgrade
Upgrade
python-aptto a version that resolves this vulnerability.Fixed in 1.9.0ubuntu1.2 - Upgrade
Upgrade
python-aptto a version that resolves this vulnerability.Fixed in 1.6.5ubuntu0.1 - Upgrade
Upgrade
python-aptto a version that resolves this vulnerability.Fixed in 1.1.0~beta1ubuntu0.16.04.7 - Upgrade
Upgrade
python-aptto a version that resolves this vulnerability.Fixed in 0.9.3.5ubuntu3+esm2 - Upgrade
Upgrade
python-aptto a version that resolves this vulnerability.Fixed in 0.8.3ubuntu7.5
Event History
Frequently Asked Questions
What is the severity of CVE-2019-15795?
CVE-2019-15795 has a medium severity rating, allowing for potential man-in-the-middle attacks.
How do I fix CVE-2019-15795?
The vulnerability can be addressed by upgrading to a patched version of python-apt, specifically version 1.9.0ubuntu1.2 or later.
What versions of python-apt are affected by CVE-2019-15795?
CVE-2019-15795 affects python-apt versions 1.9.0ubuntu1 and earlier.
Is my system vulnerable to CVE-2019-15795?
Check if you are running python-apt version 1.9.0ubuntu1 or earlier on your system to determine vulnerability.
What is the impact of CVE-2019-15795 on my system?
The vulnerability could allow attackers to install altered packages via unauthorized changes to the file download process.