CVE-2026-109518 (CVSS 7.7): Debian & Ubuntu APT MitM Flaw Lets Attackers Install Malware as Root — Patch Now
Your APT package manager — the tool you rely on for every sudo apt update and security patch — just became an attack surface. On November 4, 2026, Debian and Ubuntu shipped emergency fixes for CVE-2026-109518, a man-in-the-middle flaw that lets an on-path attacker silently swap a verified package for a malicious one and get it executed as root. No authentication. No warning. No log entry that looks wrong.
If you are running any Ubuntu LTS (22.04, 24.04, 26.04) or Debian 11, 12, or 13 — on-premises, in AWS EC2, in Azure VMs, or in a private cloud — and you have not yet updated APT itself, your next routine patch cycle could install malware with root privileges instead of a security update.
- CVE-2026-109518 is a man-in-the-middle (MitM) code-execution flaw in APT, the default package manager for Debian and Ubuntu.
- An attacker on the network path can swap a package after signature verification, causing the tampered file to install and run as root.
- The exploit is triggered by APT’s HTTP retry logic, which is enabled by default (3 retries) on Debian 12 and Ubuntu 22.04+.
- CVSS v4.0 score is 7.7 High; APT maintainers internally rate it critical. No active exploitation is confirmed as of this writing.
- The fix is in APT itself — but the irony is that upgrading APT travels the same vulnerable path. Use
-o Acquire::Retries=0for the upgrade command. - Affected: APT before versions 2.6.2 (Debian 12), 3.0.4 (Debian 13), and Ubuntu counterparts. Run
apt --versionnow.
What Is APT — and Why Should Every CISO Care?
APT (Advanced Package Tool) is the package manager used on Debian, Ubuntu, and hundreds of derivative distributions. When a Linux administrator — or an automated CI/CD pipeline, a configuration management tool like Ansible, or a Kubernetes node provisioning script — runs apt install or apt upgrade, APT fetches packages from configured mirrors, verifies their GPG signatures, and installs them with root privileges.
That last part matters. Package managers, by design, run as root to write to /usr/bin, /lib, and system configuration paths. If anything in the fetch-verify-install chain can be tampered with, the attacker gets code execution at the highest privilege level, on every machine that runs the same upgrade job.
India’s data centre and cloud-server landscape is overwhelmingly Debian/Ubuntu. AWS India region EC2 fleets, Azure India VMs, government cloud deployments under MeitY’s GI Cloud, and private NOC/SOC servers at enterprises all rely on APT. A single compromised upstream mirror or a rogue HTTPS proxy in a co-location facility could weaponise this flaw at scale.
Technical Breakdown: The Retry Attack Chain
Security researcher Max Justicz discovered that APT’s retry mechanism for failed HTTP downloads introduces a window of vulnerability. Here is how the attack unfolds step by step:
- Initial fetch: APT requests a package from an HTTP mirror (not HTTPS — or HTTPS but through an intercepting proxy). It downloads the package file.
- Signature verification: APT checks the downloaded file against the signed Release file and its hash. The check passes at this point — the attacker has not interfered yet.
- Retry window: Due to a logic flaw in how APT handles hard-link reuse and partial writes during retries, the attacker can inject a modified package after the hash is verified but before the file descriptor that APT opens for installation is committed to disk. The attacker replaces the verified data in the retry buffer.
- Silent install: APT installs the swapped, malicious payload with root privileges. No second signature check occurs on the retry path.
The trigger condition is Acquire::Retries greater than 0. Debian 12 and Ubuntu 22.04 LTS set this to 3 by default since APT 2.3.2. Older distributions or hardened builds with retries disabled are not affected.
| Distribution | Vulnerable APT Version | Fixed APT Version | Advisory |
|---|---|---|---|
| Debian 12 (Bookworm) | < 2.6.2 | 2.6.2 | DSA-6607-1 |
| Debian 13 (Trixie) | < 3.0.4 | 3.0.4 | DSA-6607-1 |
| Debian 11 (Bullseye) | Older builds | See DLA-4880-1 | DLA-4880-1 |
| Ubuntu 22.04 LTS | < 2.4.15ubuntu0.1 | 2.4.15ubuntu0.1 | USN-8996-1 |
| Ubuntu 24.04 LTS | < 2.8.4ubuntu0.1 | 2.8.4ubuntu0.1 | USN-8996-1 |
| Ubuntu 26.04 LTS | < 3.2.1ubuntu0.1 | 3.2.1ubuntu0.1 | USN-8996-1 |
The Zero-Trust Angle: Why “Signed Packages” Is Not Enough
Many IT teams assume that because APT verifies GPG signatures, the package-install pipeline is safe. CVE-2026-109518 dismantles that assumption. The flaw is not in the cryptographic verification itself — it is in the window between verification and use.
This is precisely the class of attack that a zero-trust architecture is designed to address: never trust the transport, even for infrastructure you manage. If your Linux servers fetch packages over HTTP (not HTTPS), through a shared corporate proxy, or via a transit network you do not fully control — a co-location IXP, a managed MPLS link, a hotel Wi-Fi for a remote engineer — you are exposed.
The lesson applies directly to India’s enterprise landscape. Many NOC/SOC deployments use a centralised APT mirror or caching proxy to reduce internet bandwidth. If that proxy is compromised or is on a network segment accessible to an attacker, every server that updates through it becomes a target. We have seen similar supply-chain pivot scenarios in recent cPGuard and Linux server backdoor campaigns.
What You Should Do Right Now
This is an urgent patch. Because APT itself is the vulnerable component, the patch delivery has a chicken-and-egg problem: you must upgrade APT using the same APT process that is vulnerable. The workaround is to disable retries for the upgrade command itself, then re-enable normal operations.
Step 1 — Check your version immediately:
apt --version
Compare the output against the fixed versions in the table above. If your APT is unpatched, proceed immediately.
Step 2 — Upgrade APT with retries disabled:
sudo apt update -o Acquire::Retries=0 sudo apt install -o Acquire::Retries=0 --only-upgrade apt
Running with Acquire::Retries=0 closes the retry window and prevents the swap attack during the upgrade itself.
Step 3 — Full system update:
sudo apt update && sudo apt upgrade
Once APT itself is patched, run your normal upgrade cycle. The patched APT version closes the retry vulnerability, so this step is safe.
Step 4 — Audit your APT mirror and proxy configuration:
- Confirm mirrors use HTTPS. Check
/etc/apt/sources.listand/etc/apt/sources.list.d/— replace anyhttp://withhttps://. - If you run a centralised Squid or APT-Cacher proxy, verify it is not accessible to untrusted hosts and audit its access logs for unexpected connections.
- For ephemeral cloud VMs (auto-scaling groups, Kubernetes nodes) using user-data scripts that run
apt-get updateat launch, update your base AMI or cloud-init scripts to pass-o Acquire::Retries=0until all nodes are reprovisioned. - Check
apt-config dump | grep Retriesto confirm the current setting.
Step 5 — Prioritise internet-facing and privileged servers: Patch web servers, database servers, bastion hosts, and jump boxes first — these are most likely to be on a network path where an attacker with access to a transit router or proxy could intervene.
The Bigger Picture: Infrastructure Supply-Chain Risk in 2026
CVE-2026-109518 is the latest reminder that the software supply chain is a primary attack surface. We have seen this pattern repeatedly in 2026: MFA bypass via SAML in SonicWall VPNs, backdoors inserted via hijacked update channels, and now a flaw in the core update tool used by half the Linux universe.
What is different about this vulnerability is its reach. Exploiting a network device zero-day requires targeting specific hardware. Exploiting CVE-2026-109518 requires only the ability to intercept HTTP traffic on the path between a server and its package mirror — a capability available to anyone with access to a co-location switch, a rogue VLAN, or a compromised MPLS link. For Indian enterprises with distributed branches connected over shared ISP infrastructure, this is not a theoretical scenario.
At P J Networks, we have been pushing clients toward HTTPS-only mirror policies and isolated patch management VLANs for exactly this reason. Package managers should fetch only over TLS, proxy servers that cache packages should require mTLS authentication, and automatic update pipelines should run on network segments with strict egress control. These are zero-trust hygiene items that pay dividends across a broad class of supply-chain attacks.
Frequently Asked Questions
Does this affect RHEL, CentOS, or AlmaLinux servers using yum/dnf?
No. CVE-2026-109518 is specific to APT, the package manager used by Debian and Ubuntu families. Red Hat-based distributions use DNF/YUM, which have a different download and verification architecture and are not affected by this flaw. However, RHEL/AlmaLinux users should still audit their mirror and proxy configurations as a general supply-chain hygiene measure.
We use HTTPS mirrors. Are we still vulnerable?
Using https:// in your APT sources significantly raises the bar for exploitation, because the attacker would need to perform a TLS MitM rather than a simple HTTP interception. However, if your HTTPS traffic passes through an intercepting proxy (a common enterprise configuration) and that proxy is not fully trusted, risk remains. Patch APT regardless, and verify the proxy is configured to authenticate package-mirror connections.
Is this being actively exploited in the wild?
As of November 9, 2026, Debian, Ubuntu, and CISA have not confirmed active exploitation of CVE-2026-109518, and it is not currently in the CISA Known Exploited Vulnerabilities (KEV) catalog. However, the vulnerability has been public for five days, and any sophisticated attacker who has established a presence inside a corporate network — via a phishing beachhead or a compromised IoT device — has had time to test it. The absence of confirmed exploitation today does not mean it will not be exploited tomorrow. Patch urgently.
Can we just set Acquire::Retries=0 permanently as a workaround?
Yes, as a short-term mitigation this closes the specific exploitation window. Add Acquire::Retries "0"; to /etc/apt/apt.conf.d/99no-retries across your fleet. However, this is a workaround, not a fix — it may cause APT to fail silently on flaky connections. Apply the proper patch as soon as possible, then remove the workaround file.
Sources and further reading: Debian DSA-6607-1 · Ubuntu USN-8996-1 · The Hacker News · Debian Security Tracker · StepSecurity analysis · Phoronix
Is your Linux fleet patched — and are you sure?
CVE-2026-109518 is a reminder that security hygiene is an ongoing discipline, not a checklist item. P J Networks provides patch audit engagements, zero-trust architecture reviews, and NOC/SOC hardening assessments for Indian enterprises across sectors.