# CVE-2019-15795: python-apt uses MD5 for validation

- Priority: **Routine**
- Reason: Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2020-03-26 · Modified: 2024-09-16
- Aliases: GHSA-rp8m-h266-53jh, UBUNTU-CVE-2019-15795, DEBIAN-CVE-2019-15795
- Record: https://cvemate.com/vulnerability/CVE-2019-15795 · JSON: https://cvemate.com/vulnerability/CVE-2019-15795/json

## Description

```text
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 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.
```

## Signals

- CVSS: 4.7 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.451%, percentile 40.916%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- 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
- debian python-apt (Debian): \< 1.8.5
- ubuntu python-apt (Ubuntu): \< 0.9.3.5ubuntu3+esm2 \| \< 1.1.0~beta1ubuntu0.16.04.7 \| \< 1.6.5ubuntu0.1
- debian python-apt: 1.8.4
- PyPI python-apt (PyPI): \< 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
- ubuntu python-apt: 0.8.0:ubuntu9 \| 0.8.1:ubuntu1 \| 0.8.3:ubuntu1 \| 0.8.3:ubuntu2 \| 0.8.3:ubuntu3 \| 0.8.3:ubuntu4 \| 0.8.3:ubuntu5 \| 0.8.3:ubuntu6 \| 0.8.3:ubuntu7 \| 0.8.3:ubuntu7.1 \| 0.8.3:ubuntu7.2 \| 0.8.3:ubuntu7.3 \| 0.8.9.1 \| 0.8.9.1:ubuntu1 \| 0.9.0 \| 0.9.1 \| 0.9.1:build1 \| 0.9.1:build2 \| 0.9.1:ubuntu1 \| 0.9.3.1 \| 0.9.3.2 \| 0.9.3.2:ubuntu1 \| 0.9.3.2:ubuntu2 \| 0.9.3.3 \| 0.9.3.3:ubuntu1 \| 0.9.3.4 \| 0.9.3.4:build1 \| 0.9.3.5 \| 0.9.3.5:ubuntu1 \| 0.9.3.5:ubuntu2 \| 0.9.3.5:ubuntu3 \| 1.0.1:build1 \| 1.0.1:ubuntu1 \| 1.0.1:ubuntu2 \| 1.1.0:beta1 \| 1.1.0:beta1build1 \| 1.1.0:beta1ubuntu0.16.04.1 \| 1.1.0:beta1ubuntu0.16.04.2 \| 1.1.0:beta1ubuntu0.16.04.3 \| 1.1.0:beta1ubuntu0.16.04.4 \| 1.1.0:beta1ubuntu0.16.04.5 \| 1.4.0 \| 1.4.0:beta3build2 \| 1.4.0:beta3ubuntu1 \| 1.6.0 \| 1.6.0:rc1 \| 1.6.0:rc2ubuntu1 \| 1.6.0:rc2ubuntu2 \| 1.6.0:rc3 \| 1.6.1 \| 1.6.2 \| 1.6.3 \| 1.6.3:ubuntu1 \| 1.6.4 \| 1.8.4 \| 1.9.0:alpha0\\~ubuntu1 \| 1.9.0:alpha0\\~ubuntu2 \| 1.9.0:ubuntu1 \| 1.7.0 \| 1.8.0 \| 1.8.0:alpha0\\~ubuntu1 \| 1.8.0:alpha0\\~ubuntu2 \| 1.8.1 \| 1.8.2 \| 1.8.3

## References

- <https://usn.ubuntu.com/4247-1/>
- <https://usn.ubuntu.com/4247-3/>
- <https://nvd.nist.gov/vuln/detail/CVE-2019-15795>
- <https://github.com/excid3/python-apt>
- <https://usn.ubuntu.com/4247-1>
- <https://usn.ubuntu.com/4247-3>
- <https://ubuntu.com/security/CVE-2019-15795>
- <https://ubuntu.com/security/notices/USN-4247-1>
- <https://ubuntu.com/security/notices/USN-4247-3>
- <https://www.cve.org/CVERecord?id=CVE-2019-15795>
- <https://security-tracker.debian.org/tracker/CVE-2019-15795>

---

Data as of 2026-12-05T02:33:49.866Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
