APT Vulnerability CVE-2026-109518: How Debian and Ubuntu Updates Could Be Hijacked, and How to Patch
A flaw in APT lets an attacker on the network swap a package during an update and run code as root on Debian and Ubuntu. Who is affected and how to patch.
- Published
- Updated
- 4 min read

Key takeaways
- CVE-2026-109518 lets an on-path attacker, such as a malicious mirror or proxy, trick APT into installing an unverified package and run code as root.
- Default installs of Debian 12 and later and Ubuntu 22.04 LTS and later are affected, because APT retries failed downloads by default since those releases.
- Fixed APT packages were published on 4 November 2026: run your normal update, then confirm the installed APT version.
On this page
The tool that keeps millions of Linux machines patched had a hole of its own. CVE-2026-109518, disclosed on 4 November 2026, affects APT, the package manager used by Debian, Ubuntu and many derivatives. An attacker who can tamper with the network traffic between a machine and its package mirror could make APT install a package that was never verified, and that package runs with root privileges.
Fixed versions are already available. This article explains who is affected, how the attack works in plain language, and how to check that your systems are patched.
What happened
According to the Debian security tracker, an on-path attacker "who can manipulate the HTTP traffic" between an APT client and an archive server, including a malicious mirror or proxy, can trick the client into installing an attacker-controlled, unverified package and achieve remote code execution as root.
Ubuntu rates the issue High priority, with a CVSS 4.0 score of 7.7, and published USN-8996-1 on 4 November 2026. Debian released fixes the same day through DSA-6607-1 (trixie) and DLA-4880-1 (bookworm).
How the attack works
APT normally protects you well: package lists are signed, and every downloaded package is checked against the hashes in those signed lists. This flaw gets around that check through a combination of ordinary behaviours:
- Redirects. APT follows HTTP redirects from mirrors, which is normal on the internet.
- Retries. When a download fails with a temporary error, APT tries again.
- Hard links. Debian explains that the bug is caused by the reuse of hard links: under the right sequence of redirects and retries, two downloads can end up pointing at the same file, and the installed file is the attacker's version instead of the verified one.
The retry step is the reason newer systems are exposed. Exploitation requires a non-zero Acquire::Retries setting, and the default became 3 starting with Debian 12 and Ubuntu 22.04 LTS. Older releases do not retry by default.
Who is affected
| Distribution | Default exposure | Fixed APT version |
|---|---|---|
| Debian 13 (trixie) | affected | 3.0.4 |
| Debian 12 (bookworm) | affected | 2.6.2 |
| Debian testing / unstable | affected until updated | 3.3.6 |
| Ubuntu 26.10 | affected | 3.3.3ubuntu0.1 |
| Ubuntu 26.04 LTS | affected | 3.2.1ubuntu0.1 |
| Ubuntu 24.04 LTS | affected | 2.8.4ubuntu0.1 |
| Ubuntu 22.04 LTS | affected | 2.4.15ubuntu0.1 |
| Ubuntu 20.04 / 18.04 LTS | not by default | fixes via Ubuntu Pro |
| Debian 11 (bullseye) | not by default | – |
Sources: Debian security tracker and Ubuntu CVE page, as of 5 November 2026.
Container images built on these releases also contain APT. If your images run apt-get install during builds, rebuild them with an updated base image.
How to patch
The fix is an ordinary APT update. Run your usual update commands:
sudo apt update
sudo apt install --only-upgrade apt
Then confirm the installed version against the table above:
apt --version
apt-cache policy apt
For fleets, use your configuration management or unattended-upgrades as normal. unattended-upgrades installs security updates automatically on most Ubuntu servers and on Debian systems where it is enabled.
Extra hardening
- Use HTTPS mirrors where your distribution offers them.
- Avoid untrusted proxies and mirrors, especially in CI pipelines that pull packages from the internet.
- Watch your build systems. CI runners and Docker builds install packages constantly, which makes them an attractive target for supply chain attacks. Our guide to Git branching covers how to keep changes reviewable, and the same discipline helps with build pipeline changes.
Is it being exploited?
As of 5 November 2026, neither Debian nor Ubuntu reports attacks using this flaw. Because the attack needs a position on the network path, the most realistic risks are malicious or compromised mirrors and proxies, and untrusted networks.
That makes this a patch-soon issue rather than a panic, unlike the WordPress upgrade flaw disclosed in the same week, which is already being used in attacks.
Why it matters
Updates are only as trustworthy as the channel that delivers them. In cloud environments, where servers are created and destroyed constantly from base images, an unpatched image can reintroduce the flaw long after you thought it was fixed. If you run workloads on IaaS virtual machines, see our explainer on IaaS vs PaaS vs SaaS for which patching is your job and which belongs to your provider.
Conclusion
Update APT on every Debian 12+, Ubuntu 22.04+ machine and container image you run, confirm the version, and prefer HTTPS mirrors. It takes minutes, and it closes a route to root on the machines that keep everything else up to date.
Frequently asked questions
Is my Linux server affected by CVE-2026-109518?
Debian 12 (bookworm), Debian 13 (trixie), Ubuntu 22.04 LTS and newer are affected in their default configuration until APT is updated. Older releases such as Debian 11 and Ubuntu 20.04 are not affected by default, because they do not retry failed downloads unless configured to.
Can an attacker exploit this over the internet?
Only from a position where they can manipulate the HTTP traffic between your machine and the package archive, for example through a malicious mirror, a compromised proxy or an untrusted network. It is not a flaw that anyone can trigger remotely against any server.
Is the APT flaw being actively exploited?
As of 5 November 2026, neither Debian nor Ubuntu reports active exploitation. The fix was coordinated and published on 4 November 2026.
Does this affect Linux Mint, Raspberry Pi OS and other derivatives?
The description covers Debian, Ubuntu and derivative distributions that use APT. Derivatives usually pick up the fixed package from their upstream repositories, so check your distribution's security announcements and update as normal.
Sources and further reading
Related articles
Cisco Expressway CVE-2026-76466 Under Attack: How to Check Your Cluster and Patch to X15.5.20
CISA says attackers are exploiting a critical Cisco Expressway flaw that gives root access on clustered devices. Who is affected, how to check and how to patch.

Malicious Claude Code Extension in Cursor: How to Check Your Machine and What Cursor's Investigation Found
A tampered Claude Code extension in Cursor's marketplace tried to plant an SSH backdoor. Who is affected, how to check your Mac or PC and what Cursor found.

Apache HTTP Server CVE-2026-119618: Critical HTTP/2 Flaw, Who Is Affected and How to Update to 2.4.71
A critical mod_http2 flaw in Apache HTTP Server 2.4.55 to 2.4.70 can allow remote code execution. Check if HTTP/2 is on, update to 2.4.71 or turn it off.