CVE-2014-0487
NoneCVSS
—
EPSS
1.9%
Published
Nov 3, 2014
CISA due date
—
Cloudanix analysis
An old flaw in the tool that installs software updates on Debian systems could let attackers slip in harmful changes without being detected, potentially compromising entire computers.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
APT fails to perform signature verification on package files when an If-Modified-Since header indicates the file has not changed, allowing a modified package to be accepted without integrity checks.
Why it matters to the business
Organizations using older Debian package management could install tampered software updates, leading to system compromise, data exposure, or unauthorized code execution across fleets of servers and workstations; the issue has been public since 2014 with no active exploitation campaigns noted.
How an attack unfolds
An attacker positioned as a package mirror or performing a man-in-the-middle attack responds to an apt-get update request with a package file whose content has been altered yet includes an If-Modified-Since header that tricks APT into skipping its normal verification step, resulting in installation of malicious code.
How to fix it
Upgrade Advanced Package Tool (APT) to version 1.0.9 or later on all affected Debian-based systems; enable package verification settings and consider pinning repositories to trusted mirrors.
How to confirm the fix worked
Confirm APT version is 1.0.9 or newer via apt --version; test by attempting an update against a controlled mirror that returns modified content with If-Modified-Since and verify that the package is rejected.
Typical attack path
- Attacker compromises or impersonates a software repository or network path used by apt
- Victim system runs apt update or apt-get install
- Attacker returns a tampered .deb with an If-Modified-Since header
- APT skips signature verification due to the header
- Malicious package is installed and executed
How to detect it
Review apt history logs in /var/log/apt/ for entries showing package downloads that bypassed verification; look for unexpected changes to installed packages or binaries shortly after update operations.
What your security team should do
- Immediately inventory all systems running APT versions prior to 1.0.9
- Prioritize patching production package-management hosts within 30 days
- Implement network controls to restrict package downloads to known-good repositories
- Add monitoring for unexpected package installations or changes to /var/lib/apt
The record
APT before 1.0.9 does not verify downloaded files if they have been modified as indicated using the If-Modified-Since header, which has unspecified impact and attack vectors.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | apt | 0 | 1.0.9 |
| Debian:12 | apt | 0 | 1.0.9 |
| Debian:13 | apt | 0 | 1.0.9 |
| Debian:6.0 | apt | 0 | 0.8.10.3+squeeze3 |
| Debian:7 | apt | 0 | 0.9.7.9+deb7u3 |
| Ubuntu:14.04:LTS | apt | 0 | 1.0.1ubuntu2.3 |
Related vulnerabilities
- CVE-2020-27350 APT had several integer overflows and underflows while parsing .deb packages, aka… Also affects apt
- 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-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