{"id":"CVE-2019-15795","published":"2020-03-26T13:00:21Z","modified":"2024-09-16T19:45:50Z","title":"python-apt uses MD5 for validation","vendor":"Canonical","product":"Python-apt","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00451,"percentile":0.4006,"provenance":"source"},"cwes":[{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm"}],"references":[{"url":"https://usn.ubuntu.com/4247-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://usn.ubuntu.com/4247-3/","tags":["vendor-advisory","x_refsource_UBUNTU"]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":8.01},{"name":"CVSS severity","points":3.29}]},"vendorSlug":"canonical","affectedVersions":[{"vendor":"Canonical","product":"Python-apt","versions":[">= 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"]}],"affected":[{"ecosystem":"PyPI","package":"python-apt","vulnerableRanges":["<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":["0.8.3ubuntu7.5","0.9.3.5ubuntu3","1.1.0","1.6.5ubuntu0.1","1.9.0ubuntu1.2"],"from":["GHSA-rp8m-h266-53jh"],"provenance":"source"}],"summary":{"text":"The flaw lies in Canonical's Python-apt, where the Version.fetch_binary() and Version.fetch_source() methods in apt/package.py validate downloaded files only with MD5 checksums, a weak cryptographic algorithm. An attacker positioned as a man-in-the-middle on the network path, with user interaction required to trigger the download, could exploit this to get altered packages installed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:39Z"},"euvd":{"id":"EUVD-2022-5210","exploited":false,"provenance":"source"}}