CVE-2020-27351
Low · 2.8CVSS
2.8
EPSS
0.4%
Published
Dec 10, 2020
CISA due date
—
Cloudanix analysis
A flaw in package handling tools can slowly use up memory and file handles on a computer when certain operations are repeated many times.
- Exploitation
- Requires User Interaction
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Memory and file descriptor leaks in apt-python parsing routines allow repeated operations to gradually exhaust system resources without releasing allocated memory or descriptors.
Why it matters to the business
Sustained use of affected package tools on long-running systems can lead to gradual resource exhaustion, causing operational slowdowns or service disruptions on package management workflows.
How an attack unfolds
An attacker with local access runs repeated apt or python-apt operations that trigger the leaky code paths in arfile, tag, or tarfile handling, accumulating unreleased memory and descriptors until availability impact occurs.
How to fix it
Upgrade python-apt to fixed versions: 1.1.0~beta1ubuntu0.16.04.10 or later, 1.6.5ubuntu0.4 or later, 2.0.0ubuntu0.20.04.2 or later, or 2.1.3ubuntu1.1 or later depending on the Ubuntu release in use.
How to confirm the fix worked
Verify installed python-apt package version against the fixed releases listed for each Ubuntu series and confirm no memory growth during repeated package parsing operations after upgrade.
Typical attack path
- Obtain local user access on an affected system
- Invoke python-apt functions or apt commands that parse archives repeatedly
- Trigger resource accumulation through normal package operations or crafted inputs
- Observe gradual memory or descriptor exhaustion leading to degraded service
How to detect it
Review system logs and process monitoring for unexpected growth in memory usage or open file descriptors during package management tasks; no specific exploitation artifacts are known.
What your security team should do
- Prioritize patching python-apt on all Ubuntu and Debian systems using package management tools
- Monitor for resource exhaustion symptoms on systems performing frequent package operations
- Apply updates within standard maintenance windows given low severity and lack of known active exploitation
The record
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 packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | python-apt | 0 | 1.8.4.2 |
| Debian:11 | python-apt | 0 | 2.1.7 |
| Debian:12 | python-apt | 0 | 2.1.7 |
| Debian:13 | python-apt | 0 | 2.1.7 |
| Debian:9 | python-apt | 0 | 1.4.2 |
| Ubuntu:14.04:LTS | python-apt | 0 | 0.9.3.5ubuntu3+esm4 |
| Ubuntu:16.04:LTS | python-apt | 0 | 1.1.0~beta1ubuntu0.16.04.10 |
| Ubuntu:18.04:LTS | python-apt | 0 | 1.6.5ubuntu0.4 |
| Ubuntu:20.04:LTS | python-apt | 0 | 2.0.0ubuntu0.20.04.2 |
| Ubuntu:Pro:14.04:LTS | python-apt | 0 | 0.9.3.5ubuntu3+esm4 |
Related vulnerabilities
- CVE-2019-15795 python-apt only checks the MD5 sums of downloaded files in `Version.fetch_binary()` and… Also affects python-apt
- CVE-2026-59951 The MCP Python SDK, called mcp on PyPI, is a Python implementation of the Model Context… CWE-772
- CVE-2026-18149 undici's retry handler can leave an already-exposed response body pending forever. CWE-772
- CVE-2026-71380 Missing Release of Resource after Effective Lifetime vulnerability in Erlang/OTP inets… CWE-772
- CVE-2026-59320 When a container-level ErrorHandler is configured (the mitigation for finding 221000)… CWE-772
- CVE-2026-73508 Netty is an asynchronous, event-driven network application framework. CWE-772
- CVE-2026-73215 Coturn is a free open source implementation of TURN and STUN Server. CWE-772
- CVE-2026-11811 The UpdateHub over-the-air update client's start_coap_client() in… CWE-772