CVE-2019-3462
High · 8.1CVSS
8.1
EPSS
14.6%
Published
Jan 28, 2019
CISA due date
—
Cloudanix analysis
A network attacker could silently alter software updates to run harmful code on affected systems.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- High
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Incorrect sanitization of the 302 redirect field in the HTTP transport method allows a MITM attacker to inject arbitrary content, resulting in command injection and remote code execution on the target system.
Why it matters to the business
Attackers can compromise systems during package updates, leading to full system takeover, data breaches, and operational disruption; the flaw affects widely used update mechanisms in affected products with high ecosystem prevalence.
How an attack unfolds
An attacker positioned as a MITM intercepts HTTP traffic during package retrieval, crafts a malicious 302 redirect response to inject commands, and causes the system to execute attacker-controlled content as part of the update process.
How to fix it
Upgrade freepbx/core to commit 8972934be22d583b2cc2dc3a052098acb91e55ea and freepbx/framework to commit ecf7d58676c51cea8e2492256722343346ada20b; restrict package manager traffic to HTTPS-only sources and implement network segmentation to reduce MITM exposure.
How to confirm the fix worked
Verify the presence of the fixed commits in the deployed codebase; test by simulating MITM conditions with a 302 redirect and confirm that injected content is rejected; scan for the vulnerable apt versions 1.4.8 and earlier.
Typical attack path
- Position as MITM on the network path to the update server
- Intercept HTTP requests for package metadata or files
- Respond with a crafted 302 redirect containing injected content
- Trigger the vulnerable transport handler to process the redirect
- Achieve command execution during the update operation
How to detect it
Review package manager logs and HTTP proxy logs for anomalous 302 redirects during updates; look for unexpected command execution artifacts or modified package files post-update.
What your security team should do
- Apply the specified git commits immediately given the stable EPSS and long publication window
- Enforce HTTPS for all package repositories and monitor for downgrade attempts
- Audit update logs for unexpected redirects or content injections
- Prioritize patching in high-prevalence environments to limit blast radius
The record
Incorrect sanitation of the 302 redirect field in HTTP transport method of apt versions 1.4.8 and earlier can lead to content injection by a MITM attacker, potentially leading to remote code execution on the target machine.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | apt | 0 | 1.8.0~alpha3.1 |
| Debian:12 | apt | 0 | 1.8.0~alpha3.1 |
| Debian:13 | apt | 0 | 1.8.0~alpha3.1 |
| Debian:8 | apt | 0 | 1.0.9.8.5 |
| Debian:9 | apt | 0 | 1.4.9 |
| Ubuntu:14.04:LTS | apt | 0 | 1.0.1ubuntu2.19 |
| Ubuntu:16.04:LTS | apt | 0 | 1.2.29ubuntu0.1 |
| Ubuntu:18.04:LTS | apt | 0 | 1.6.6ubuntu0.1 |
Related vulnerabilities
- CVE-2020-27350 APT had several integer overflows and underflows while parsing .deb packages, aka… 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