Debian and Ubuntu APT flaw CVE-2026-109518 lets man-in-the-middle attackers swap verified packages and run code as root
TLDR
- A flaw in APT, CVE-2026-109518, lets a man-in-the-middle attacker swap a verified package and run code as root.26
- Fixed APT versions are out for Debian and Ubuntu; Ubuntu 22.04 LTS and newer are affected by default.24
- Exploitation needs HTTP traffic, a redirect and a retried download; Ubuntu says HTTPS protects against it.2
The Hacker News reports that a flaw in APT, the package manager for Debian and Ubuntu, lets an attacker who can modify package downloads swap a checked package for their own, which then runs as root.1 The flaw is tracked as CVE-2026-109518 and was reported by Max Justicz.26 Debian's advisory summary says APT can merge two different package downloads after an HTTP redirect gives them the same URI, and that improper file handling when resuming an HTTP download lets a man-in-the-middle attacker replace a package after verification.6 Debian and Ubuntu published their advisories on 4 November 2026.356
Ubuntu says the attacker needs to be on the path, able to manipulate HTTP traffic between the APT client and the archive server, and that a malicious mirror can exploit the flaw in the same way.2 It says the flaw sits in the HTTP backend used by the APT library, so it affects any APT-based frontend, and that it can only be exploited when the system tries to install a .deb package.2 Ubuntu says the archive signature scheme normally protects against this kind of attack, but the flaw lets an attacker trick APT into installing a package even if it fails signature verification.2 The attack also requires a non-zero Acquire::Retries setting, which Ubuntu says is only set by default on Ubuntu 22.04 LTS and newer, with older releases affected only if it has been set.2 Cyber Security News reports that the same default applies from Debian 12.7 A note from APT's developers, quoted in an oss-security post, says many user scripts may have set the option on older releases anyway.8
The Debian Security Tracker lists Debian 12 (bookworm) as fixed in APT 2.6.2 via DLA-4880-1 and Debian 13 (trixie) as fixed in 3.0.4 via DSA-6607-1.4 It lists forky as still vulnerable at 3.3.5 and unstable (sid) as fixed in 3.3.6.4 The same Debian updates also address several out-of-bounds access issues.56 Ubuntu lists fixes of 3.3.3ubuntu0.1 for 26.10, 3.2.1ubuntu0.1 for 26.04 LTS, 2.8.4ubuntu0.1 for 24.04 LTS and 2.4.15ubuntu0.1 for 22.04 LTS, with fixes for 20.04 LTS and older available through Ubuntu Pro.3 Ubuntu rates the flaw High, with a CVSS 4.0 base score of 7.7.2 The Hacker News reports that APT's developers call it critical, and that they have published a fixed version, 2.2.5, for Debian 11, whose long-term support has ended.1
Ubuntu says HTTPS protects against the flaw because exploitation requires HTTP traffic, and that setting Acquire::Retries to zero while installing the update mitigates it.2 It also says systems with unattended-upgrades enabled should receive the patches within 24 hours of release.2 The Hacker News says none of the three advisories it reviewed offer a workaround or say whether HTTPS package sources are exposed, which differs from Ubuntu's blog post.12 The Hacker News and Cyber Security News both report no attacks exploiting the flaw so far.17 Phoronix noted that, at the time of writing, the full report had not been made public.6
Why it matters: Ubuntu says package signature checking is what normally stops unsigned code reaching systems, and this flaw lets an attacker get past it to run code as root, so unpatched Debian and Ubuntu systems that fetch packages over HTTP remain exposed until updated.2
Sources
- Debian and Ubuntu APT Flaw Lets MitM Attackers Swap Verified Packages and Run Code as Root (The Hacker News)
- CVE-2026-109518 APT vulnerability fixes available (Ubuntu Blog)
- USN-8996-1: APT vulnerability (Ubuntu Security Notices)
- CVE-2026-109518 (Debian Security Tracker)
- Debian alert DLA-4880-1 (apt) (LWN.net)
- Debian's APT Affected By Man-In-The-Middle Attack For Arbitrary Code Execution As Root (Phoronix)
- Debian and Ubuntu APT Flaw Lets Hackers Hijack Software Updates and Execute Code as Root (Cyber Security News)
- CVE-2026-109518: RCE in apt(1) (DSA 6607-1) (oss-security)