Description
Various memory and file descriptor leaks were found in apt-python files python/arfile.cc, python/tag.cc, python/tarfile.cc, aka GHSL-2020-170. This issue affects: python-apt 1.1.0~beta1 versions prior to 1.1.0~beta1ubuntu0.16.04.10; 1.6.5ubuntu0 versions prior to 1.6.5ubuntu0.4; 2.0.0ubuntu0 versions prior to 2.0.0ubuntu0.20.04.2; 2.1.3ubuntu1 versions prior to 2.1.3ubuntu1.1;
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Canonical | python-apt | 1.1.0~beta1 – < 1.1.0~beta1ubuntu0.16.04.10, 1.6.5ubuntu0 – < 1.6.5ubuntu0.4, 2.0.0ubuntu0 – < 2.0.0ubuntu0.20.04.2, 2.1.3ubuntu1 – < 2.1.3ubuntu1.1 | 1.1.0~beta1ubuntu0.16.04.10 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-apt | 2.1.7 | — |
| Debian 13 | python-apt | 2.1.7 | — |
| Debian 12 | python-apt | 2.1.7 | — |
| Debian 10 | python-apt | 1.8.4.2 | DSA-4809-1 |
| Debian 9 | python-apt | 1.4.2 | DLA-2488-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | python-apt | 2.0.0ubuntu0.20.04.2 | USN-4668-1 |
| Ubuntu 18.04 LTS | python-apt | 1.6.5ubuntu0.4 | USN-4668-1 |
| Ubuntu 16.04 LTS | python-apt | 1.1.0~beta1ubuntu0.16.04.10 | USN-4668-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | python-apt | 0.9.3.5ubuntu3+esm4 | USN-4668-4 |
Advisories 4
- USN-4668-4 python-apt vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- USN-4668-1 python-apt vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4809-1 python-apt - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2488-1 python-apt - security update Debian Security (DSA / DLA) · Mar 9, 2026