CVE-2019-15796Ubuntu Python-apt
Medium 4.7 No auth needed
Follow: this CVE · Ubuntu · Ubuntu Python-apt We alert you by email or Slack (account required).
- Priority
- 43
- CVSS 3.1
- 4.7
- EPSS
- 0.5% probability of exploitation in 30 days · percentile 45
- Auth required
- No
- Published
- Mar 26, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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 shouldn't be allowed and has been fixed in verisions 1.9.5, 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.
What to do
- Apply the vendor's security update for Python-apt.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | python-apt |
< 0.8.3ubuntu7.5 |
0.8.3ubuntu7.5 |
pip install "python-apt>=0.8.3ubuntu7.5" |
| PyPI | python-apt |
≥ 0.9.0 < 0.9.3.5ubuntu3 |
0.9.3.5ubuntu3 |
pip install "python-apt>=0.9.3.5ubuntu3" |
| PyPI | python-apt |
≥ 1.2.0 < 1.6.5ubuntu0.1 |
1.6.5ubuntu0.1 |
pip install "python-apt>=1.6.5ubuntu0.1" |
| PyPI | python-apt |
≥ 1.7.0 < 1.9.0ubuntu1.2 |
1.9.0ubuntu1.2 |
pip install "python-apt>=1.9.0ubuntu1.2" |
| PyPI | python-apt |
≥ 1.9.1 < 1.9.5 |
1.9.5 |
pip install "python-apt>=1.9.5" |
Per OSV / GitHub Advisories (GHSA-pj65-3pf6-c5q4). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ubuntu | python-apt | 0.8.0 |
| ubuntu | python-apt | 0.8.1 |
| ubuntu | python-apt | 0.8.3 |
| ubuntu | python-apt | 0.8.3 |
| ubuntu | python-apt | 0.8.3 |
| ubuntu | python-apt | 0.8.3 |
| ubuntu | python-apt | 0.8.3 |
| ubuntu | python-apt | 0.8.3 |
| ubuntu | python-apt | 0.8.3 |
| ubuntu | python-apt | 0.8.3 |
| ubuntu | python-apt | 0.8.3 |
| ubuntu | python-apt | 0.8.3 |
| ubuntu | python-apt | 0.8.9.1 |
| ubuntu | python-apt | 0.8.9.1 |
| ubuntu | python-apt | 0.9.0 |
| ubuntu | python-apt | 0.9.1 |
| ubuntu | python-apt | 0.9.1 |
| ubuntu | python-apt | 0.9.1 |
| ubuntu | python-apt | 0.9.1 |
| ubuntu | python-apt | 0.9.3.1 |
| ubuntu | python-apt | 0.9.3.2 |
| ubuntu | python-apt | 0.9.3.2 |
| ubuntu | python-apt | 0.9.3.2 |
| ubuntu | python-apt | 0.9.3.3 |
| ubuntu | python-apt | 0.9.3.3 |
| ubuntu | python-apt | 0.9.3.4 |
| ubuntu | python-apt | 0.9.3.4 |
| ubuntu | python-apt | 0.9.3.5 |
| ubuntu | python-apt | 0.9.3.5 |
| ubuntu | python-apt | 0.9.3.5 |
| ubuntu | python-apt | 0.9.3.5 |
| ubuntu | python-apt | 1.0.1 |
| ubuntu | python-apt | 1.0.1 |
| ubuntu | python-apt | 1.0.1 |
| ubuntu | python-apt | 1.1.0 |
| ubuntu | python-apt | 1.1.0 |
| ubuntu | python-apt | 1.1.0 |
| ubuntu | python-apt | 1.1.0 |
| ubuntu | python-apt | 1.1.0 |
| ubuntu | python-apt | 1.1.0 |
| ubuntu | python-apt | 1.1.0 |
| debian | python-apt | 1.8.4 |
| ubuntu | python-apt | 1.4.0 |
| ubuntu | python-apt | 1.4.0 |
| ubuntu | python-apt | 1.4.0 |
| ubuntu | python-apt | 1.6.0 |
| ubuntu | python-apt | 1.6.0 |
| ubuntu | python-apt | 1.6.0 |
| ubuntu | python-apt | 1.6.0 |
| ubuntu | python-apt | 1.6.0 |
| ubuntu | python-apt | 1.6.1 |
| ubuntu | python-apt | 1.6.2 |
| ubuntu | python-apt | 1.6.3 |
| ubuntu | python-apt | 1.6.3 |
| ubuntu | python-apt | 1.6.4 |
| ubuntu | python-apt | 1.8.4 |
| ubuntu | python-apt | 1.9.0 |
| ubuntu | python-apt | 1.9.0 |
| ubuntu | python-apt | 1.9.0 |
| ubuntu | python-apt | 1.7.0 |
and 6 more in the JSON
Official sources
References
Links published by the sources. Open them with care.
- usn.ubuntu.com Patch Third Party Advisory
- usn.ubuntu.com Patch Third Party Advisory