CVE-2020-27350
Medium · 5.7CVSS
5.7
EPSS
0.4%
Published
Dec 10, 2020
CISA due date
—
Cloudanix analysis
A bug in the tool that installs and updates software on many Linux systems can let a privileged local user cause crashes or limited interference with package operations.
- Exploitation
- Local Privilege
- Attacker needs
- High Privilege
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflows and underflows during .deb package parsing in apt-pkg/contrib/extracttar.cc, apt-pkg/deb/debfile.cc, and apt-pkg/contrib/arfile.cc result in memory corruption.
Why it matters to the business
Local attackers with administrative access on package-managed systems can trigger memory corruption that may lead to limited code execution or denial of service, affecting software installation and update processes across Debian, Ubuntu, and derivative deployments.
How an attack unfolds
An attacker with local administrative privileges supplies a specially crafted .deb archive that triggers the integer arithmetic errors during extraction or header processing, causing out-of-bounds memory access.
How to fix it
Upgrade apt to the fixed Ubuntu releases 1.2.32ubuntu0.2, 1.6.12ubuntu0.2, 2.0.2ubuntu0.2, or 2.1.10ubuntu0.1 (or later) on affected distributions; rebuild or replace packages on Debian-based systems once corrected builds are available.
How to confirm the fix worked
Confirm apt binary and library versions match or exceed the listed fixed releases; run package parsing tests against known-good and malformed .deb files; verify no crashes or incorrect memory handling occur.
Typical attack path
- Obtain local administrative access on a target system using apt
- Craft a malicious .deb package containing malformed archive headers or tar entries
- Invoke apt or dpkg operations that parse the package
- Trigger integer overflow/underflow leading to memory corruption
How to detect it
Review system logs for unexpected apt or dpkg crashes during package operations; inspect process core dumps or sanitizer reports indicating arithmetic errors in apt-pkg libraries.
What your security team should do
- Prioritize patching apt on all internet-facing or multi-tenant systems within the next maintenance window
- Restrict local administrative access to package management tools where feasible
- Monitor vendor advisories for Debian and Ubuntu for backported fixes
The record
APT had several integer overflows and underflows while parsing .deb packages, aka GHSL-2020-168 GHSL-2020-169, in files apt-pkg/contrib/extracttar.cc, apt-pkg/deb/debfile.cc, and apt-pkg/contrib/arfile.cc. This issue affects: apt 1.2.32ubuntu0 versions prior to 1.2.32ubuntu0.2; 1.6.12ubuntu0 versions prior to 1.6.12ubuntu0.2; 2.0.2ubuntu0 versions prior to 2.0.2ubuntu0.2; 2.1.10ubuntu0 versions prior to 2.1.10ubuntu0.1;
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | apt | 0 | 1.8.2.2 |
| Debian:11 | apt | 0 | 2.1.13 |
| Debian:12 | apt | 0 | 2.1.13 |
| Debian:13 | apt | 0 | 2.1.13 |
| Debian:9 | apt | 0 | 1.4.11 |
| Ubuntu:14.04:LTS | apt | 0 | 1.0.1ubuntu2.24+esm3 |
| Ubuntu:16.04:LTS | apt | 0 | 1.2.32ubuntu0.2 |
| Ubuntu:18.04:LTS | apt | 0 | 1.6.12ubuntu0.2 |
| Ubuntu:20.04:LTS | apt | 0 | 2.0.2ubuntu0.2 |
| Ubuntu:Pro:14.04:LTS | apt | 0 | 1.0.1ubuntu2.24+esm3 |
Related vulnerabilities
- CVE-2019-3462 Incorrect sanitation of the 302 redirect field in HTTP transport method of apt versions… Also affects apt
- CVE-2018-0501 The mirror:// method implementation in Advanced Package Tool (APT) 1.6.x before 1.6.4 and… Also affects apt
- CVE-2016-1252 The apt package in Debian jessie before 1.0.9.8.4, in Debian unstable before 1.4~beta2… Also affects apt
- CVE-2014-0487 APT before 1.0.9 does not verify downloaded files if they have been modified as indicated… Also affects apt
- CVE-2014-7206 The changelog command in Apt before 1.0.9.2 allows local users to write to arbitrary… Also affects apt
- CVE-2014-6273 Buffer overflow in the HTTP transport code in apt-get in APT 1.0.1 and earlier allows… Also affects apt
- CVE-2014-0478 APT before 1.0.4 does not properly validate source packages, which allows… Also affects apt
- CVE-2026-110264 An issue has been discovered in GitLab CE/EE affecting all versions from 7.0 before… CWE-190