Skip to content
OpenAdvisories
Medium USN-4247-1 2 CVEs

python-apt vulnerabilities

Published Jan 22, 2020 · Updated Apr 22, 2026

Summary

It was discovered that python-apt would still use MD5 hashes to validate
certain downloaded packages. If a remote attacker were able to perform a
machine-in-the-middle attack, this flaw could potentially be used to install
altered packages. (CVE-2019-15795)

It was discovered that python-apt could install packages from untrusted
repositories, contrary to expectations. (CVE-2019-15796)

Fixed packages 2

ReleasePackageFixed in
Ubuntu · 16.04 LTS 16.04:LTS python-apt 1.1.0~beta1ubuntu0.16.04.7
Ubuntu · 18.04 LTS 18.04:LTS python-apt 1.6.5ubuntu0.1

Vulnerabilities 2

  • Medium 4.7

    python-apt uses MD5 for validation

    python-apt only checks the MD5 sums of downloaded files in `Version.fetch_binary()` and `Version.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 p…

  • Medium 4.7

    python-apt downloads from untrusted sources

    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 shou…

References

  • report
    https://ubuntu.com/security/CVE-2019-15795
  • report
    https://ubuntu.com/security/CVE-2019-15796